Class AarTypeSolver
java.lang.Object
com.github.javaparser.symbolsolver.resolution.typesolvers.AarTypeSolver
- All Implemented Interfaces:
TypeSolver
Will let the symbol solver look inside an Android aar file while solving types.
(It will look inside the contained classes.jar)
- Author:
- Federico Tomassetti
-
Field Summary
Fields inherited from interface com.github.javaparser.symbolsolver.model.resolution.TypeSolver
JAVA_LANG_OBJECT -
Constructor Summary
ConstructorsConstructorDescriptionAarTypeSolver(File aarFile)AarTypeSolver(String aarFile)AarTypeSolver(Path aarFile) -
Method Summary
Modifier and TypeMethodDescriptionParent 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
-
AarTypeSolver
- Throws:
IOException
-
AarTypeSolver
- Throws:
IOException
-
AarTypeSolver
- Throws:
IOException
-
-
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
-
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
-