Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use of this examples in conjuntion with javasymbolsolver to filter specific variables delcarations. #1

Open
TheTechOddBug opened this issue Jan 29, 2017 · 2 comments

Comments

@TheTechOddBug
Copy link

TheTechOddBug commented Jan 29, 2017

Hi @ftomassetti ,

First of all, thank you very much for your explanations in your blog and your examples here. I'm trying to use JavaParser and JavaSymbolSolver to find all the declarations of variables belonging to specific classes (although project-defined ones) and I've started using this example and trying to combine with examples of JavaSymbolSolver in JavaSymbolSolverExamples, but using the build.gradle in this example and adding the dependency for JavaSymbolSolver found the build.gradle of that JavaSymbolSolver examples, I obtain one non-relevant error with node.getBeginLine() and node.getEndLine() methods. The important thing that I'm not able to solve is the use of ReflectionTypeSolver.

As I said before, I'm trying to find the way to search inside all code of one project to obtain all variables of one type. For example, finding all the variables of type javax.swing.JFrame. I would be grateful if you could help me.

@ftomassetti
Copy link
Owner

Hi, what I could do is to write a post on this subject in coming weeks. I should probably also release a new version of JavaSymbolSolver because the last version currently released works with an older version of JavaParser.

@TheTechOddBug
Copy link
Author

Thank you very much for your answer. I'll review your new post when available. In the meantime, could you tell me which versions of the both libraries should I use and how can I include (if it is possible) ReflectionTypeSolver in my CombinedTypeSolver instance? Again, thank you very much in advance for your help and answers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants