Modifier and Type | Field and Description |
---|---|
protected Expr |
expr
The expression within the statement
|
Constructor and Description |
---|
ExprStmt(int lineNum,
Expr expr)
ExprStmt constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
accept(visitor.Visitor v,
java.lang.Object o)
Visitor method
|
Expr |
getExpr()
Get the expression within the statement
|
getLineNum
protected Expr expr
public ExprStmt(int lineNum, Expr expr)
lineNum
- source line number corresponding to this AST nodeexpr
- the expression within the statementpublic Expr getExpr()