Package org.jf.dexlib2.analysis
Class ClassPath
- java.lang.Object
-
- org.jf.dexlib2.analysis.ClassPath
-
public class ClassPath extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static int
NOT_ART
static int
NOT_SPECIFIED
int
oatVersion
-
Constructor Summary
Constructors Constructor Description ClassPath(java.lang.Iterable<? extends ClassProvider> classProviders, boolean checkPackagePrivateAccess, int oatVersion)
Creates a new ClassPath instance that can load classes from the given providersClassPath(java.lang.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypeProto
getClass(java.lang.CharSequence type)
ClassDef
getClassDef(java.lang.String type)
OdexedFieldInstructionMapper
getFieldInstructionMapper()
TypeProto
getUnknownClass()
boolean
isArt()
boolean
shouldCheckPackagePrivateAccess()
-
-
-
Field Detail
-
oatVersion
public final int oatVersion
-
NOT_ART
public static final int NOT_ART
- See Also:
- Constant Field Values
-
NOT_SPECIFIED
public static final int NOT_SPECIFIED
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ClassPath
public ClassPath(ClassProvider... classProviders) throws java.io.IOException
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:
java.io.IOException
-
ClassPath
public ClassPath(java.lang.Iterable<ClassProvider> classProviders) throws java.io.IOException
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:
java.io.IOException
-
ClassPath
public ClassPath(@Nonnull java.lang.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 Detail
-
isArt
public boolean isArt()
-
getClass
@Nonnull public TypeProto getClass(@Nonnull java.lang.CharSequence type)
-
getClassDef
@Nonnull public ClassDef getClassDef(java.lang.String type)
-
getUnknownClass
@Nonnull public TypeProto getUnknownClass()
-
shouldCheckPackagePrivateAccess
public boolean shouldCheckPackagePrivateAccess()
-
getFieldInstructionMapper
@Nonnull public OdexedFieldInstructionMapper getFieldInstructionMapper()
-
-