| Package | Description |
|---|---|
| com.android.dx.dex.cf |
Classes for translating Java classfiles into Dalvik classes.
|
| com.android.dx.dex.file |
| Modifier and Type | Method and Description |
|---|---|
static ClassDefItem |
CfTranslator.translate(DxContext context,
DirectClassFile cf,
byte[] bytes,
CfOptions cfOptions,
DexOptions dexOptions,
DexFile dexFile)
Takes a
byte[], interprets it as a Java classfile, and
translates it into a ClassDefItem. |
| Modifier and Type | Method and Description |
|---|---|
DexFile |
Section.getFile()
Gets the file that this instance is part of.
|
| Modifier and Type | Method and Description |
|---|---|
void |
DebugInfoItem.addContents(DexFile file)
Populates a
DexFile with items from within this instance. |
void |
StringIdItem.addContents(DexFile file)
Populates a
DexFile with items from within this instance. |
void |
CallSiteItem.addContents(DexFile file)
Populates a
DexFile with items from within this instance. |
void |
MapItem.addContents(DexFile file)
Populates a
DexFile with items from within this instance. |
void |
AnnotationSetRefItem.addContents(DexFile file)
Populates a
DexFile with items from within this instance. |
void |
StringDataItem.addContents(DexFile file)
Populates a
DexFile with items from within this instance. |
void |
HeaderItem.addContents(DexFile file)
Populates a
DexFile with items from within this instance. |
abstract void |
EncodedMember.addContents(DexFile file)
Populates a
DexFile with items from within this instance. |
void |
AnnotationsDirectoryItem.addContents(DexFile file)
Populates a
DexFile with items from within this instance. |
void |
ParameterAnnotationStruct.addContents(DexFile file) |
void |
MethodIdItem.addContents(DexFile file)
Populates a
DexFile with items from within this instance. |
void |
FieldAnnotationStruct.addContents(DexFile file) |
void |
FieldIdItem.addContents(DexFile file)
Populates a
DexFile with items from within this instance. |
void |
MethodAnnotationStruct.addContents(DexFile file) |
void |
TypeListItem.addContents(DexFile file)
Populates a
DexFile with items from within this instance. |
void |
AnnotationSetItem.addContents(DexFile file)
Populates a
DexFile with items from within this instance. |
void |
CallSiteIdItem.addContents(DexFile file)
Populates a
DexFile with items from within this instance. |
void |
EncodedArrayItem.addContents(DexFile file)
Populates a
DexFile with items from within this instance. |
void |
EncodedField.addContents(DexFile file)
Populates a
DexFile with items from within this instance. |
void |
UniformListItem.addContents(DexFile file)
Populates a
DexFile with items from within this instance. |
void |
ProtoIdItem.addContents(DexFile file)
Populates a
DexFile with items from within this instance. |
void |
TypeIdItem.addContents(DexFile file)
Populates a
DexFile with items from within this instance. |
void |
MethodHandleItem.addContents(DexFile file)
Populates a
DexFile with items from within this instance. |
void |
ClassDefItem.addContents(DexFile file)
Populates a
DexFile with items from within this instance. |
void |
MemberIdItem.addContents(DexFile file)
Populates a
DexFile with items from within this instance. |
void |
AnnotationItem.addContents(DexFile file)
Populates a
DexFile with items from within this instance. |
void |
EncodedMethod.addContents(DexFile file)
Populates a
DexFile with items from within this instance. |
abstract void |
Item.addContents(DexFile file)
Populates a
DexFile with items from within this instance. |
void |
ClassDataItem.addContents(DexFile file)
Populates a
DexFile with items from within this instance. |
void |
IdItem.addContents(DexFile file)
Populates a
DexFile with items from within this instance. |
void |
CodeItem.addContents(DexFile file)
Populates a
DexFile with items from within this instance. |
static void |
ValueEncoder.addContents(DexFile file,
Annotation annotation)
Helper for
addContents() methods, which adds
contents for a particular Annotation, calling itself
recursively should it encounter a nested annotation. |
static void |
ValueEncoder.addContents(DexFile file,
Constant cst)
Helper for
addContents() methods, which adds
contents for a particular constant, calling itself recursively
should it encounter a CstArray and calling ValueEncoder.addContents(DexFile,Annotation) recursively should it
encounter a CstAnnotation. |
void |
AnnotationsDirectoryItem.addFieldAnnotations(CstFieldRef field,
Annotations annotations,
DexFile dexFile)
Adds a field annotations item to this instance.
|
void |
ClassDefItem.addFieldAnnotations(CstFieldRef field,
Annotations annotations,
DexFile dexFile)
Adds a field annotations item to this class.
|
void |
AnnotationsDirectoryItem.addMethodAnnotations(CstMethodRef method,
Annotations annotations,
DexFile dexFile)
Adds a method annotations item to this instance.
|
void |
ClassDefItem.addMethodAnnotations(CstMethodRef method,
Annotations annotations,
DexFile dexFile)
Adds a method annotations item to this class.
|
void |
AnnotationsDirectoryItem.addParameterAnnotations(CstMethodRef method,
AnnotationsList list,
DexFile dexFile)
Adds a parameter annotations item to this instance.
|
void |
ClassDefItem.addParameterAnnotations(CstMethodRef method,
AnnotationsList list,
DexFile dexFile)
Adds a parameter annotations item to this class.
|
void |
DebugInfoItem.annotateTo(DexFile file,
AnnotatedOutput out,
java.lang.String prefix)
Writes annotations for the elements of this list, as
zero-length.
|
void |
CatchStructs.encode(DexFile file)
Encodes the handler lists.
|
abstract int |
EncodedMember.encode(DexFile file,
AnnotatedOutput out,
int lastIndex,
int dumpSeq)
Encodes this instance to the given output.
|
int |
EncodedField.encode(DexFile file,
AnnotatedOutput out,
int lastIndex,
int dumpSeq)
Encodes this instance to the given output.
|
int |
EncodedMethod.encode(DexFile file,
AnnotatedOutput out,
int lastIndex,
int dumpSeq)
Encodes this instance to the given output.
|
protected int |
MethodIdItem.getTypoidIdx(DexFile file)
Returns the index of the type-like thing associated with
this item, in order that it may be written out.
|
protected int |
FieldIdItem.getTypoidIdx(DexFile file)
Returns the index of the type-like thing associated with
this item, in order that it may be written out.
|
protected abstract int |
MemberIdItem.getTypoidIdx(DexFile file)
Returns the index of the type-like thing associated with
this item, in order that it may be written out.
|
void |
AnnotationsDirectoryItem.setClassAnnotations(Annotations annotations,
DexFile dexFile)
Sets the direct annotations on this instance.
|
void |
ClassDefItem.setClassAnnotations(Annotations annotations,
DexFile dexFile)
Sets the direct annotations on this class.
|
static void |
DebugInfoDecoder.validateEncode(byte[] info,
DexFile file,
CstMethodRef ref,
DalvCode code,
boolean isStatic)
Validates an encoded debug info stream against data used to encode it,
throwing an exception if they do not match.
|
void |
StringIdItem.writeTo(DexFile file,
AnnotatedOutput out)
Writes the representation of this instance to the given data section,
using the given
DexFile to look things up as needed. |
void |
HeaderItem.writeTo(DexFile file,
AnnotatedOutput out)
Writes the representation of this instance to the given data section,
using the given
DexFile to look things up as needed. |
void |
ParameterAnnotationStruct.writeTo(DexFile file,
AnnotatedOutput out) |
void |
FieldAnnotationStruct.writeTo(DexFile file,
AnnotatedOutput out) |
void |
MethodAnnotationStruct.writeTo(DexFile file,
AnnotatedOutput out) |
void |
CatchStructs.writeTo(DexFile file,
AnnotatedOutput out)
Writes this instance to the given stream.
|
void |
CallSiteIdItem.writeTo(DexFile file,
AnnotatedOutput out)
Writes the representation of this instance to the given data section,
using the given
DexFile to look things up as needed. |
void |
ProtoIdItem.writeTo(DexFile file,
AnnotatedOutput out)
Writes the representation of this instance to the given data section,
using the given
DexFile to look things up as needed. |
void |
TypeIdItem.writeTo(DexFile file,
AnnotatedOutput out)
Writes the representation of this instance to the given data section,
using the given
DexFile to look things up as needed. |
void |
OffsettedItem.writeTo(DexFile file,
AnnotatedOutput out)
Writes the representation of this instance to the given data section,
using the given
DexFile to look things up as needed. |
void |
MethodHandleItem.writeTo(DexFile file,
AnnotatedOutput out)
Writes the representation of this instance to the given data section,
using the given
DexFile to look things up as needed. |
void |
ClassDefItem.writeTo(DexFile file,
AnnotatedOutput out)
Writes the representation of this instance to the given data section,
using the given
DexFile to look things up as needed. |
void |
MemberIdItem.writeTo(DexFile file,
AnnotatedOutput out)
Writes the representation of this instance to the given data section,
using the given
DexFile to look things up as needed. |
abstract void |
Item.writeTo(DexFile file,
AnnotatedOutput out)
Writes the representation of this instance to the given data section,
using the given
DexFile to look things up as needed. |
protected void |
DebugInfoItem.writeTo0(DexFile file,
AnnotatedOutput out)
Performs the actual write of the contents of this instance to
the given data section.
|
protected void |
CallSiteItem.writeTo0(DexFile file,
AnnotatedOutput out)
Performs the actual write of the contents of this instance to
the given data section.
|
protected void |
MapItem.writeTo0(DexFile file,
AnnotatedOutput out)
Performs the actual write of the contents of this instance to
the given data section.
|
protected void |
AnnotationSetRefItem.writeTo0(DexFile file,
AnnotatedOutput out)
Performs the actual write of the contents of this instance to
the given data section.
|
void |
StringDataItem.writeTo0(DexFile file,
AnnotatedOutput out)
Performs the actual write of the contents of this instance to
the given data section.
|
protected void |
AnnotationsDirectoryItem.writeTo0(DexFile file,
AnnotatedOutput out)
Performs the actual write of the contents of this instance to
the given data section.
|
protected void |
TypeListItem.writeTo0(DexFile file,
AnnotatedOutput out)
Performs the actual write of the contents of this instance to
the given data section.
|
protected void |
AnnotationSetItem.writeTo0(DexFile file,
AnnotatedOutput out)
Performs the actual write of the contents of this instance to
the given data section.
|
protected void |
EncodedArrayItem.writeTo0(DexFile file,
AnnotatedOutput out)
Performs the actual write of the contents of this instance to
the given data section.
|
protected void |
UniformListItem.writeTo0(DexFile file,
AnnotatedOutput out)
Performs the actual write of the contents of this instance to
the given data section.
|
protected abstract void |
OffsettedItem.writeTo0(DexFile file,
AnnotatedOutput out)
Performs the actual write of the contents of this instance to
the given data section.
|
protected void |
AnnotationItem.writeTo0(DexFile file,
AnnotatedOutput out)
Performs the actual write of the contents of this instance to
the given data section.
|
void |
ClassDataItem.writeTo0(DexFile file,
AnnotatedOutput out)
Performs the actual write of the contents of this instance to
the given data section.
|
protected void |
CodeItem.writeTo0(DexFile file,
AnnotatedOutput out)
Performs the actual write of the contents of this instance to
the given data section.
|
| Constructor and Description |
|---|
AnnotationItem(Annotation annotation,
DexFile dexFile)
Constructs an instance.
|
AnnotationSetItem(Annotations annotations,
DexFile dexFile)
Constructs an instance.
|
CallSiteIdsSection(DexFile dexFile)
Constructs an instance.
|
ClassDefsSection(DexFile file)
Constructs an instance.
|
DebugInfoEncoder(PositionList positions,
LocalList locals,
DexFile file,
int codeSize,
int regSize,
boolean isStatic,
CstMethodRef ref)
Creates an instance.
|
FieldIdsSection(DexFile file)
Constructs an instance.
|
HeaderSection(DexFile file)
Constructs an instance.
|
MemberIdsSection(java.lang.String name,
DexFile file)
Constructs an instance.
|
MethodHandlesSection(DexFile dexFile) |
MethodIdsSection(DexFile file)
Constructs an instance.
|
MixedItemSection(java.lang.String name,
DexFile file,
int alignment,
com.android.dx.dex.file.MixedItemSection.SortType sort)
Constructs an instance.
|
ParameterAnnotationStruct(CstMethodRef method,
AnnotationsList annotationsList,
DexFile dexFile)
Constructs an instance.
|
ProtoIdsSection(DexFile file)
Constructs an instance.
|
Section(java.lang.String name,
DexFile file,
int alignment)
Constructs an instance.
|
StringIdsSection(DexFile file)
Constructs an instance.
|
TypeIdsSection(DexFile file)
Constructs an instance.
|
UniformItemSection(java.lang.String name,
DexFile file,
int alignment)
Constructs an instance.
|
ValueEncoder(DexFile file,
AnnotatedOutput out)
Construct an instance.
|
Copyright © 2020. All Rights Reserved.