ast
Class BlockStmt

java.lang.Object
  extended by ast.ASTNode
      extended by ast.Stmt
          extended by 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

Field Summary
protected  StmtList stmtList
          A list of statements
 
Fields inherited from class ast.ASTNode
charNum, lineNum, lineStr
 
Constructor Summary
BlockStmt(int lineNum, StmtList stmtList)
          BlockStmt constructor
 
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 ast.ASTNode
getLineNum
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

stmtList

protected StmtList stmtList
A list of statements

Constructor Detail

BlockStmt

public BlockStmt(int lineNum,
                 StmtList stmtList)
BlockStmt constructor

Parameters:
lineNum - source line number corresponding to this AST node
stmtList - a list of statements
Method Detail

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 object
o - object to pass down
Returns:
result of visiting this node
See Also:
Visitor