koala.dynamicjava.tree
Class PreIncrement

java.lang.Object
  extended by koala.dynamicjava.tree.Node
      extended by koala.dynamicjava.tree.Expression
          extended by koala.dynamicjava.tree.UnaryExpression
              extended by koala.dynamicjava.tree.PreIncrement
All Implemented Interfaces:
ExpressionContainer, SourceInfo.Wrapper, StatementExpression

public class PreIncrement
extends UnaryExpression
implements StatementExpression

This class represents the pre increment nodes of the syntax tree

Version:
1.0 - 1999/04/25
Author:
Stephane Hillion

Field Summary
 
Fields inherited from interface koala.dynamicjava.tree.ExpressionContainer
EXPRESSION
 
Constructor Summary
PreIncrement(Expression exp)
          Initializes the expression
PreIncrement(Expression exp, SourceInfo si)
          Initializes the expression
 
Method Summary
<T> T
acceptVisitor(Visitor<T> visitor)
          Allows a visitor to traverse the tree
 
Methods inherited from class koala.dynamicjava.tree.UnaryExpression
getExpression, setExpression, toString
 
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

PreIncrement

public PreIncrement(Expression exp)
Initializes the expression

Parameters:
exp - the pre incremented expression
Throws:
java.lang.IllegalArgumentException - if exp is null

PreIncrement

public PreIncrement(Expression exp,
                    SourceInfo si)
Initializes the expression

Parameters:
exp - the pre incremented expression
Throws:
java.lang.IllegalArgumentException - if exp is null
Method Detail

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