I am trying to fetch method callers. In that i have a case with method overloaded.
I need to check the arguments type to identify the respective methods. So i am calling resolve() method from MethodCallExpr.
I am facing UnsolvedSymbolException while executing resolve() method. Please find the below code snap.
Please help me to solve the issue.
**JavaParser Configuration:
CombinedTypeSolver combinedTypeSolver = new CombinedTypeSolver();
combinedTypeSolver.add(new ReflectionTypeSolver());
JavaSymbolSolver symbolSolver = new JavaSymbolSolver(combinedTypeSolver);
StaticJavaParser.getConfiguration().setSymbolResolver(symbolSolver);
CompilationUnit parsingResult = StaticJavaParser.parse(filePath);
Hello,
I am trying to fetch method callers. In that i have a case with method overloaded. I need to check the arguments type to identify the respective methods. So i am calling resolve() method from MethodCallExpr. I am facing UnsolvedSymbolException while executing resolve() method. Please find the below code snap. Please help me to solve the issue.
**JavaParser Configuration:
CombinedTypeSolver combinedTypeSolver = new CombinedTypeSolver(); combinedTypeSolver.add(new ReflectionTypeSolver()); JavaSymbolSolver symbolSolver = new JavaSymbolSolver(combinedTypeSolver); StaticJavaParser.getConfiguration().setSymbolResolver(symbolSolver); CompilationUnit parsingResult = StaticJavaParser.parse(filePath);
Exception @ below line:
ResolvedMethodDeclaration resolve = mCallExp.resolve();**
Thank you.