org.ow2.asmdex.instruction
Class DebugInstructionSpecialOpcode

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

public class DebugInstructionSpecialOpcode
extends DebugInstruction
implements IDebugDifferenceAddressInstruction, IDebugDifferenceLineInstruction

Class representing a Debug Instruction Special Opcode.

Author:
Julien Névo

Constructor Summary
DebugInstructionSpecialOpcode(int differenceAddress, int differenceLine)
          Constructor of a the Debug Instruction Special Opcode.
 
Method Summary
 int getDifferenceAddress()
          Returns the difference stored in bytes between the current address and the new one.
 int getDifferenceLine()
          Returns the difference stored between the current line 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
 

Constructor Detail

DebugInstructionSpecialOpcode

public DebugInstructionSpecialOpcode(int differenceAddress,
                                     int differenceLine)
Constructor of a the Debug Instruction Special Opcode.

Parameters:
differenceAddress - difference in the addresses in words.
differenceLine - difference in the lines.
Method Detail

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.

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.

getDifferenceLine

public int getDifferenceLine()
Description copied from interface: IDebugDifferenceLineInstruction
Returns the difference stored between the current line and the new one.

Specified by:
getDifferenceLine in interface IDebugDifferenceLineInstruction
Returns:
the difference stored between the current line and the new one.

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.