public class ActionVisitorDispatcher extends ConstraintVisitorDispatcher
Implementors of mappings of the full action language, including the base
constraint language, should implement this visitor class. For every node in
the AST, which is visited in a pre-order traversal, they will get a call to a
before method before a node is visited and a call to an
after method once its children have been visited.
To use the class, extend and implement all abstract methods.
visitor| Constructor and Description |
|---|
ActionVisitorDispatcher(INRLActionDetailVisitor visitor)
Initialise the dispatcher with a actionVisitor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
visitAfter(INRLAstNode node)
Dispatching method.
|
boolean |
visitBefore(INRLAstNode node)
Dispatching method.
|
public ActionVisitorDispatcher(INRLActionDetailVisitor visitor)
visitor - the visitorpublic void visitAfter(INRLAstNode node)
visitAfter in interface INRLAstVisitorvisitAfter in class ConstraintVisitorDispatchernode - the node to visitpublic boolean visitBefore(INRLAstNode node)
visitBefore in interface INRLAstVisitorvisitBefore in class ConstraintVisitorDispatchernode - the AST nodeCopyright © 2006-2013. All Rights Reserved.