title: How to get key information in scala code whit tool jar?
body: <p>I wanna to parse <code>scala</code> code in my java project and get some key information in this code, like class name or if exist main method. this code maybe from file or String.</p>
  <p>for example, there is a tool named <code>qdox</code>, it can use to parse java code and get key information.</p>
  <p>how to use qdox:</p>
  <pre><code>        &lt;dependency&gt;
              &lt;groupId&gt;com.thoughtworks.qdox&lt;/groupId&gt;
              &lt;artifactId&gt;qdox&lt;/artifactId&gt;
              &lt;version&gt;2.0-M3&lt;/version&gt;
          &lt;/dependency&gt;
  </code></pre>
  <p>in java project, use qdox api i can parse java code:</p>
  <pre><code>String code = &quot;package demo;&quot; +
              &quot;  public class Demo{&quot; +
              &quot;      public static void main(String[] args) {\n&quot;+
              &quot;        System.out.println(123);&quot;+
              &quot;      }&quot; +
              &quot;  }&quot;
  JavaProjectBuilder builder = new JavaProjectBuilder();
  JavaSource src = builder.addSource(new StringReader(code));
  String packageName = src.getPackageName();
  </code></pre>
  <p>now, i get the key information -- <code>packageName=&quot;demo&quot;</code>.</p>
  <p>so, i want to ask, is there a similar tool jar to parse scala code?</p>
  <p>Thanks!</p>