Class JSONBaseVisitor<T>

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

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

      • JSONBaseVisitor

        public JSONBaseVisitor()
    • Method Detail

      • visitJson

        public T visitJson​(JSONParser.JsonContext ctx)
        Visit a parse tree produced by JSONParser.json().

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

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

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

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

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

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

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

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

        public T visitArray​(JSONParser.ArrayContext ctx)
        Visit a parse tree produced by JSONParser.array().

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

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

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

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

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