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, JAVA_LANG_RECORD
-
-
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 TypeSolvergetParent()voidsetParent(TypeSolver parent)SymbolReference<ResolvedReferenceTypeDeclaration>tryToSolveType(String 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, getSolvedJavaLangRecord, 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()
- Specified by:
getParentin interfaceTypeSolver
-
setParent
public void setParent(TypeSolver parent)
- Specified by:
setParentin interfaceTypeSolver
-
tryToSolveType
public SymbolReference<ResolvedReferenceTypeDeclaration> tryToSolveType(String name)
- Specified by:
tryToSolveTypein interfaceTypeSolver
-
-