Class JsonBaseBaseVisitor<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>, JsonBaseVisitor<T>
    Direct Known Subclasses:
    JsonAstBuilder

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

      • JsonBaseBaseVisitor

        public JsonBaseBaseVisitor()
    • Method Detail

      • visitJson

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

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

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

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

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

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

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

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

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

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

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

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

        public T visitStringValue​(JsonBaseParser.StringValueContext ctx)
        Visit a parse tree produced by the stringValue labeled alternative in JsonBaseParser.value().

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

        Specified by:
        visitStringValue in interface JsonBaseVisitor<T>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitNumberValue

        public T visitNumberValue​(JsonBaseParser.NumberValueContext ctx)
        Visit a parse tree produced by the numberValue labeled alternative in JsonBaseParser.value().

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

        Specified by:
        visitNumberValue in interface JsonBaseVisitor<T>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitObjValue

        public T visitObjValue​(JsonBaseParser.ObjValueContext ctx)
        Visit a parse tree produced by the objValue labeled alternative in JsonBaseParser.value().

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

        Specified by:
        visitObjValue in interface JsonBaseVisitor<T>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitArrValue

        public T visitArrValue​(JsonBaseParser.ArrValueContext ctx)
        Visit a parse tree produced by the arrValue labeled alternative in JsonBaseParser.value().

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

        Specified by:
        visitArrValue in interface JsonBaseVisitor<T>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitTrueValue

        public T visitTrueValue​(JsonBaseParser.TrueValueContext ctx)
        Visit a parse tree produced by the trueValue labeled alternative in JsonBaseParser.value().

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

        Specified by:
        visitTrueValue in interface JsonBaseVisitor<T>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitFalseValue

        public T visitFalseValue​(JsonBaseParser.FalseValueContext ctx)
        Visit a parse tree produced by the falseValue labeled alternative in JsonBaseParser.value().

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

        Specified by:
        visitFalseValue in interface JsonBaseVisitor<T>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitNullValue

        public T visitNullValue​(JsonBaseParser.NullValueContext ctx)
        Visit a parse tree produced by the nullValue labeled alternative in JsonBaseParser.value().

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

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