Top Description Methods
org.droidparts.dexmaker.dx.io.instructions

public Interface CodeCursor

Known Direct Subinterfaces
org.droidparts.dexmaker.dx.io.instructions.CodeInput, org.droidparts.dexmaker.dx.io.instructions.CodeOutput
Known Direct Implementers
org.droidparts.dexmaker.dx.io.instructions.BaseCodeCursor

Cursor over code units, for reading or writing out Dalvik bytecode.

Method Summary

Modifier and TypeMethod and Description
public int
baseAddressForCursor()

Gets the base address associated with the current cursor.

public int
cursor()

Gets the cursor.

public void
setBaseAddress(int targetAddress, int baseAddress)

Sets the base address for the given target address to be as indicated.

Method Detail

baseAddressForCursorback to summary
public int baseAddressForCursor()

Gets the base address associated with the current cursor. This differs from the cursor value when explicitly set (by {@link #setBaseAddress). This is used, in particular, to convey base addresses to switch data payload instructions, whose relative addresses are relative to the address of a dependant switch instruction.

cursorback to summary
public int cursor()

Gets the cursor. The cursor is the offset in code units from the start of the input of the next code unit to be read or written, where the input generally consists of the code for a single method.

setBaseAddressback to summary
public void setBaseAddress(int targetAddress, int baseAddress)

Sets the base address for the given target address to be as indicated.

See Also
baseAddressForCursor