uk.ac.man.cs.rainbow.simulator.rasm
Class Push

java.lang.Object
  |
  +--uk.ac.man.cs.rainbow.simulator.Instruction
        |
        +--uk.ac.man.cs.rainbow.simulator.rasm.Push
All Implemented Interfaces:
Serializable

public class Push
extends Instruction

Pushes the argument onto the stack.

- dataval

See Also:
Serialized Form

Inner classes inherited from class uk.ac.man.cs.rainbow.simulator.Instruction
Instruction.MACRO
 
Constructor Summary
Push(boolean bool)
           
Push(boolean bool, RASMCode code)
           
Push(Data value)
           
Push(Data value, RASMCode code)
           
Push(int i)
           
Push(int i, RASMCode code)
           
Push(RASMCode.Label label)
           
Push(RASMCode.Label label, RASMCode code)
           
Push(String string)
           
Push(String string, RASMCode code)
           
Push(Type type)
           
Push(Type type, RASMCode code)
           
 
Method Summary
protected  boolean execute(RASMThread thread)
          Make this instruction execute in the given context.
 Data getValue()
           
 String toString()
           
 
Methods inherited from class uk.ac.man.cs.rainbow.simulator.Instruction
addClass, getInstruction, getInstruction, getInstruction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Push

public Push(RASMCode.Label label)

Push

public Push(String string)

Push

public Push(boolean bool)

Push

public Push(int i)

Push

public Push(Data value)

Push

public Push(Type type)

Push

public Push(RASMCode.Label label,
            RASMCode code)

Push

public Push(String string,
            RASMCode code)

Push

public Push(boolean bool,
            RASMCode code)

Push

public Push(int i,
            RASMCode code)

Push

public Push(Data value,
            RASMCode code)

Push

public Push(Type type,
            RASMCode code)
Method Detail

getValue

public Data getValue()

toString

public String toString()
Overrides:
toString in class Object

execute

protected boolean execute(RASMThread thread)
Description copied from class: Instruction
Make this instruction execute in the given context.
Overrides:
execute in class Instruction
Following copied from class: uk.ac.man.cs.rainbow.simulator.Instruction
Throws:
RainbowException - All sorts of things can go wrong during execution...