title: How to analyze Java source files with Clojure
body: <p>I'm trying to analyze Java source files with Clojure but I couldn't find a way to do that.</p>
  
  <p>First, I thought using Eclipse AST plugin(by copying necessary JAR's to my Clojure project) but I gave up after seeing Eclipse AST's API(visitor based walker).</p>
  
  <p>Then I've tried creating a Java parser with ANTLR. I can only find one Java 1.6 grammar for ANTLR( <a href="http://openjdk.java.net/projects/compiler-grammar/antlrworks/Java.g" rel="nofollow">http://openjdk.java.net/projects/compiler-grammar/antlrworks/Java.g</a> ) and it doesn't compile with latest ANTLR(<a href="http://paste.pocoo.org/show/554380/" rel="nofollow">here</a>'s the errors I'm getting ).</p>
  
  <p>Now I have no idea how can I do that. At worst I'll try to go with Eclipse AST.</p>
  
  <p>Does anyone know a better way to parse Java files with Clojure?</p>
  
  <p>Thanks.</p>
  
  <p>Edit: To clarify my point:
  I need to find some specific method calls in Java projects and inspect it's parameters(we have multiple definitions of the method, with different type of parameters). Right now I have a simple solution written in Java(Eclipse AST) but I want to use Clojure in this project as much as possible.</p>