-
Notifications
You must be signed in to change notification settings - Fork 76
Type name qualified by method name #37
Comments
Those are Local Classes (http://docs.oracle.com/javase/specs/jls/se8/html/jls-14.html#jls-14.3). Thank you for your nice words, I hope this helps. If not please feel free to ask more questions! |
Thanks for the quick reply! In my case I'll need those names for visualization purposes. Even if it's very uncommon to encounter such a case one can never know what other programmers are up to ;) So I'll follow your advice and stop name resolution when I hit a ClassOrInterfaceDeclaration to check whether or not it is declared inside the scope of a method. You said that you do not think you can provide a proper qualified name comparable to the ones built for other classes. Can you elaborate a little on what is wrong with |
The fact is simply that |
Alright. Now I know what you mean. Let's keep the functionality that way! |
I'm currently expanding our source code analysis tool (which is currently available for C/C++ only) to support java as well. First I was using Javaparser but it didn't quite match our requirements. By accident I stumbled upon a comment where @ftomassetti mentioned this project. And I have to say: It's absolutely AWESOME! Thanks for making this!
Ok, now to my issue.I have the following code I want to analyze:
When using an AstVisitor that specifies the following visit method
I get the following output:
Here the problem is that both
Bar
classes may define completely different types but share the same qualified name. Would it be possible to include the name of the method that acts as the class' context into the qualified name so that the output readsinstead?
The text was updated successfully, but these errors were encountered: