org.ow2.asmdex.instruction
Class DebugInstructionStartLocal

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

public class DebugInstructionStartLocal
extends DebugInstruction
implements IDebugLocalVariableStartInstruction, IDebugRegisterInstruction

Class representing a Debug Instruction Start Local Instruction.

Author:
Julien Névo

Field Summary
protected  java.lang.String name
          The name of the local variable.
protected  int register
          The register of the local variable.
protected  Label start
          The Label from which starts the Debug Instruction.
protected  java.lang.String type
          The type of the local variable.
 
Constructor Summary
DebugInstructionStartLocal(int register, java.lang.String name, java.lang.String type, Label start)
          Constructor of the Debug Instruction Start Local.
 
Method Summary
 Label getLabel()
          Returns the label linked to this instruction.
 java.lang.String getName()
          Returns the name of the variable.
 int getOpcode()
          Returns the opcode of the Debug Instruction.
 int getRegister()
          The id of the register.
 java.lang.String getSignature()
          Returns the signature of the variable, or null if there isn't any.
 java.lang.String getType()
          Returns the type of the variable.
 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.


name

protected java.lang.String name
The name of the local variable.


type

protected java.lang.String type
The type of the local variable.


start

protected Label start
The Label from which starts the Debug Instruction.

Constructor Detail

DebugInstructionStartLocal

public DebugInstructionStartLocal(int register,
                                  java.lang.String name,
                                  java.lang.String type,
                                  Label start)
Constructor of the Debug Instruction Start Local.

Parameters:
register - the register of the local variable.
name - the name of the local variable.
type - the type of the local variable.
start - the Label where the Local Variable starts.
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

getName

public java.lang.String getName()
Description copied from interface: IDebugLocalVariableStartInstruction
Returns the name of the variable.

Specified by:
getName in interface IDebugLocalVariableStartInstruction
Returns:
the name of the variable.

getType

public java.lang.String getType()
Description copied from interface: IDebugLocalVariableStartInstruction
Returns the type of the variable.

Specified by:
getType in interface IDebugLocalVariableStartInstruction
Returns:
the type of the variable.

getSignature

public java.lang.String getSignature()
Description copied from interface: IDebugLocalVariableStartInstruction
Returns the signature of the variable, or null if there isn't any.

Specified by:
getSignature in interface IDebugLocalVariableStartInstruction
Returns:
the signature of the variable, or null if there isn't any.

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.

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.

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.