koala.dynamicjava.tree
Class BreakStatement

java.lang.Object
  extended by koala.dynamicjava.tree.Node
      extended by koala.dynamicjava.tree.Statement
          extended by koala.dynamicjava.tree.BreakStatement
All Implemented Interfaces:
SourceInfo.Wrapper

public class BreakStatement
extends Statement

This class represents the break statement nodes of the syntax tree

Version:
1.0 - 1999/05/23
Author:
Stephane Hillion

Constructor Summary
BreakStatement(java.lang.String label)
          Creates a new while statement
BreakStatement(java.lang.String label, SourceInfo si)
          Creates a new while statement
 
Method Summary
<T> T
acceptVisitor(Visitor<T> visitor)
          Allows a visitor to traverse the tree
 java.lang.String getLabel()
          Gets the label
 void setLabel(java.lang.String s)
          Sets the label
 java.lang.String toString()
          Implementation of toString for use in unit testing
 
Methods inherited from class koala.dynamicjava.tree.Node
archiveProperties, getProperties, getProperty, getSourceInfo, hasProperty, setProperty, setSourceInfo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BreakStatement

public BreakStatement(java.lang.String label)
Creates a new while statement

Parameters:
label - the label
Throws:
java.lang.IllegalArgumentException - if label is null

BreakStatement

public BreakStatement(java.lang.String label,
                      SourceInfo si)
Creates a new while statement

Parameters:
label - the label
Method Detail

getLabel

public java.lang.String getLabel()
Gets the label


setLabel

public void setLabel(java.lang.String s)
Sets the label


acceptVisitor

public <T> T acceptVisitor(Visitor<T> visitor)
Allows a visitor to traverse the tree

Specified by:
acceptVisitor in class Node
Parameters:
visitor - the visitor to accept

toString

public java.lang.String toString()
Implementation of toString for use in unit testing

Overrides:
toString in class java.lang.Object