ast
Class BlockStmt
java.lang.Object
ast.ASTNode
ast.Stmt
ast.BlockStmt
public class BlockStmt
- extends Stmt
The BlockStmt class represents a block statement, which
contains a list of statements. It contains a statement list
(stmtList).
- See Also:
ASTNode
,
Stmt
Method Summary |
java.lang.Object |
accept(visitor.Visitor v,
java.lang.Object o)
Visitor method |
StmtList |
getStmtList()
Get the statement list |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
stmtList
protected StmtList stmtList
- A list of statements
BlockStmt
public BlockStmt(int lineNum,
StmtList stmtList)
- BlockStmt constructor
- Parameters:
lineNum
- source line number corresponding to this AST nodestmtList
- a list of statements
getStmtList
public StmtList getStmtList()
- Get the statement list
- Returns:
- statement list
accept
public java.lang.Object accept(visitor.Visitor v,
java.lang.Object o)
- Visitor method
- Specified by:
accept
in class Stmt
- Parameters:
v
- visitor objecto
- object to pass down
- Returns:
- result of visiting this node
- See Also:
Visitor