|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcfg.TACInst
cfg.StoreEntryInst
public class StoreEntryInst
A class representing a three-address code store entry instruction (StoreEntryInst), which stores a value an entry from an indexable variable or string constant. A store entry instruction consists of a destination operand (which must be indexable, e.g., an object variable), a source operand, and an index (which must be either an int variable or constant). From TACInst it also inherits an opcode (STENTRY).
| Field Summary | |
|---|---|
protected java.lang.String |
destination
Destination operand, which must be indexable (e.g., object variable) |
protected java.lang.String |
source
Source operand |
| Fields inherited from class cfg.TACInst |
|---|
BINADD, BINAND, BINDIV, BINMOD, BINMUL, BINOR, BINSUB, comments, DIRCALL, ERRPARAM, IF, INDIRCALL, LDADDR, LDCONST, LDENTRY, LDVAR, NUM_INSN_TYPES, opcode, REFPARAM, RETN, STDPARAM, STENTRY, UNNEG, UNNOT |
| Constructor Summary | |
|---|---|
StoreEntryInst(java.lang.String destination,
java.lang.String source,
java.lang.String index)
StoreEntryInst constructor |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class cfg.TACInst |
|---|
addComment, checkBoolConst, checkConst, checkIntConst, checkLabel, checkStrConst, checkVar, getBinaryOpcode, getComments, getOp, getOpcode, getUnaryOpcode, isBinary, isCall, isIf, isLoad, isParam, isReturn, isStore, isUnary, isValidID, removeComments, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String destination
protected java.lang.String source
| Constructor Detail |
|---|
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)| Method Detail |
|---|
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)
equals in class TACInsto - object to compare the reference object with
public java.lang.String getString()
getString in class TACInst
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||