Package io.trino.jsonpath
Interface JsonPathVisitor<T>
-
- Type Parameters:
T- The return type of the visit operation. UseVoidfor operations with no return type.
- All Superinterfaces:
org.antlr.v4.runtime.tree.ParseTreeVisitor<T>
- All Known Implementing Classes:
JsonPathBaseVisitor,PathTreeBuilder
public interface JsonPathVisitor<T> extends org.antlr.v4.runtime.tree.ParseTreeVisitor<T>This interface defines a complete generic visitor for a parse tree produced byJsonPathParser.
-
-
Method Summary
-
-
-
Method Detail
-
visitPath
T visitPath(JsonPathParser.PathContext ctx)
Visit a parse tree produced byJsonPathParser.path().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPathMode
T visitPathMode(JsonPathParser.PathModeContext ctx)
Visit a parse tree produced byJsonPathParser.pathMode().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExpressionDefault
T visitExpressionDefault(JsonPathParser.ExpressionDefaultContext ctx)
Visit a parse tree produced by theexpressionDefaultlabeled alternative inJsonPathParser.pathExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSignedUnary
T visitSignedUnary(JsonPathParser.SignedUnaryContext ctx)
Visit a parse tree produced by thesignedUnarylabeled alternative inJsonPathParser.pathExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBinary
T visitBinary(JsonPathParser.BinaryContext ctx)
Visit a parse tree produced by thebinarylabeled alternative inJsonPathParser.pathExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDoubleMethod
T visitDoubleMethod(JsonPathParser.DoubleMethodContext ctx)
Visit a parse tree produced by thedoubleMethodlabeled alternative inJsonPathParser.accessorExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDatetimeMethod
T visitDatetimeMethod(JsonPathParser.DatetimeMethodContext ctx)
Visit a parse tree produced by thedatetimeMethodlabeled alternative inJsonPathParser.accessorExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAbsMethod
T visitAbsMethod(JsonPathParser.AbsMethodContext ctx)
Visit a parse tree produced by theabsMethodlabeled alternative inJsonPathParser.accessorExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMemberAccessor
T visitMemberAccessor(JsonPathParser.MemberAccessorContext ctx)
Visit a parse tree produced by thememberAccessorlabeled alternative inJsonPathParser.accessorExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitArrayAccessor
T visitArrayAccessor(JsonPathParser.ArrayAccessorContext ctx)
Visit a parse tree produced by thearrayAccessorlabeled alternative inJsonPathParser.accessorExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFilter
T visitFilter(JsonPathParser.FilterContext ctx)
Visit a parse tree produced by thefilterlabeled alternative inJsonPathParser.accessorExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitWildcardArrayAccessor
T visitWildcardArrayAccessor(JsonPathParser.WildcardArrayAccessorContext ctx)
Visit a parse tree produced by thewildcardArrayAccessorlabeled alternative inJsonPathParser.accessorExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCeilingMethod
T visitCeilingMethod(JsonPathParser.CeilingMethodContext ctx)
Visit a parse tree produced by theceilingMethodlabeled alternative inJsonPathParser.accessorExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFloorMethod
T visitFloorMethod(JsonPathParser.FloorMethodContext ctx)
Visit a parse tree produced by thefloorMethodlabeled alternative inJsonPathParser.accessorExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeMethod
T visitTypeMethod(JsonPathParser.TypeMethodContext ctx)
Visit a parse tree produced by thetypeMethodlabeled alternative inJsonPathParser.accessorExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAccessorExpressionDefault
T visitAccessorExpressionDefault(JsonPathParser.AccessorExpressionDefaultContext ctx)
Visit a parse tree produced by theaccessorExpressionDefaultlabeled alternative inJsonPathParser.accessorExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitWildcardMemberAccessor
T visitWildcardMemberAccessor(JsonPathParser.WildcardMemberAccessorContext ctx)
Visit a parse tree produced by thewildcardMemberAccessorlabeled alternative inJsonPathParser.accessorExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSizeMethod
T visitSizeMethod(JsonPathParser.SizeMethodContext ctx)
Visit a parse tree produced by thesizeMethodlabeled alternative inJsonPathParser.accessorExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitKeyValueMethod
T visitKeyValueMethod(JsonPathParser.KeyValueMethodContext ctx)
Visit a parse tree produced by thekeyValueMethodlabeled alternative inJsonPathParser.accessorExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIdentifier
T visitIdentifier(JsonPathParser.IdentifierContext ctx)
Visit a parse tree produced byJsonPathParser.identifier().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSubscript
T visitSubscript(JsonPathParser.SubscriptContext ctx)
Visit a parse tree produced byJsonPathParser.subscript().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLiteralPrimary
T visitLiteralPrimary(JsonPathParser.LiteralPrimaryContext ctx)
Visit a parse tree produced by theliteralPrimarylabeled alternative inJsonPathParser.pathPrimary().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitVariablePrimary
T visitVariablePrimary(JsonPathParser.VariablePrimaryContext ctx)
Visit a parse tree produced by thevariablePrimarylabeled alternative inJsonPathParser.pathPrimary().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitParenthesizedPath
T visitParenthesizedPath(JsonPathParser.ParenthesizedPathContext ctx)
Visit a parse tree produced by theparenthesizedPathlabeled alternative inJsonPathParser.pathPrimary().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLiteral
T visitLiteral(JsonPathParser.LiteralContext ctx)
Visit a parse tree produced byJsonPathParser.literal().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDecimalLiteral
T visitDecimalLiteral(JsonPathParser.DecimalLiteralContext ctx)
Visit a parse tree produced by thedecimalLiterallabeled alternative inJsonPathParser.numericLiteral().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDoubleLiteral
T visitDoubleLiteral(JsonPathParser.DoubleLiteralContext ctx)
Visit a parse tree produced by thedoubleLiterallabeled alternative inJsonPathParser.numericLiteral().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIntegerLiteral
T visitIntegerLiteral(JsonPathParser.IntegerLiteralContext ctx)
Visit a parse tree produced by theintegerLiterallabeled alternative inJsonPathParser.numericLiteral().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitStringLiteral
T visitStringLiteral(JsonPathParser.StringLiteralContext ctx)
Visit a parse tree produced byJsonPathParser.stringLiteral().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNullLiteral
T visitNullLiteral(JsonPathParser.NullLiteralContext ctx)
Visit a parse tree produced byJsonPathParser.nullLiteral().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBooleanLiteral
T visitBooleanLiteral(JsonPathParser.BooleanLiteralContext ctx)
Visit a parse tree produced byJsonPathParser.booleanLiteral().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitContextVariable
T visitContextVariable(JsonPathParser.ContextVariableContext ctx)
Visit a parse tree produced by thecontextVariablelabeled alternative inJsonPathParser.variable().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNamedVariable
T visitNamedVariable(JsonPathParser.NamedVariableContext ctx)
Visit a parse tree produced by thenamedVariablelabeled alternative inJsonPathParser.variable().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLastIndexVariable
T visitLastIndexVariable(JsonPathParser.LastIndexVariableContext ctx)
Visit a parse tree produced by thelastIndexVariablelabeled alternative inJsonPathParser.variable().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPredicateCurrentItemVariable
T visitPredicateCurrentItemVariable(JsonPathParser.PredicateCurrentItemVariableContext ctx)
Visit a parse tree produced by thepredicateCurrentItemVariablelabeled alternative inJsonPathParser.variable().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNegationPredicate
T visitNegationPredicate(JsonPathParser.NegationPredicateContext ctx)
Visit a parse tree produced by thenegationPredicatelabeled alternative inJsonPathParser.predicate().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPredicateDefault
T visitPredicateDefault(JsonPathParser.PredicateDefaultContext ctx)
Visit a parse tree produced by thepredicateDefaultlabeled alternative inJsonPathParser.predicate().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDisjunctionPredicate
T visitDisjunctionPredicate(JsonPathParser.DisjunctionPredicateContext ctx)
Visit a parse tree produced by thedisjunctionPredicatelabeled alternative inJsonPathParser.predicate().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitConjunctionPredicate
T visitConjunctionPredicate(JsonPathParser.ConjunctionPredicateContext ctx)
Visit a parse tree produced by theconjunctionPredicatelabeled alternative inJsonPathParser.predicate().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPredicatePrimaryDefault
T visitPredicatePrimaryDefault(JsonPathParser.PredicatePrimaryDefaultContext ctx)
Visit a parse tree produced by thepredicatePrimaryDefaultlabeled alternative inJsonPathParser.predicatePrimary().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitComparisonPredicate
T visitComparisonPredicate(JsonPathParser.ComparisonPredicateContext ctx)
Visit a parse tree produced by thecomparisonPredicatelabeled alternative inJsonPathParser.predicatePrimary().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLikeRegexPredicate
T visitLikeRegexPredicate(JsonPathParser.LikeRegexPredicateContext ctx)
Visit a parse tree produced by thelikeRegexPredicatelabeled alternative inJsonPathParser.predicatePrimary().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitStartsWithPredicate
T visitStartsWithPredicate(JsonPathParser.StartsWithPredicateContext ctx)
Visit a parse tree produced by thestartsWithPredicatelabeled alternative inJsonPathParser.predicatePrimary().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIsUnknownPredicate
T visitIsUnknownPredicate(JsonPathParser.IsUnknownPredicateContext ctx)
Visit a parse tree produced by theisUnknownPredicatelabeled alternative inJsonPathParser.predicatePrimary().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExistsPredicate
T visitExistsPredicate(JsonPathParser.ExistsPredicateContext ctx)
Visit a parse tree produced by theexistsPredicatelabeled alternative inJsonPathParser.delimitedPredicate().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitParenthesizedPredicate
T visitParenthesizedPredicate(JsonPathParser.ParenthesizedPredicateContext ctx)
Visit a parse tree produced by theparenthesizedPredicatelabeled alternative inJsonPathParser.delimitedPredicate().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitComparisonOperator
T visitComparisonOperator(JsonPathParser.ComparisonOperatorContext ctx)
Visit a parse tree produced byJsonPathParser.comparisonOperator().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNonReserved
T visitNonReserved(JsonPathParser.NonReservedContext ctx)
Visit a parse tree produced byJsonPathParser.nonReserved().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
-