edu.arizona.cs.mbel.instructions
Class STELEM
java.lang.Object
edu.arizona.cs.mbel.instructions.Instruction
edu.arizona.cs.mbel.instructions.STELEM
- public class STELEM
- extends Instruction
Store array element.
Stack transition:
..., array, index, value --> ...
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 java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
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
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