koala.dynamicjava.tree
Class LabeledStatement

java.lang.Object
  extended bykoala.dynamicjava.tree.Node
      extended bykoala.dynamicjava.tree.Statement
          extended bykoala.dynamicjava.tree.LabeledStatement

public class LabeledStatement
extends Statement

This class represents the labeled statement nodes of the syntax tree


Field Summary
static java.lang.String LABEL
          The label property name
static java.lang.String STATEMENT
          The statement property name
 
Fields inherited from class koala.dynamicjava.tree.Node
BEGIN_COLUMN, BEGIN_LINE, END_COLUMN, END_LINE, FILENAME
 
Constructor Summary
LabeledStatement(java.lang.String label, Node stat)
          Creates a new while statement
LabeledStatement(java.lang.String label, Node stat, java.lang.String fn, int bl, int bc, int el, int ec)
          Creates a new while statement
 
Method Summary
 java.lang.Object acceptVisitor(Visitor visitor)
          Allows a visitor to traverse the tree
 java.lang.String getLabel()
          Gets the label
 Node getStatement()
          Returns the statement
 void setLabel(java.lang.String s)
          Sets the label
 void setStatement(Node n)
          Sets the statement
 
Methods inherited from class koala.dynamicjava.tree.Node
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getBeginColumn, getBeginLine, getEndColumn, getEndLine, getFilename, getProperties, getProperty, hasProperty, removePropertyChangeListener, removePropertyChangeListener, setBeginColumn, setBeginLine, setEndColumn, setEndLine, setFilename, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LABEL

public static final java.lang.String LABEL
The label property name

See Also:
Constant Field Values

STATEMENT

public static final java.lang.String STATEMENT
The statement property name

See Also:
Constant Field Values
Constructor Detail

LabeledStatement

public LabeledStatement(java.lang.String label,
                        Node stat)
Creates a new while statement

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

LabeledStatement

public LabeledStatement(java.lang.String label,
                        Node stat,
                        java.lang.String fn,
                        int bl,
                        int bc,
                        int el,
                        int ec)
Creates a new while statement

Parameters:
label - the label
stat - the statement
fn - the filename
bl - the begin line
bc - the begin column
el - the end line
ec - the end column
Throws:
java.lang.IllegalArgumentException - if label is null or stat is null
Method Detail

getLabel

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


setLabel

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

Throws:
java.lang.IllegalArgumentException - if e is null

getStatement

public Node getStatement()
Returns the statement


setStatement

public void setStatement(Node n)
Sets the statement

Throws:
java.lang.IllegalArgumentException - if n is null

acceptVisitor

public java.lang.Object acceptVisitor(Visitor visitor)
Allows a visitor to traverse the tree

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


Copyright © 2001 Stephane Hillion. All Rights Reserved.