Package eu.bandm.tools.ramus.ogma
Class Action.Visitor<R,M,O>
java.lang.Object
eu.bandm.tools.ramus.ogma.Action.Visitor<R,M,O>
- Type Parameters:
R- the type of parsing results attached to leavesM- the type of diagnostic messages attached to stemsO- the type of obstructions to continuation
Visitor base class for search trees.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvisitObstruction(O obstruction, List<M> msgStack) Performs some client action for the given obstruction and messages.protected voidvisitResult(R result, List<M> msgStack) Performs some client action for the given result and messages.
-
Constructor Details
-
Visitor
protected Visitor()Creates a new instance.
-
-
Method Details
-
visitResult
Performs some client action for the given result and messages.The default implementation does nothing. Subclasses may override this method to perform specific actions.
- Parameters:
result- the resultmsgStack- the messages accumulated along the path
-
visitObstruction
Performs some client action for the given obstruction and messages.The default implementation does nothing. Subclasses may override this method to perform specific actions.
- Parameters:
obstruction- the obstructionmsgStack- the messages accumulated along the path
-