edu.cornell.cs.sam.core.instructions
Class SamStringInstruction
java.lang.Object
edu.cornell.cs.sam.core.instructions.SamInstruction
edu.cornell.cs.sam.core.instructions.SamStringInstruction
- All Implemented Interfaces:
- Instruction, java.io.Serializable
- Direct Known Subclasses:
- SAM_PUSHIMMSTR
public abstract class SamStringInstruction
- extends SamInstruction
All instructions with a String operand derive from this class
- See Also:
- Serialized Form
Field Summary |
protected java.lang.String |
op
|
Method Summary |
java.lang.String |
getOperand()
Get the String operand of this instruction |
void |
setOperand(java.lang.String operand)
Set the String operand of this instruction |
java.lang.String |
toString()
Prints out the text that represents this SaM instruction |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
op
protected java.lang.String op
SamStringInstruction
public SamStringInstruction()
toString
public java.lang.String toString()
- Description copied from interface:
Instruction
- Prints out the text that represents this SaM instruction
- Specified by:
toString
in interface Instruction
- Overrides:
toString
in class SamInstruction
- Returns:
- The string representation of this instruction
getOperand
public java.lang.String getOperand()
- Get the String operand of this instruction
- Returns:
- The String operand
setOperand
public void setOperand(java.lang.String operand)
- Set the String operand of this instruction
- Parameters:
operand
- The String operand