Class JsonPathBaseVisitor<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>, JsonPathVisitor<T>

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

      • JsonPathBaseVisitor

        public JsonPathBaseVisitor()
    • Method Detail

      • visitJsonpath

        public T visitJsonpath​(JsonPath.JsonpathContext ctx)
        Visit a parse tree produced by JsonPath.jsonpath().

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

        Specified by:
        visitJsonpath in interface JsonPathVisitor<T>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitBracketOperator

        public T visitBracketOperator​(JsonPath.BracketOperatorContext ctx)
        Visit a parse tree produced by the BracketOperator labeled alternative in JsonPath.object().

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

        Specified by:
        visitBracketOperator in interface JsonPathVisitor<T>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitDotOperator

        public T visitDotOperator​(JsonPath.DotOperatorContext ctx)
        Visit a parse tree produced by the DotOperator labeled alternative in JsonPath.object().

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

        Specified by:
        visitDotOperator in interface JsonPathVisitor<T>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitRecursiveDescent

        public T visitRecursiveDescent​(JsonPath.RecursiveDescentContext ctx)
        Visit a parse tree produced by the RecursiveDescent labeled alternative in JsonPath.object().

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

        Specified by:
        visitRecursiveDescent in interface JsonPathVisitor<T>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitUnionOperator

        public T visitUnionOperator​(JsonPath.UnionOperatorContext ctx)
        Visit a parse tree produced by the UnionOperator labeled alternative in JsonPath.object().

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

        Specified by:
        visitUnionOperator in interface JsonPathVisitor<T>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitRangeOperator

        public T visitRangeOperator​(JsonPath.RangeOperatorContext ctx)
        Visit a parse tree produced by the RangeOperator labeled alternative in JsonPath.object().

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

        Specified by:
        visitRangeOperator in interface JsonPathVisitor<T>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitRangeOp

        public T visitRangeOp​(JsonPath.RangeOpContext ctx)
        Visit a parse tree produced by JsonPath.rangeOp().

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

        Specified by:
        visitRangeOp in interface JsonPathVisitor<T>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitStart

        public T visitStart​(JsonPath.StartContext ctx)
        Visit a parse tree produced by JsonPath.start().

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

        Specified by:
        visitStart in interface JsonPathVisitor<T>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitEnd

        public T visitEnd​(JsonPath.EndContext ctx)
        Visit a parse tree produced by JsonPath.end().

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

        Specified by:
        visitEnd in interface JsonPathVisitor<T>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitIdentifier

        public T visitIdentifier​(JsonPath.IdentifierContext ctx)
        Visit a parse tree produced by the Identifier labeled alternative in JsonPath.expression().

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

        Specified by:
        visitIdentifier in interface JsonPathVisitor<T>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitAndExpression

        public T visitAndExpression​(JsonPath.AndExpressionContext ctx)
        Visit a parse tree produced by the AndExpression labeled alternative in JsonPath.expression().

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

        Specified by:
        visitAndExpression in interface JsonPathVisitor<T>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitPathExpression

        public T visitPathExpression​(JsonPath.PathExpressionContext ctx)
        Visit a parse tree produced by the PathExpression labeled alternative in JsonPath.expression().

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

        Specified by:
        visitPathExpression in interface JsonPathVisitor<T>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitBinaryExpression

        public T visitBinaryExpression​(JsonPath.BinaryExpressionContext ctx)
        Visit a parse tree produced by the BinaryExpression labeled alternative in JsonPath.expression().

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

        Specified by:
        visitBinaryExpression in interface JsonPathVisitor<T>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitLiteralExpression

        public T visitLiteralExpression​(JsonPath.LiteralExpressionContext ctx)
        Visit a parse tree produced by the LiteralExpression labeled alternative in JsonPath.expression().

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

        Specified by:
        visitLiteralExpression in interface JsonPathVisitor<T>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitWildcardExpression

        public T visitWildcardExpression​(JsonPath.WildcardExpressionContext ctx)
        Visit a parse tree produced by the WildcardExpression labeled alternative in JsonPath.expression().

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

        Specified by:
        visitWildcardExpression in interface JsonPathVisitor<T>
        Parameters:
        ctx - the parse tree
        Returns:
        the visitor result
      • visitFilterExpression

        public T visitFilterExpression​(JsonPath.FilterExpressionContext ctx)
        Visit a parse tree produced by the FilterExpression labeled alternative in JsonPath.expression().

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

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