Package org.jf.dexlib2.analysis
Class ClassPath
java.lang.Object
org.jf.dexlib2.analysis.ClassPath
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate List<ClassProvider> private final com.google.common.base.Supplier<OdexedFieldInstructionMapper> static final intstatic final intfinal intprivate final TypeProto -
Constructor Summary
ConstructorsConstructorDescriptionClassPath(Iterable<? extends ClassProvider> classProviders, boolean checkPackagePrivateAccess, int oatVersion) Creates a new ClassPath instance that can load classes from the given providersClassPath(Iterable<ClassProvider> classProviders) Creates a new ClassPath instance that can load classes from the given providersClassPath(ClassProvider... classProviders) Creates a new ClassPath instance that can load classes from the given providers -
Method Summary
Modifier and TypeMethodDescriptionprivate static ClassProvidergetClass(CharSequence type) getClassDef(String type) booleanisArt()private voidloadPrimitiveType(String type) boolean
-
Field Details
-
unknownClass
-
classProviders
-
checkPackagePrivateAccess
private final boolean checkPackagePrivateAccess -
oatVersion
public final int oatVersion -
NOT_ART
public static final int NOT_ART- See Also:
-
NOT_SPECIFIED
public static final int NOT_SPECIFIED- See Also:
-
classLoader
-
loadedClasses
-
fieldInstructionMapperSupplier
private final com.google.common.base.Supplier<OdexedFieldInstructionMapper> fieldInstructionMapperSupplier
-
-
Constructor Details
-
ClassPath
Creates a new ClassPath instance that can load classes from the given providers- Parameters:
classProviders- A varargs array of ClassProviders. When loading a class, these providers will be searched in order- Throws:
IOException
-
ClassPath
Creates a new ClassPath instance that can load classes from the given providers- Parameters:
classProviders- An iterable of ClassProviders. When loading a class, these providers will be searched in order- Throws:
IOException
-
ClassPath
public ClassPath(@Nonnull Iterable<? extends ClassProvider> classProviders, boolean checkPackagePrivateAccess, int oatVersion) Creates a new ClassPath instance that can load classes from the given providers- Parameters:
classProviders- An iterable of ClassProviders. When loading a class, these providers will be searched in ordercheckPackagePrivateAccess- Whether checkPackagePrivateAccess is needed, enabled for ONLY early API 17 by defaultoatVersion- The applicable oat version, or NOT_ART
-
-
Method Details
-
loadPrimitiveType
-
getBasicClasses
-
isArt
public boolean isArt() -
getClass
-
getClassDef
-
getUnknownClass
-
shouldCheckPackagePrivateAccess
public boolean shouldCheckPackagePrivateAccess() -
getFieldInstructionMapper
-