org.ow2.asmdex.instruction
Interface IOffsetInstruction

All Known Implementing Classes:
InstructionFormat10T, InstructionFormat20T, InstructionFormat21T, InstructionFormat22T, InstructionFormat30T, InstructionFormat31T

public interface IOffsetInstruction

Interface for a Dalvik instruction with one offset.

Author:
Julien Névo

Method Summary
 int getInstructionOffset()
          Offset in bytes of the Instruction from the beginning of the method.
 Label getLabel()
          Returns the label to which the instruction is related to.
 int getOffset()
          Returns the offset of the instruction this instruction is related to.
 void setInstructionOffset(int instructionOffset)
          Sets the offset in bytes of the Instruction from the beginning of the method.
 

Method Detail

getOffset

int getOffset()
Returns the offset of the instruction this instruction is related to.

Returns:
the offset of the instruction this instruction is related to.

getInstructionOffset

int getInstructionOffset()
Offset in bytes of the Instruction from the beginning of the method. This is only useful for the Instruction that refers to Labels, so that we can know if the range of the Instruction is valid to reach the Label.

Returns:
offset in bytes of the Instruction from the beginning of the method.

setInstructionOffset

void setInstructionOffset(int instructionOffset)
Sets the offset in bytes of the Instruction from the beginning of the method.

Parameters:
instructionOffset - offset in bytes of the Instruction from the beginning of the method.

getLabel

Label getLabel()
Returns the label to which the instruction is related to.

Returns:
the label to which the instruction is related to.