org.ow2.asmdex.instruction
Class DebugInstructionAdvancePC

java.lang.Object
  extended by org.ow2.asmdex.instruction.DebugInstruction
      extended by org.ow2.asmdex.instruction.DebugInstructionAdvancePC
All Implemented Interfaces:
IDebugDifferenceAddressInstruction

public class DebugInstructionAdvancePC
extends DebugInstruction
implements IDebugDifferenceAddressInstruction

Class representing a Debug Instruction Advance PC.

Author:
Julien Névo

Field Summary
protected  int differenceAddress
          The difference in words between the current and next address.
 
Constructor Summary
DebugInstructionAdvancePC(int differenceAddress)
          Constructor of the Debug Instruction.
 
Method Summary
 int getDifferenceAddress()
          Returns the difference stored in bytes between the current address and the new one.
 int getOpcode()
          Returns the opcode of the Debug Instruction.
 void write(ByteVector out, ConstantPool constantPool)
          Encodes the Debug Instruction in the Dalvik format, to an output buffer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

differenceAddress

protected int differenceAddress
The difference in words between the current and next address.

Constructor Detail

DebugInstructionAdvancePC

public DebugInstructionAdvancePC(int differenceAddress)
Constructor of the Debug Instruction.

Parameters:
differenceAddress - difference in words between the current and next address.
Method Detail

getDifferenceAddress

public int getDifferenceAddress()
Description copied from interface: IDebugDifferenceAddressInstruction
Returns the difference stored in bytes between the current address and the new one.

Specified by:
getDifferenceAddress in interface IDebugDifferenceAddressInstruction
Returns:
the difference stored in bytes between the current address and the new one.

getOpcode

public int getOpcode()
Description copied from class: DebugInstruction
Returns the opcode of the Debug Instruction.

Specified by:
getOpcode in class DebugInstruction
Returns:
the opcode of the Debug Instruction.

write

public void write(ByteVector out,
                  ConstantPool constantPool)
Description copied from class: DebugInstruction
Encodes the Debug Instruction in the Dalvik format, to an output buffer.

Specified by:
write in class DebugInstruction
Parameters:
out - output buffer.
constantPool - the Constant Pool.