koala.dynamicjava.tree
Class MinusExpression

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

public class MinusExpression
extends UnaryExpression

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

MinusExpression

public MinusExpression(Expression exp)
Initializes the expression

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

MinusExpression

public MinusExpression(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