dex file.
| Modifier and Type | Field and Description |
|---|---|
| private static final int | ALIGNMENT
file alignment of this class, in bytes |
| private CatchStructs | catches
|
| private final DalvCode | code
|
| private DebugInfoItem | debugInfo
|
| private static final int | HEADER_SIZE
write size of the header of this class, in bytes |
| private final boolean | isStatic
whether this instance is for a |
| private final CstMethodRef | ref
|
| private final TypeList | throwsList
|
| Access | Constructor and Description |
|---|---|
| public | CodeItem(CstMethodRef
non-null; method that this code implementsnon-null; the underlying codewhether this instance is for a isStatic, TypeList static
methodnon-null; list of possibly-thrown exceptions,
just used in generating debugging output (listings)Constructs an instance. |
| Modifier and Type | Method and Description |
|---|---|
| public void | addContents(DexFile
non-null; the file to populateImplements abstract org. DexFile with items from within this instance.
|
| public void | debugPrint(PrintWriter
non-null; where to dumpnon-null; per-line prefix to usewhether to be verbose with the output verbose)Does a human-friendly dump of this instance. |
| private int | |
| private int | |
| public CstMethodRef | Returns: non-null; the method referenceGets the reference to the method this instance implements. |
| private int | |
| public ItemType | itemType()
Implements abstract org. |
| protected void | place0(Section
non-null; the section this instance has been added to>= 0; the offset from the start of the
section where this instance was placedOverrides org. |
| public String | toHuman()
Implements abstract org. |
| public String | |
| private void | writeCodes(DexFile
non-null; file we are part ofnon-null; where to write toHelper for |
| protected void | writeTo0(DexFile
non-null; the file to use for referencenon-null; where to write toImplements abstract org. |
| ALIGNMENT | back to summary |
|---|---|
| private static final int ALIGNMENT file alignment of this class, in bytes | |
| catches | back to summary |
|---|---|
| private CatchStructs catches
| |
| code | back to summary |
|---|---|
| private final DalvCode code
| |
| debugInfo | back to summary |
|---|---|
| private DebugInfoItem debugInfo
| |
| HEADER_SIZE | back to summary |
|---|---|
| private static final int HEADER_SIZE write size of the header of this class, in bytes | |
| isStatic | back to summary |
|---|---|
| private final boolean isStatic whether this instance is for a | |
| ref | back to summary |
|---|---|
| private final CstMethodRef ref
| |
| throwsList | back to summary |
|---|---|
| private final TypeList throwsList
| |
| CodeItem | back to summary |
|---|---|
| public CodeItem(CstMethodRef ref, DalvCode code, boolean isStatic, TypeList throwsList) Constructs an instance.
| |
| addContents | back to summary |
|---|---|
| public void addContents(DexFile file) Implements abstract org. Doc from org. Populates a Note Subclasses must override this to do something appropriate.
| |
| debugPrint | back to summary |
|---|---|
| public void debugPrint(PrintWriter out, String prefix, boolean verbose) Does a human-friendly dump of this instance.
| |
| getInsSize | back to summary |
|---|---|
| private int getInsSize() Get the in registers count.
| |
| getOutsSize | back to summary |
|---|---|
| private int getOutsSize() Get the out registers count.
| |
| getRef | back to summary |
|---|---|
| public CstMethodRef getRef() Gets the reference to the method this instance implements.
| |
| getRegistersSize | back to summary |
|---|---|
| private int getRegistersSize() Get the total registers count.
| |
| itemType | back to summary |
|---|---|
| public ItemType itemType() Implements abstract org. Doc from org. Returns the item type for this instance. | |
| place0 | back to summary |
|---|---|
| protected void place0(Section addedTo, int offset) Overrides org. Doc from org. Does additional work required when placing an instance. The default implementation of this method is a no-op. If a particular class needs to do something special, then it should override this method. In particular, if this instance did not know its write size up-front, then this method is responsible for setting it. | |
| toHuman | back to summary |
|---|---|
| public String toHuman() Implements abstract org. Doc from org. Gets a short human-readable string representing this instance. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| writeCodes | back to summary |
|---|---|
| private void writeCodes(DexFile file, AnnotatedOutput out) Helper for
| |
| writeTo0 | back to summary |
|---|---|
| protected void writeTo0(DexFile file, AnnotatedOutput out) Implements abstract org. Doc from org. Performs the actual write of the contents of this instance to
the given data section. This is called by
| |