|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectast.ASTNode
ast.Stmt
ast.ExprStmt
public class ExprStmt
The ExprStmt class represents an expression statement (a statement containing a single expression) appearing in a method declaration. It contains an expression (expr).
ASTNode,
Stmt| Field Summary | |
|---|---|
protected Expr |
expr
The expression within the statement |
| Fields inherited from class ast.ASTNode |
|---|
charNum, lineNum, lineStr |
| Constructor Summary | |
|---|---|
ExprStmt(int lineNum,
Expr expr)
ExprStmt constructor |
|
| Method Summary | |
|---|---|
java.lang.Object |
accept(Visitor v)
Visitor method |
Expr |
getExpr()
Get the expression within the statement |
| Methods inherited from class ast.ASTNode |
|---|
getLineNum |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Expr expr
| Constructor Detail |
|---|
public ExprStmt(int lineNum,
Expr expr)
lineNum - source line number corresponding to this AST nodeexpr - the expression within the statement| Method Detail |
|---|
public Expr getExpr()
public java.lang.Object accept(Visitor v)
accept in class Stmtv - visitor object
Visitor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||