Modifier and Type | Field and Description |
---|---|
protected StmtList |
stmtList
A list of statements
|
Constructor and Description |
---|
BlockStmt(int lineNum,
StmtList stmtList)
BlockStmt constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
accept(visitor.Visitor v,
java.lang.Object o)
Visitor method
|
StmtList |
getStmtList()
Get the statement list
|
getLineNum
protected StmtList stmtList
public BlockStmt(int lineNum, StmtList stmtList)
lineNum
- source line number corresponding to this AST nodestmtList
- a list of statementspublic StmtList getStmtList()