re.ast
Class RENode

java.lang.Object
  extended by re.ast.RENode
Direct Known Subclasses:
REEmpty

public abstract class RENode
extends Object

The base class of all AST nodes in this package.


Constructor Summary
RENode()
           
 
Method Summary
abstract
<DownType,UpType>
UpType
accept(PropagatingVisitor<DownType,UpType> visitor, DownType context)
          Accepts a propagating visitor parameterized by two types.
abstract  void accept(Visitor visitor)
          Accepts a visitor object as part of the visitor pattern.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RENode

public RENode()
Method Detail

accept

public abstract void accept(Visitor visitor)
Accepts a visitor object as part of the visitor pattern.

Parameters:
visitor - A visitor.

accept

public abstract <DownType,UpType> UpType accept(PropagatingVisitor<DownType,UpType> visitor,
                                                DownType context)
Accepts a propagating visitor parameterized by two types.

Type Parameters:
DownType - The type of the object holding the context.
UpType - The type of the result object.
Parameters:
visitor - A propagating visitor.
context - An object holding context information.
Returns:
The result of visiting this node.