public class ClassPath
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
NOT_ART |
static int |
NOT_SPECIFIED |
int |
oatVersion |
| Constructor and Description |
|---|
ClassPath(ClassProvider... classProviders)
Creates a new ClassPath instance that can load classes from the given providers
|
ClassPath(java.lang.Iterable<? extends ClassProvider> classProviders,
boolean checkPackagePrivateAccess,
int oatVersion)
Creates a new ClassPath instance that can load classes from the given providers
|
ClassPath(java.lang.Iterable<ClassProvider> classProviders)
Creates a new ClassPath instance that can load classes from the given providers
|
| Modifier and Type | Method and Description |
|---|---|
TypeProto |
getClass(java.lang.CharSequence type) |
ClassDef |
getClassDef(java.lang.String type) |
OdexedFieldInstructionMapper |
getFieldInstructionMapper() |
TypeProto |
getUnknownClass() |
boolean |
isArt() |
boolean |
shouldCheckPackagePrivateAccess() |
public final int oatVersion
public static final int NOT_ART
public static final int NOT_SPECIFIED
public ClassPath(ClassProvider... classProviders) throws java.io.IOException
classProviders - A varargs array of ClassProviders. When loading a class, these providers will be searched
in orderjava.io.IOExceptionpublic ClassPath(java.lang.Iterable<ClassProvider> classProviders) throws java.io.IOException
classProviders - An iterable of ClassProviders. When loading a class, these providers will be searched in
orderjava.io.IOExceptionpublic ClassPath(@Nonnull
java.lang.Iterable<? extends ClassProvider> classProviders,
boolean checkPackagePrivateAccess,
int oatVersion)
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_ARTpublic boolean isArt()
@Nonnull public TypeProto getClass(@Nonnull java.lang.CharSequence type)
@Nonnull public ClassDef getClassDef(java.lang.String type)
@Nonnull public TypeProto getUnknownClass()
public boolean shouldCheckPackagePrivateAccess()
@Nonnull public OdexedFieldInstructionMapper getFieldInstructionMapper()