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.

Author:
Christian Nentwich

Field Summary
protected  INRLConstraintDetailVisitor visitor
           
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

visitor

protected INRLConstraintDetailVisitor visitor
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-2013. All Rights Reserved.