edu.arizona.cs.mbel.instructions
Class STELEM

java.lang.Object
  extended byedu.arizona.cs.mbel.instructions.Instruction
      extended byedu.arizona.cs.mbel.instructions.STELEM

public class STELEM
extends Instruction

Store array element.
Stack transition:
..., array, index, value --> ...


Field Summary
protected static int[] OPCODE_LIST
           
static int STELEM_I
           
static int STELEM_I1
           
static int STELEM_I2
           
static int STELEM_I4
           
static int STELEM_I8
           
static int STELEM_R4
           
static int STELEM_R8
           
static int STELEM_REF
           
 
Constructor Summary
STELEM(int op)
          Makes a STELEM object with the given opcode
STELEM(int opcode, ClassParser parse)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getName()
          Returns the string representation of this instruction (may vary instance-to-instance)
 
Methods inherited from class edu.arizona.cs.mbel.instructions.Instruction
emit, getLength, getOpcode, readInstruction, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

STELEM_I1

public static final int STELEM_I1
See Also:
Constant Field Values

STELEM_I2

public static final int STELEM_I2
See Also:
Constant Field Values

STELEM_I4

public static final int STELEM_I4
See Also:
Constant Field Values

STELEM_I8

public static final int STELEM_I8
See Also:
Constant Field Values

STELEM_R4

public static final int STELEM_R4
See Also:
Constant Field Values

STELEM_R8

public static final int STELEM_R8
See Also:
Constant Field Values

STELEM_I

public static final int STELEM_I
See Also:
Constant Field Values

STELEM_REF

public static final int STELEM_REF
See Also:
Constant Field Values

OPCODE_LIST

protected static final int[] OPCODE_LIST
Constructor Detail

STELEM

public STELEM(int op)
       throws InstructionInitException
Makes a STELEM object with the given opcode

Parameters:
op - the opcode (must be one of STELEM_I1, STELEM_I2, etc)

STELEM

public STELEM(int opcode,
              ClassParser parse)
       throws java.io.IOException,
              InstructionInitException
Method Detail

getName

public java.lang.String getName()
Description copied from class: Instruction
Returns the string representation of this instruction (may vary instance-to-instance)

Specified by:
getName in class Instruction
Returns:
a string representing this instruction (i.e. "cpblk")

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class Instruction