I encountered several specify java files when extracting the ASTs of the all java files of AspectJ. One example is as follows:
package aspects;
public aspect Logging {
pointcut methods () :
execution(* *..*(..)) && !within(Logging);
before () : methods () {
System.err.println("> " + thisJoinPoint.getSignature().toLongString());
}
after () : methods () {
System.err.println("< " + thisJoinPoint.getSignature().toLongString());
}
}
The file is "public aspect" and can not be parsed by JavaParser. How can I extract the AST of such files? Or is there any other tools I can use instead of JavaParser?