net.sourceforge.nrl.parser.ast
Class ConstraintVisitorDispatcher
java.lang.Object
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
|
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 |
visitor
protected INRLConstraintDetailVisitor visitor
ConstraintVisitorDispatcher
public ConstraintVisitorDispatcher(INRLConstraintDetailVisitor visitor)
- Initialise the dispatcher with a client-supplied visitor.
- Parameters:
visitor - the visitor
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-2012. All Rights Reserved.