|
|||||||||
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.
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 |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ActionVisitorDispatcher(INRLActionDetailVisitor visitor)
visitor
- the visitorMethod Detail |
---|
public void visitAfter(INRLAstNode node)
visitAfter
in interface INRLAstVisitor
visitAfter
in class ConstraintVisitorDispatcher
node
- the node to visitpublic boolean visitBefore(INRLAstNode node)
visitBefore
in interface INRLAstVisitor
visitBefore
in class ConstraintVisitorDispatcher
node
- the AST node
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |