|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcfg.TACInst
cfg.ParamInst
public abstract class ParamInst
A generic class representing a three-address code parameter instruction (ParamInst). It is extended by three classes: StdParamInst, RefParamInst, and ErrParamInst. A parameter instruction consists of a source operand holding the value of the actual parameter expression. From TACInst it also inherits an opcode.
Field Summary | |
---|---|
protected java.lang.String |
paramType
Type of the parameter (e.g., "stdparam", "refparam", errparam") |
protected java.lang.String |
source
Source operand holding result of the actual parameter expression |
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, PHI, REFPARAM, RETN, STDPARAM, STENTRY, UNNEG, UNNOT |
Constructor Summary | |
---|---|
ParamInst(int opcode,
java.lang.String paramType,
java.lang.String source)
ParamInst constructor |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
Compares this object with the parameter object |
java.lang.String |
getParamType()
Get the parameter type (e.g., "stdparam", "refparam", errparam") |
java.lang.String |
getSource()
Get the soure operand (result of parameter expression) |
java.lang.String |
getString()
Get string representation of instruction (without comments) (note: in general, you want to use toString() to get instruction string) |
void |
setSource(java.lang.String source)
Set the source operand (result of parameter expression) |
Methods inherited from class cfg.TACInst |
---|
accept, 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 paramType
protected java.lang.String source
Constructor Detail |
---|
public ParamInst(int opcode, java.lang.String paramType, java.lang.String source)
opcode
- opcode of load instructionparamType
- type of the parameter (e.g., "stdparam", "refparam",
errparam")source
- source operand holding value of the parameter expressionMethod Detail |
---|
public java.lang.String getSource()
public void setSource(java.lang.String source)
source
- new source operandpublic java.lang.String getParamType()
public boolean equals(java.lang.Object o)
equals
in class TACInst
o
- 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 |