public class DexBackedDexFile extends java.lang.Object implements DexFile
| Modifier and Type | Class and Description |
|---|---|
static class |
DexBackedDexFile.IndexedSection<T> |
static class |
DexBackedDexFile.NotADexFile |
static class |
DexBackedDexFile.OptionalIndexedSection<T> |
| Modifier | Constructor and Description |
|---|---|
|
DexBackedDexFile(Opcodes opcodes,
byte[] buf) |
|
DexBackedDexFile(Opcodes opcodes,
byte[] buf,
int offset) |
protected |
DexBackedDexFile(Opcodes opcodes,
byte[] buf,
int offset,
boolean verifyMagic) |
|
DexBackedDexFile(Opcodes opcodes,
DexBuffer buf) |
protected DexBackedDexFile(@Nullable
Opcodes opcodes,
@Nonnull
byte[] buf,
int offset,
boolean verifyMagic)
public DexBackedDexFile(@Nullable
Opcodes opcodes,
@Nonnull
byte[] buf,
int offset)
public DexBackedDexFile(@Nullable
Opcodes opcodes,
@Nonnull
byte[] buf)
public int getBaseDataOffset()
protected int getVersion(byte[] buf,
int offset,
boolean verifyMagic)
protected Opcodes getDefaultOpcodes(int version)
public DexBuffer getBuffer()
public DexBuffer getDataBuffer()
@Nonnull public static DexBackedDexFile fromInputStream(@Nullable Opcodes opcodes, @Nonnull java.io.InputStream is) throws java.io.IOException
java.io.IOException@Nonnull public Opcodes getOpcodes()
DexFilegetOpcodes in interface DexFilepublic boolean supportsOptimizedOpcodes()
@Nonnull public java.util.Set<? extends DexBackedClassDef> getClasses()
DexFilegetClasses in interface DexFilepublic java.util.List<DexBackedStringReference> getStringReferences()
public java.util.List<DexBackedTypeReference> getTypeReferences()
public java.util.List<? extends Reference> getReferences(int referenceType)
public java.util.List<MapItem> getMapItems()
@Nullable public MapItem getMapItemForSection(int itemType)
public DexBackedDexFile.OptionalIndexedSection<java.lang.String> getStringSection()
public DexBackedDexFile.OptionalIndexedSection<java.lang.String> getTypeSection()
public DexBackedDexFile.IndexedSection<DexBackedFieldReference> getFieldSection()
public DexBackedDexFile.IndexedSection<DexBackedMethodReference> getMethodSection()
public DexBackedDexFile.IndexedSection<DexBackedMethodProtoReference> getProtoSection()
public DexBackedDexFile.IndexedSection<DexBackedClassDef> getClassSection()
public DexBackedDexFile.IndexedSection<DexBackedCallSiteReference> getCallSiteSection()
public DexBackedDexFile.IndexedSection<DexBackedMethodHandleReference> getMethodHandleSection()
protected DexBackedMethodImplementation createMethodImplementation(@Nonnull DexBackedDexFile dexFile, @Nonnull DexBackedMethod method, int codeOffset)