public class DexCodeItem
extends java.lang.Object
This class represents a DEX code_item
object.
A CodeItem holds the body of a method. They are referenced by DexMethodData
objects.
Modifier and Type | Method and Description |
---|---|
DexDebugInfo |
getDebugInfo()
Get the debug information for the method.
|
java.util.List<DexExceptionItem> |
getExceptionItems()
Get the exception items for the method.
|
int |
getInputArgumentCount()
Get the number of incoming arguments for the method.
|
java.util.List<DexDalvikInstruction> |
getInstructions()
Get the list of parsed bytecode instructions, ordered by ascending offset.
|
int |
getInstructionsCount()
Get the number of instructions in this CodeItem structure.
|
int |
getInstructionsOffset()
Get the DEX file offset where the bytecode for the method starts.
|
int |
getInstructionsSize()
Get the size of the method's bytecode, in bytes.
|
int |
getOutputArgumentCount()
Get the number of outgoing arguments for the method.
|
int |
getRegisterCount()
Get the number of registers used by the method.
|
public int getRegisterCount()
Get the number of registers used by the method.
public int getInputArgumentCount()
Get the number of incoming arguments for the method.
public int getOutputArgumentCount()
Get the number of outgoing arguments for the method.
public java.util.List<DexExceptionItem> getExceptionItems()
Get the exception items for the method.
public DexDebugInfo getDebugInfo()
Get the debug information for the method.
Beware, debug metadata can be forged and should not be trusted.
public int getInstructionsOffset()
Get the DEX file offset where the bytecode for the method starts.
public int getInstructionsSize()
Get the size of the method's bytecode, in bytes.
public int getInstructionsCount()
Get the number of instructions in this CodeItem structure.
public java.util.List<DexDalvikInstruction> getInstructions()
Get the list of parsed bytecode instructions, ordered by ascending offset.