Class Parser.ExtensionHandler

  • Enclosing class:
    Parser

    public abstract static class Parser.ExtensionHandler
    extends Object
    Provide limited support for syntax extensions.
    • Method Detail

      • getExtensionPoint

        public Parser.ExtensionPoint getExtensionPoint()
        Returns:
        the extension point specifying where this syntax extension is active
      • createAstNode

        public abstract AstNode createAstNode​(AstNode... children)
        Called by the parser if it handles a extended token associated with this handler at the appropriate extension point.
        Parameters:
        children -
        Returns:
        abstract syntax tree node