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.void
setParent(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, wait
Methods 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:TypeSolver
Parent of the this TypeSolver. This can return null.- Specified by:
getParent
in interfaceTypeSolver
-
setParent
Description copied from interface:TypeSolver
Set the parent of this TypeSolver.- Specified by:
setParent
in interfaceTypeSolver
-
tryToSolveType
Description copied from interface:TypeSolver
Try to solve the type with the given name. It always return a SymbolReference which can be solved or unsolved.- Specified by:
tryToSolveType
in interfaceTypeSolver
-