Class ClassLoaderTypeSolver
java.lang.Object
com.github.javaparser.symbolsolver.resolution.typesolvers.ClassLoaderTypeSolver
- All Implemented Interfaces:
TypeSolver
- Direct Known Subclasses:
ReflectionTypeSolver
This TypeSolver wraps a ClassLoader. It can solve all types that the given ClassLoader can load.
This is intended to be used with custom classloaders. To support typical cases based on reflection
just use the ReflectionTypeSolver
- Author:
- Federico Tomassetti
-
Field Summary
Fields inherited from interface com.github.javaparser.symbolsolver.model.resolution.TypeSolver
JAVA_LANG_OBJECT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanfilterName(String name)Parent of the this TypeSolver.voidsetParent(TypeSolver parent)Set the parent of this TypeSolver.tryToSolveType(String name)Try to solve the type with the given name.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.github.javaparser.symbolsolver.model.resolution.TypeSolver
getRoot, getSolvedJavaLangObject, hasType, solveType
-
Constructor Details
-
ClassLoaderTypeSolver
-
-
Method Details
-
getParent
Description copied from interface:TypeSolverParent of the this TypeSolver. This can return null.- Specified by:
getParentin interfaceTypeSolver
-
setParent
Description copied from interface:TypeSolverSet the parent of this TypeSolver.- Specified by:
setParentin interfaceTypeSolver
-
filterName
-
tryToSolveType
Description copied from interface:TypeSolverTry to solve the type with the given name. It always return a SymbolReference which can be solved or unsolved.- Specified by:
tryToSolveTypein interfaceTypeSolver
-