|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcfg.TACInst
cfg.LoadInst
cfg.LoadEntryInst
public class LoadEntryInst
A class representing a three-address code load entry instruction (LoadEntryInst), which loads an entry from an indexable variable or string constant. A load entry instruction consists of a destination variable and a source operand (note: the operand must be indexable, e.g., an object variable), which are both inherited from LoadInst. A LoadEntryInst also consists of an index, which is either an int variable or constant. From TACInst it also inherits an opcode (LDENTRY).
| Field Summary |
|---|
| Fields inherited from class cfg.LoadInst |
|---|
destination, source |
| 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 | |
|---|---|
LoadEntryInst(java.lang.String destination,
java.lang.String source,
java.lang.String index)
LoadEntryInst constructor |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class cfg.LoadInst |
|---|
getDestination, getSource, setDestination |
| 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 |
| Constructor Detail |
|---|
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)| Method Detail |
|---|
public void setSource(java.lang.String source)
setSource in class LoadInstsource - 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 LoadInsto - object to compare the reference object with
public java.lang.String getString()
getString in class LoadInst
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||