Extract fully qualified class name from a String with full source code of a Java class
<p>If I have the full source code of a Java class in a <code>String</code>, what is the easiest way to find its fully qualified class name?</p>

<pre><code>public class MyParser {

   private MyParser(String code) {
      // Find here the fully qualified name of the class whose full source code 
      // is passed in the code argument.
   }

}
</code></pre>
