Class MemoryTypeSolver
java.lang.Object
com.github.javaparser.symbolsolver.resolution.typesolvers.MemoryTypeSolver
- All Implemented Interfaces:
TypeSolver
A TypeSolver which only consider the TypeDeclarations provided to it.
- 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 TypeMethodDescriptionvoidaddDeclaration(String name, ResolvedReferenceTypeDeclaration typeDeclaration)booleanParent of the this TypeSolver.inthashCode()voidsetParent(TypeSolver parent)Set the parent of this TypeSolver.toString()tryToSolveType(String name)Try to solve the type with the given name.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.github.javaparser.symbolsolver.model.resolution.TypeSolver
getRoot, getSolvedJavaLangObject, hasType, solveType
-
Constructor Details
-
MemoryTypeSolver
public MemoryTypeSolver()
-
-
Method Details
-
toString
-
equals
-
hashCode
public int hashCode() -
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
-
addDeclaration
-
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
-