public class ReturnInst extends TACInst
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
source
Source operand holding result of the return expression (null if none)
|
Constructor and Description |
---|
ReturnInst(java.lang.String source)
ReturnInst 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 |
getSource()
Get the soure operand (result of return expression, null if none)
|
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 soure operand (result of return expression, to null if none)
|
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 source
public ReturnInst(java.lang.String source)
source
- source operand holding result of the return expressionpublic java.lang.String getSource()
public void setSource(java.lang.String source)
source
- new source operandpublic boolean equals(java.lang.Object o)
public java.lang.String getString()
public <ReturnType,ArgumentType> ReturnType accept(TACInstVisitor<ReturnType,ArgumentType> visitor, ArgumentType o)
TACInst