public interface

IDexCodeItem

com.pnfsoftware.jeb.core.units.code.android.dex.IDexCodeItem

Class Overview

This interface represents a DEX code_item object.

It holds the body of a method. They are referenced by IDexMethodDataf objects.

Summary

Public Methods
abstract IDexDebugInfo getDebugInfo()
Get the debug information for the method.
abstract List<? extends IDexExceptionItem> getExceptionItems()
Get the exception items for the method.
abstract int getInputArgumentCount()
Get the number of incoming arguments for the method.
abstract List<? extends IDalvikInstruction> getInstructions()
Get the list of parsed bytecode instructions, ordered by ascending offset.
abstract int getInstructionsOffset()
Get the DEX file offset where the bytecode for the method starts.
abstract int getInstructionsSize()
Get the size of the method's bytecode, in bytes.
abstract int getOutputArgumentCount()
Get the number of outgoing arguments for the method.
abstract int getRegisterCount()
Get the number of registers used by the method.

Public Methods

public abstract IDexDebugInfo getDebugInfo ()

Get the debug information for the method.

Note: debug metadata can be forged and should not be trusted.

Returns
  • the debug info object, or null if there is none

public abstract List<? extends IDexExceptionItem> getExceptionItems ()

Get the exception items for the method.

Returns
  • the list of exception items

public abstract int getInputArgumentCount ()

Get the number of incoming arguments for the method.

Returns
  • the number of incoming arguments

public abstract List<? extends IDalvikInstruction> getInstructions ()

Get the list of parsed bytecode instructions, ordered by ascending offset.

Returns
  • the list of method instructions

public abstract int getInstructionsOffset ()

Get the DEX file offset where the bytecode for the method starts.

Returns
  • the bytecode offset in bytes

public abstract int getInstructionsSize ()

Get the size of the method's bytecode, in bytes.

Returns
  • the bytecode size in bytes

public abstract int getOutputArgumentCount ()

Get the number of outgoing arguments for the method.

Returns
  • the number of outgoing arguments

public abstract int getRegisterCount ()

Get the number of registers used by the method.

Returns
  • the number of registers