|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.nrl.parser.ast.ConstraintVisitorDispatcher
net.sourceforge.nrl.parser.ast.ActionVisitorDispatcher
public class ActionVisitorDispatcher
An extension of the basic dispatching AST visitor class that adds action language support.
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.
| Field Summary |
|---|
| Fields inherited from class net.sourceforge.nrl.parser.ast.ConstraintVisitorDispatcher |
|---|
visitor |
| Constructor Summary | |
|---|---|
ActionVisitorDispatcher(INRLActionDetailVisitor visitor)
Initialise the dispatcher with a actionVisitor. |
|
| Method Summary | |
|---|---|
void |
visitAfter(INRLAstNode node)
Dispatching method. |
boolean |
visitBefore(INRLAstNode node)
Dispatching method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ActionVisitorDispatcher(INRLActionDetailVisitor visitor)
visitor - the visitor| Method Detail |
|---|
public 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 node
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||