public abstract class ParamInst extends TACInst
Modifier and Type | Field and Description |
---|---|
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
|
Constructor and Description |
---|
ParamInst(int opcode,
java.lang.String paramType,
java.lang.String source)
ParamInst constructor
|
Modifier and Type | Method and Description |
---|---|
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)
|
accept, 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 paramType
protected java.lang.String source
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 expressionpublic 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)
public java.lang.String getString()