3 Replies Latest reply on Oct 22, 2010 10:23 PM by 807565

    Creating AST from source code in java

    843810
      Hi,

      Anyone know how to use the new Java Compiler API (or Tree API) to generate a AST from source-code that I can walk and i count no of IF or FOR in given java source file.

      i have found threads relating to this but i need more information as i need to count no of IF statements in file.


      Thank you.