ast
Class Stmt
java.lang.Object
ast.ASTNode
ast.Stmt
- Direct Known Subclasses:
- BlockStmt, BreakStmt, DeclStmt, ExprStmt, ForStmt, IfStmt, ReturnStmt, WhileStmt
public abstract class Stmt
- extends ASTNode
The abstract Stmt class represents a statement that is
is contained in a method body. A statement can be either a
declaration statement, an expression statement, an if statement, a
while statement, a for statement, a break statement, a return statement
or a block statement.
- See Also:
ASTNode,
DeclStmt,
ExprStmt,
IfStmt,
WhileStmt,
ForStmt,
BreakStmt,
ReturnStmt,
BlockStmt
|
Constructor Summary |
protected |
Stmt(int lineNum)
Stmt constructor |
|
Method Summary |
abstract java.lang.Object |
accept(Visitor v)
Visitor method |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Stmt
protected Stmt(int lineNum)
- Stmt constructor
- Parameters:
lineNum - source line number corresponding to this AST node
accept
public abstract java.lang.Object accept(Visitor v)
- Visitor method
- Specified by:
accept in class ASTNode
- Parameters:
v - visitor object
- Returns:
- result of visiting this node
- See Also:
Visitor