Class AarTypeSolver
- java.lang.Object
-
- com.github.javaparser.symbolsolver.resolution.typesolvers.AarTypeSolver
-
- All Implemented Interfaces:
TypeSolver
public class AarTypeSolver extends Object implements 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.resolution.TypeSolver
JAVA_LANG_OBJECT
-
-
Constructor Summary
Constructors Constructor Description AarTypeSolver(File aarFile)
AarTypeSolver(String aarFile)
AarTypeSolver(Path aarFile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypeSolver
getParent()
Parent of the this TypeSolver.void
setParent(TypeSolver parent)
Set the parent of this TypeSolver.SymbolReference<ResolvedReferenceTypeDeclaration>
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.resolution.TypeSolver
getRoot, getSolvedJavaLangObject, hasType, solveType
-
-
-
-
Constructor Detail
-
AarTypeSolver
public AarTypeSolver(String aarFile) throws IOException
- Throws:
IOException
-
AarTypeSolver
public AarTypeSolver(Path aarFile) throws IOException
- Throws:
IOException
-
AarTypeSolver
public AarTypeSolver(File aarFile) throws IOException
- Throws:
IOException
-
-
Method Detail
-
getParent
public TypeSolver getParent()
Description copied from interface:TypeSolver
Parent of the this TypeSolver. This can return null.- Specified by:
getParent
in interfaceTypeSolver
-
setParent
public void setParent(TypeSolver parent)
Description copied from interface:TypeSolver
Set the parent of this TypeSolver.- Specified by:
setParent
in interfaceTypeSolver
-
tryToSolveType
public SymbolReference<ResolvedReferenceTypeDeclaration> tryToSolveType(String name)
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
-
-