Package com.github.javaparser.resolution
Interface Solver
- All Known Implementing Classes:
SymbolSolver
public interface Solver
-
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)
-
Method Details
-
solveSymbol
-
solveSymbol
-
solveSymbolAsValue
-
solveSymbolAsValue
-
solveType
-
solveType
-
solveMethod
-
solveMethod
-
solveType
-
solveTypeUsage
-
solveSymbolInType
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.
-
solveTypeInType
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. -
classToResolvedType
Convert aClass
into the correspondingResolvedType
.- Parameters:
clazz
- The class to be converted.- Returns:
- The class resolved.
-