public class StoreEntryInst extends TACInst
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
destination
Destination operand, which must be indexable (e.g., object variable)
|
protected java.lang.String |
source
Source operand
|
Constructor and Description |
---|
StoreEntryInst(java.lang.String destination,
java.lang.String source,
java.lang.String index)
StoreEntryInst constructor
|
Modifier and Type | Method and Description |
---|---|
<ReturnType,ArgumentType> |
accept(TACInstVisitor<ReturnType,ArgumentType> visitor,
ArgumentType o)
Abstract visitor method.
|
boolean |
equals(java.lang.Object o)
Compares this object with the parameter object
|
java.lang.String |
getDestination()
Get the destination operand
|
java.lang.String |
getIndex()
Get the index
|
java.lang.String |
getSource()
Get the source operand
|
java.lang.String |
getString()
Get string representation of instruction (without comments)
(note: in general, you want to use toString() to get instruction string)
|
void |
setDestination(java.lang.String destination)
Set the destination operand
|
void |
setIndex(java.lang.String index)
Set the index
|
void |
setSource(java.lang.String source)
Set the source operand
|
addComment, checkBoolConst, checkConst, checkIntConst, checkLabel, checkStrConst, checkVar, getBinaryOpcode, getComments, getOp, getOpcode, getUnaryOpcode, isBinary, isCall, isIf, isLoad, isParam, isPhi, isReturn, isStore, isUnary, isValidID, removeComments, toString
protected java.lang.String destination
protected java.lang.String source
public StoreEntryInst(java.lang.String destination, java.lang.String source, java.lang.String index)
destination
- destination operand (which must be indexable, e.g., an
object variable)source
- source operandindex
- index to store entry to in destination operand (either int
variable or constant)public java.lang.String getDestination()
public void setDestination(java.lang.String destination)
destination
- new destination operandpublic java.lang.String getSource()
public void setSource(java.lang.String source)
source
- new source operandpublic java.lang.String getIndex()
public void setIndex(java.lang.String index)
index
- new indexpublic boolean equals(java.lang.Object o)
public java.lang.String getString()
public <ReturnType,ArgumentType> ReturnType accept(TACInstVisitor<ReturnType,ArgumentType> visitor, ArgumentType o)
TACInst