Modifier and Type | Field and Description |
---|---|
protected Expr |
expr
An expression to be returned (null for no return expression)
|
Constructor and Description |
---|
ReturnStmt(int lineNum,
Expr expr)
ReturnStmt constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
accept(visitor.Visitor v,
java.lang.Object o)
Visitor method
|
Expr |
getExpr()
Get the return expression
|
getLineNum
protected Expr expr
public ReturnStmt(int lineNum, Expr expr)
lineNum
- source line number corresponding to this AST nodeexpr
- expression to be returned (null for no return expression)public Expr getExpr()