org.ow2.asmdex.instruction
Class DebugInstructionRestartLocal

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

public class DebugInstructionRestartLocal
extends DebugInstruction
implements IDebugRegisterInstruction, IDebugLocalVariableInstruction

Class representing a Debug Instruction Restart Local.

Author:
Julien Névo

Field Summary
protected  int register
          The register of the local variable.
protected  Label restart
          The Label from which restarts the Debug Instruction.
 
Constructor Summary
DebugInstructionRestartLocal(int register, Label restart)
          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.


restart

protected Label restart
The Label from which restarts the Debug Instruction.

Constructor Detail

DebugInstructionRestartLocal

public DebugInstructionRestartLocal(int register,
                                    Label restart)
Constructor of the Debug Instruction.

Parameters:
register - register of the local variable.
restart - the Label where the Local Variable restarts.
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.