net.sf.rej.java.instruction
Class _lstore_1

java.lang.Object
  extended by net.sf.rej.java.instruction.Instruction
      extended by net.sf.rej.java.instruction._lstore_1

public class _lstore_1
extends Instruction

Store long into local variable 1.

Author:
Sami Koivu

Field Summary
static java.lang.String MNEMONIC
           
static int OPCODE
           
 
Constructor Summary
_lstore_1()
           
 
Method Summary
 void execute(ExecutionContext ec)
          Reserved for possible future use.
 byte[] getData(DecompilationContext dc)
          Get the bytecode data for this instruction.
 java.lang.String getMnemonic()
          Return the mnemonic of this instruction.
 int getOpcode()
          Return the Opcode of this instruction.
 Parameters getParameters()
          Return a Parameters object describing the types of parameters(if any) and the values set to this particular instance for those parameters.
 Parameters getParameterTypes()
          Return a Parameters object describing the types of parameters(if any) that are applicable to this type of an instruction.
 java.util.List<StackElement> getPoppedElements(DecompilationContext dc)
          Returns the elements popped from the stack by this instance.
 int getSize()
          Return the size of this instruction.
 void setData(byte[] data, DecompilationContext dc)
          Set the data for this instruction.
 void setParameters(Parameters params)
          Update the parameter values of this instruction with the values in the Parameters object defined by params.
 
Methods inherited from class net.sf.rej.java.instruction.Instruction
createNewInstance, getLabels, getPushedElements, getSize, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

OPCODE

public static final int OPCODE
See Also:
Constant Field Values

MNEMONIC

public static final java.lang.String MNEMONIC
See Also:
Constant Field Values
Constructor Detail

_lstore_1

public _lstore_1()
Method Detail

getOpcode

public int getOpcode()
Description copied from class: Instruction
Return the Opcode of this instruction.

Specified by:
getOpcode in class Instruction
Returns:
The Opcode value of this instruction.

getMnemonic

public java.lang.String getMnemonic()
Description copied from class: Instruction
Return the mnemonic of this instruction. Such as aload, invokespecial, nop, etc..

Specified by:
getMnemonic in class Instruction
Returns:
mnemonic.

getSize

public int getSize()
Description copied from class: Instruction
Return the size of this instruction.

Specified by:
getSize in class Instruction
Returns:
Size of the instruction in bytes.

execute

public void execute(ExecutionContext ec)
Description copied from class: Instruction
Reserved for possible future use.

Specified by:
execute in class Instruction
Parameters:
ec - Context for execution.

getData

public byte[] getData(DecompilationContext dc)
Description copied from class: Instruction
Get the bytecode data for this instruction. In other words, tell the instruction to serialize itself. Some instructions use padding to put the subsequent parameters in a pc position that is divisible by 4 and thus require the pc position which they can obtain from the DecompilationContext

Specified by:
getData in class Instruction
Parameters:
dc - A callback mechanism to offer the instruction information about the context where it's located.
Returns:
A byte array with the instruction data.

getParameterTypes

public Parameters getParameterTypes()
Description copied from class: Instruction
Return a Parameters object describing the types of parameters(if any) that are applicable to this type of an instruction. This method is identical to the getParameters() method, only the Parameters object return by a call to this method, does not contain the values of the parameters, just the type information.

Specified by:
getParameterTypes in class Instruction
Returns:
A Parameters object with the types of parameters applicable for this type of an instruction.

getParameters

public Parameters getParameters()
Description copied from class: Instruction
Return a Parameters object describing the types of parameters(if any) and the values set to this particular instance for those parameters. For different parameter types see the Parameters class. Modifications in the values of the parameters class are not reflected by this instruction unless setParameters(Parameters) is called subsequently.

Specified by:
getParameters in class Instruction
Returns:
A Parameters object with the types and current values of the parameters.

setData

public void setData(byte[] data,
                    DecompilationContext dc)
Description copied from class: Instruction
Set the data for this instruction. Called by the decompiler to initialize the parameters of the instruction from bytecode data.

Specified by:
setData in class Instruction
Parameters:
data - A byte arrray with the instruction data, starting with the opcode byte(s) and followed by any parameters if applicable.
dc - A callback mechanism to offer the instruction information about the context where it's located.

setParameters

public void setParameters(Parameters params)
Description copied from class: Instruction
Update the parameter values of this instruction with the values in the Parameters object defined by params. Observe that the types and count of the parameters in the Parameters object MUST match those that this instruction expects. This can be ensured by obtaining the Parameters object with a call to getParameters() of this instruction.

Specified by:
setParameters in class Instruction
Parameters:
params - A Parameters object with new values for this instruction.

getPoppedElements

public java.util.List<StackElement> getPoppedElements(DecompilationContext dc)
Description copied from class: Instruction
Returns the elements popped from the stack by this instance. This information is static for most instructions, but for example, for the invokexxx instructions it depends on the instruction that is being invoked.

Overrides:
getPoppedElements in class Instruction
Parameters:
dc - the decompilation context so that the processing can access the constant pool, when necessary.
Returns:
a StackElements instance describing the elements popped from the stack.