Class SymbolSolver
java.lang.Object
com.github.javaparser.symbolsolver.resolution.SymbolSolver
- All Implemented Interfaces:
Solver
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclassToResolvedType
(Class<?> clazz) Convert aClass
into the correspondingResolvedType
.solveMethod
(String methodName, List<ResolvedType> argumentsTypes, Node node) solveMethod
(String methodName, List<ResolvedType> argumentsTypes, Context context) SymbolReference
<? extends ResolvedValueDeclaration> solveSymbol
(String name, Node node) SymbolReference
<? extends ResolvedValueDeclaration> solveSymbol
(String name, Context context) solveSymbolAsValue
(String name, Node node) solveSymbolAsValue
(String name, Context context) SymbolReference
<? extends ResolvedValueDeclaration> solveSymbolInType
(ResolvedTypeDeclaration typeDeclaration, String name) Solve any possible visible symbols including: fields, internal types, type variables, the type itself or its containers.SymbolReference
<? extends ResolvedTypeDeclaration> SymbolReference
<? extends ResolvedTypeDeclaration> solveTypeInType
(ResolvedTypeDeclaration typeDeclaration, String name) Deprecated.Similarly to solveType this should eventually disappear as the symbol resolution logic should be more general and do not be specific to JavaParser classes like in this case.solveTypeUsage
(String name, Context context)
-
Field Details
-
typeSolver
-
-
Constructor Details
-
SymbolSolver
-
-
Method Details
-
solveSymbol
public SymbolReference<? extends ResolvedValueDeclaration> solveSymbol(String name, Context context) - Specified by:
solveSymbol
in interfaceSolver
-
solveSymbol
- Specified by:
solveSymbol
in interfaceSolver
-
solveSymbolAsValue
- Specified by:
solveSymbolAsValue
in interfaceSolver
-
solveSymbolAsValue
- Specified by:
solveSymbolAsValue
in interfaceSolver
-
solveType
-
solveType
-
solveMethod
public MethodUsage solveMethod(String methodName, List<ResolvedType> argumentsTypes, Context context) - Specified by:
solveMethod
in interfaceSolver
-
solveMethod
- Specified by:
solveMethod
in interfaceSolver
-
solveType
-
solveTypeUsage
- Specified by:
solveTypeUsage
in interfaceSolver
-
solveSymbolInType
public SymbolReference<? extends ResolvedValueDeclaration> solveSymbolInType(ResolvedTypeDeclaration typeDeclaration, String name) Solve any possible visible symbols including: fields, internal types, type variables, the type itself or its containers.It should contain its own private fields but not inherited private fields.
- Specified by:
solveSymbolInType
in interfaceSolver
-
solveTypeInType
@Deprecated public SymbolReference<ResolvedTypeDeclaration> solveTypeInType(ResolvedTypeDeclaration typeDeclaration, String name) Deprecated.Similarly to solveType this should eventually disappear as the symbol resolution logic should be more general and do not be specific to JavaParser classes like in this case.Try to solve a symbol just in the declaration, it does not delegate to the container.- Specified by:
solveTypeInType
in interfaceSolver
-
classToResolvedType
Convert aClass
into the correspondingResolvedType
.- Specified by:
classToResolvedType
in interfaceSolver
- Parameters:
clazz
- The class to be converted.- Returns:
- The class resolved.
-