net.sourceforge.nrl.parser.ast
Class ConstraintVisitorDispatcher

java.lang.Object
  extended by net.sourceforge.nrl.parser.ast.ConstraintVisitorDispatcher
All Implemented Interfaces:
INRLAstVisitor
Direct Known Subclasses:
ActionVisitorDispatcher

public class ConstraintVisitorDispatcher
extends Object
implements INRLAstVisitor

A default implementation of the INRLAstVisitor interface that dispatches calls to the visitor method to a client-supplied INRLConstraintDetailVisitor.


Constructor Summary
ConstraintVisitorDispatcher(INRLConstraintDetailVisitor visitor)
          Initialise the dispatcher with a client-supplied visitor.
 
Method Summary
 void visitAfter(INRLAstNode node)
          Default implementation - dispatches calls to the registered visitor's methods.
 boolean visitBefore(INRLAstNode node)
          Default implementation - dispatches calls to the registered visitor's methods.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstraintVisitorDispatcher

public ConstraintVisitorDispatcher(INRLConstraintDetailVisitor visitor)
Initialise the dispatcher with a client-supplied visitor.

Parameters:
visitor - the visitor
Method Detail

visitAfter

public void visitAfter(INRLAstNode node)
Default implementation - dispatches calls to the registered visitor's methods.

Specified by:
visitAfter in interface INRLAstVisitor
Parameters:
node - the node to visit

visitBefore

public boolean visitBefore(INRLAstNode node)
Default implementation - dispatches calls to the registered visitor's methods.

Specified by:
visitBefore in interface INRLAstVisitor
Parameters:
node - the AST node
Returns:
true if the children should be visited


Copyright © 2006-2010 Christian Nentwich and others