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 leaves
M - the type of diagnostic messages attached to stems
O - the type of obstructions to continuation
Enclosing class:
Action<R,M,O>

public abstract static class Action.Visitor<R,M,O> extends Object
Visitor base class for search trees.
  • Constructor Details

    • Visitor

      protected Visitor()
      Creates a new instance.
  • Method Details

    • visitResult

      protected void visitResult(R result, List<M> msgStack)
      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 result
      msgStack - the messages accumulated along the path
    • visitObstruction

      protected void visitObstruction(O obstruction, List<M> msgStack)
      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 obstruction
      msgStack - the messages accumulated along the path