ast
Class Stmt

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

Field Summary
 
Fields inherited from class ast.ASTNode
charNum, lineNum, lineStr
 
Constructor Summary
protected Stmt(int lineNum)
          Stmt constructor
 
Method Summary
abstract  java.lang.Object accept(visitor.Visitor v, java.lang.Object o)
          Visitor method
 
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
 

Constructor Detail

Stmt

protected Stmt(int lineNum)
Stmt constructor

Parameters:
lineNum - source line number corresponding to this AST node
Method Detail

accept

public abstract java.lang.Object accept(visitor.Visitor v,
                                        java.lang.Object o)
Visitor method

Specified by:
accept in class ASTNode
Parameters:
v - visitor object
o - object to pass down
Returns:
result of visiting this node
See Also:
Visitor