Class XMLParserBaseVisitor<T>

  • Type Parameters:
    T - The return type of the visit operation. Use Void for operations with no return type.
    All Implemented Interfaces:
    XMLParserVisitor<T>, org.antlr.v4.runtime.tree.ParseTreeVisitor<T>

    public class XMLParserBaseVisitor<T>
    extends org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T>
    implements XMLParserVisitor<T>
    This class provides an empty implementation of XMLParserVisitor, which can be extended to create a visitor which only needs to handle a subset of the available methods.
    • Constructor Detail

      • XMLParserBaseVisitor

        public XMLParserBaseVisitor()
    • Method Detail

      • visitDocument

        public T visitDocument​(XMLParser.DocumentContext ctx)
        Visit a parse tree produced by XMLParser.document().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitDocument in interface XMLParserVisitor<T>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitProlog

        public T visitProlog​(XMLParser.PrologContext ctx)
        Visit a parse tree produced by XMLParser.prolog().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitProlog in interface XMLParserVisitor<T>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitContent

        public T visitContent​(XMLParser.ContentContext ctx)
        Visit a parse tree produced by XMLParser.content().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitContent in interface XMLParserVisitor<T>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitElement

        public T visitElement​(XMLParser.ElementContext ctx)
        Visit a parse tree produced by XMLParser.element().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitElement in interface XMLParserVisitor<T>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitReference

        public T visitReference​(XMLParser.ReferenceContext ctx)
        Visit a parse tree produced by XMLParser.reference().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitReference in interface XMLParserVisitor<T>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitAttribute

        public T visitAttribute​(XMLParser.AttributeContext ctx)
        Visit a parse tree produced by XMLParser.attribute().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitAttribute in interface XMLParserVisitor<T>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitChardata

        public T visitChardata​(XMLParser.ChardataContext ctx)
        Visit a parse tree produced by XMLParser.chardata().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitChardata in interface XMLParserVisitor<T>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitMisc

        public T visitMisc​(XMLParser.MiscContext ctx)
        Visit a parse tree produced by XMLParser.misc().

        The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

        Specified by:
        visitMisc in interface XMLParserVisitor<T>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result