koala.dynamicjava.tree
Class PostDecrement

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

public class PostDecrement
extends UnaryExpression
implements StatementExpression

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

PostDecrement

public PostDecrement(Expression exp)
Initializes the expression

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

PostDecrement

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

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