org.ow2.asmdex.instruction
Class DebugInstructionEndLocal

java.lang.Object
  extended by org.ow2.asmdex.instruction.DebugInstruction
      extended by org.ow2.asmdex.instruction.DebugInstructionEndLocal
All Implemented Interfaces:
IDebugLocalVariableInstruction, IDebugRegisterInstruction

public class DebugInstructionEndLocal
extends DebugInstruction
implements IDebugRegisterInstruction, IDebugLocalVariableInstruction

Class representing a Debug Instruction End Local.

Author:
Julien Névo

Field Summary
protected  Label end
          The Label from which ends the Debug Instruction.
protected  int register
          The register of the local variable.
 
Constructor Summary
DebugInstructionEndLocal(int register, Label end)
          Constructor of the Debug Instruction.
 
Method Summary
 Label getLabel()
          Returns the label linked to this instruction.
 int getOpcode()
          Returns the opcode of the Debug Instruction.
 int getRegister()
          The id of the register.
 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

register

protected int register
The register of the local variable.


end

protected Label end
The Label from which ends the Debug Instruction.

Constructor Detail

DebugInstructionEndLocal

public DebugInstructionEndLocal(int register,
                                Label end)
Constructor of the Debug Instruction.

Parameters:
register - register of the local variable.
end - the Label where the Local Variable ends.
Method Detail

getRegister

public int getRegister()
Description copied from interface: IDebugRegisterInstruction
The id of the register.

Specified by:
getRegister in interface IDebugRegisterInstruction
Returns:
id of register

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.

getLabel

public Label getLabel()
Description copied from interface: IDebugLocalVariableInstruction
Returns the label linked to this instruction. It can be a start, end or restart.

Specified by:
getLabel in interface IDebugLocalVariableInstruction
Returns:
the label linked to this instruction. It can be a start, end or restart.