com.go.tea.parsetree
Class BreakStatement

java.lang.Object
  |
  +--com.go.tea.parsetree.Node
        |
        +--com.go.tea.parsetree.Statement
              |
              +--com.go.tea.parsetree.BreakStatement
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class BreakStatement
extends Statement

Version:
2 , 5/31/01
Author:
Sean T. Treat
See Also:
Serialized Form

Constructor Summary
BreakStatement(SourceInfo info)
           
 
Method Summary
 java.lang.Object accept(NodeVisitor visitor)
          Every subclass of Node must override this method with the following: return visitor.visit(this).
 java.lang.Object clone()
          Returns a clone of this Node and all its children.
 boolean isBreak()
          Returns true if Statement 'breaks' during its execution.
 
Methods inherited from class com.go.tea.parsetree.Statement
isReturn
 
Methods inherited from class com.go.tea.parsetree.Node
getSourceInfo, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BreakStatement

public BreakStatement(SourceInfo info)
Method Detail

accept

public java.lang.Object accept(NodeVisitor visitor)
Description copied from class: Node
Every subclass of Node must override this method with the following: return visitor.visit(this).
Overrides:
accept in class Statement
Following copied from class: com.go.tea.parsetree.Node
Parameters:
visitor - A visitor of this Node
Returns:
Node The Node returned by the visitor
See Also:
NodeVisitor

isBreak

public boolean isBreak()
Description copied from class: Statement
Returns true if Statement 'breaks' during its execution.
Overrides:
isBreak in class Statement

clone

public java.lang.Object clone()
Description copied from class: Node
Returns a clone of this Node and all its children. Immutable child objects are not necessarily cloned
Overrides:
clone in class Node