koala.dynamicjava.tree
Class PostIncrement

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.PostIncrement
All Implemented Interfaces:
ExpressionContainer, SourceInfo.Wrapper, StatementExpression

public class PostIncrement
extends UnaryExpression
implements StatementExpression

This class represents the post 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
PostIncrement(Expression exp)
          Initializes the expression
PostIncrement(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

PostIncrement

public PostIncrement(Expression exp)
Initializes the expression

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

PostIncrement

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

Parameters:
exp - the post 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