koala.dynamicjava.tree
Class PlusExpression

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

public class PlusExpression
extends UnaryExpression

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

PlusExpression

public PlusExpression(Expression exp)
Initializes the expression

Parameters:
exp - the target expression
Throws:
IllegalArgumentException - if exp is null

PlusExpression

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

Parameters:
exp - the target expression
Throws:
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