JDK Compiler API
I am trying to develop some code that will analyse a code base for a project. I have made an implementation based on the example :
I implemented the visiClass method of the class that extends the TreePathScanner.
// Get the current path of the node TreePath path = getCurrentPath(); //Get the type element corresponding to the class TypeElement e = (TypeElement) trees.getElement(path);
returns null on the second statement when in the case of inner classes. How do I get the element in those cases ?