Class JSON5BaseVisitor<T>

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

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

      • JSON5BaseVisitor

        public JSON5BaseVisitor()
    • Method Detail

      • visitJson5

        public T visitJson5​(JSON5Parser.Json5Context ctx)
        Visit a parse tree produced by JSON5Parser.json5().

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

        Specified by:
        visitJson5 in interface JSON5Visitor<T>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitObj

        public T visitObj​(JSON5Parser.ObjContext ctx)
        Visit a parse tree produced by JSON5Parser.obj().

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

        Specified by:
        visitObj in interface JSON5Visitor<T>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitPair

        public T visitPair​(JSON5Parser.PairContext ctx)
        Visit a parse tree produced by JSON5Parser.pair().

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

        Specified by:
        visitPair in interface JSON5Visitor<T>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitKey

        public T visitKey​(JSON5Parser.KeyContext ctx)
        Visit a parse tree produced by JSON5Parser.key().

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

        Specified by:
        visitKey in interface JSON5Visitor<T>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitValue

        public T visitValue​(JSON5Parser.ValueContext ctx)
        Visit a parse tree produced by JSON5Parser.value().

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

        Specified by:
        visitValue in interface JSON5Visitor<T>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitArr

        public T visitArr​(JSON5Parser.ArrContext ctx)
        Visit a parse tree produced by JSON5Parser.arr().

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

        Specified by:
        visitArr in interface JSON5Visitor<T>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitNumber

        public T visitNumber​(JSON5Parser.NumberContext ctx)
        Visit a parse tree produced by JSON5Parser.number().

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

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