Interface EventGenerator<N,D>

All Known Implementing Classes:
EventFilter, SAXEventGenerator

public interface EventGenerator<N,D>
Realizes the run-time implementation for the semantic actions inserted by xantlr into any generated parser.
Such an object has to be linked to the generated parser, which is a X_LLkParser. See there for details!
These actions represent the recognized "AST" as a sequence of opening and closing events. Normally the implementation is a SAXEventGenerator, which maps these events to SAX events.
  • Method Details

    • suppress

      void suppress()
    • allow

      void allow() throws antlr.SemanticException
      Throws:
      antlr.SemanticException
    • startElement

      void startElement(N name) throws antlr.SemanticException
      Throws:
      antlr.SemanticException
    • endElement

      void endElement(N name) throws antlr.SemanticException
      Throws:
      antlr.SemanticException
    • characters

      void characters(String text) throws antlr.SemanticException
      Throws:
      antlr.SemanticException
    • warning

      void warning(String message) throws antlr.SemanticException
      Throws:
      antlr.SemanticException
    • error

      void error(String message) throws antlr.SemanticException
      Throws:
      antlr.SemanticException
    • fatalError

      void fatalError(String message) throws antlr.SemanticException
      Throws:
      antlr.SemanticException
    • getLocation

      Location<D> getLocation()
    • getLocation

      Location<D> getLocation(antlr.RecognitionException e)