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.
Why is this different than you other post?
And you do realize that this is not an easy task right? The actual code isn't necessarily all that difficult but you must understand the tools you are using in the first place.