ast
Class BreakStmt

java.lang.Object
  extended by ast.ASTNode
      extended by ast.Stmt
          extended by ast.BreakStmt

public class BreakStmt
extends Stmt

The BreakStmt class represents a break statement appearing within in a loop in a method declaration. It has no additional subcomponents besides those inherited from Stmt.

See Also:
ASTNode, Stmt

Field Summary
 
Fields inherited from class ast.ASTNode
charNum, lineNum, lineStr
 
Constructor Summary
BreakStmt(int lineNum)
          BreakStmt constructor
 
Method Summary
 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

BreakStmt

public BreakStmt(int lineNum)
BreakStmt constructor

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

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