public class LoadEntryInst extends LoadInst
destination, source
Constructor and Description |
---|
LoadEntryInst(java.lang.String destination,
java.lang.String source,
java.lang.String index)
LoadEntryInst 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 |
getIndex()
Get the index
|
java.lang.String |
getString()
Get string representation of instruction (without comments)
(note: in general, you want to use toString() to get instruction string)
|
void |
setIndex(java.lang.String index)
Set the index
|
void |
setSource(java.lang.String source)
Set the source operand
|
getDestination, getSource, setDestination
addComment, checkBoolConst, checkConst, checkIntConst, checkLabel, checkStrConst, checkVar, getBinaryOpcode, getComments, getOp, getOpcode, getUnaryOpcode, isBinary, isCall, isIf, isLoad, isParam, isPhi, isReturn, isStore, isUnary, isValidID, removeComments, toString
public LoadEntryInst(java.lang.String destination, java.lang.String source, java.lang.String index)
destination
- destination variablesource
- source object (variable or string constant to load from)index
- index to load entry from in source operand (either int
variable or constant)public void setSource(java.lang.String source)
public 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