Package io.trino.grammar.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
public interface JsonPathVisitor<T>
extends org.antlr.v4.runtime.tree.ParseTreeVisitor<T>
This interface defines a complete generic visitor for a parse tree produced
by
JsonPathParser.-
Method Summary
Modifier and TypeMethodDescriptionVisit a parse tree produced by theabsMethodlabeled alternative inJsonPathParser.accessorExpression().Visit a parse tree produced by theaccessorExpressionDefaultlabeled alternative inJsonPathParser.accessorExpression().Visit a parse tree produced by thearrayAccessorlabeled alternative inJsonPathParser.accessorExpression().Visit a parse tree produced by thebinarylabeled alternative inJsonPathParser.pathExpression().Visit a parse tree produced byJsonPathParser.booleanLiteral().Visit a parse tree produced by theceilingMethodlabeled alternative inJsonPathParser.accessorExpression().Visit a parse tree produced byJsonPathParser.comparisonOperator().Visit a parse tree produced by thecomparisonPredicatelabeled alternative inJsonPathParser.predicatePrimary().Visit a parse tree produced by theconjunctionPredicatelabeled alternative inJsonPathParser.predicate().Visit a parse tree produced by thecontextVariablelabeled alternative inJsonPathParser.variable().Visit a parse tree produced by thedatetimeMethodlabeled alternative inJsonPathParser.accessorExpression().Visit a parse tree produced by thedecimalLiterallabeled alternative inJsonPathParser.numericLiteral().Visit a parse tree produced by thedescendantMemberAccessorlabeled alternative inJsonPathParser.accessorExpression().Visit a parse tree produced by thedisjunctionPredicatelabeled alternative inJsonPathParser.predicate().Visit a parse tree produced by thedoubleLiterallabeled alternative inJsonPathParser.numericLiteral().Visit a parse tree produced by thedoubleMethodlabeled alternative inJsonPathParser.accessorExpression().Visit a parse tree produced by theexistsPredicatelabeled alternative inJsonPathParser.delimitedPredicate().Visit a parse tree produced by theexpressionDefaultlabeled alternative inJsonPathParser.pathExpression().Visit a parse tree produced by thefilterlabeled alternative inJsonPathParser.accessorExpression().Visit a parse tree produced by thefloorMethodlabeled alternative inJsonPathParser.accessorExpression().Visit a parse tree produced byJsonPathParser.identifier().Visit a parse tree produced by theintegerLiterallabeled alternative inJsonPathParser.numericLiteral().Visit a parse tree produced by theisUnknownPredicatelabeled alternative inJsonPathParser.predicatePrimary().Visit a parse tree produced by thekeyValueMethodlabeled alternative inJsonPathParser.accessorExpression().Visit a parse tree produced by thelastIndexVariablelabeled alternative inJsonPathParser.variable().Visit a parse tree produced by thelikeRegexPredicatelabeled alternative inJsonPathParser.predicatePrimary().Visit a parse tree produced byJsonPathParser.literal().Visit a parse tree produced by theliteralPrimarylabeled alternative inJsonPathParser.pathPrimary().Visit a parse tree produced by thememberAccessorlabeled alternative inJsonPathParser.accessorExpression().Visit a parse tree produced by thenamedVariablelabeled alternative inJsonPathParser.variable().Visit a parse tree produced by thenegationPredicatelabeled alternative inJsonPathParser.predicate().Visit a parse tree produced byJsonPathParser.nonReserved().Visit a parse tree produced byJsonPathParser.nullLiteral().Visit a parse tree produced by theparenthesizedPathlabeled alternative inJsonPathParser.pathPrimary().Visit a parse tree produced by theparenthesizedPredicatelabeled alternative inJsonPathParser.delimitedPredicate().Visit a parse tree produced byJsonPathParser.path().Visit a parse tree produced byJsonPathParser.pathMode().Visit a parse tree produced by thepredicateCurrentItemVariablelabeled alternative inJsonPathParser.variable().Visit a parse tree produced by thepredicateDefaultlabeled alternative inJsonPathParser.predicate().Visit a parse tree produced by thepredicatePrimaryDefaultlabeled alternative inJsonPathParser.predicatePrimary().Visit a parse tree produced by thesignedUnarylabeled alternative inJsonPathParser.pathExpression().Visit a parse tree produced by thesizeMethodlabeled alternative inJsonPathParser.accessorExpression().Visit a parse tree produced by thestartsWithPredicatelabeled alternative inJsonPathParser.predicatePrimary().Visit a parse tree produced byJsonPathParser.stringLiteral().Visit a parse tree produced byJsonPathParser.subscript().Visit a parse tree produced by thetypeMethodlabeled alternative inJsonPathParser.accessorExpression().Visit a parse tree produced by thevariablePrimarylabeled alternative inJsonPathParser.pathPrimary().Visit a parse tree produced by thewildcardArrayAccessorlabeled alternative inJsonPathParser.accessorExpression().Visit a parse tree produced by thewildcardMemberAccessorlabeled alternative inJsonPathParser.accessorExpression().Methods inherited from interface org.antlr.v4.runtime.tree.ParseTreeVisitor
visit, visitChildren, visitErrorNode, visitTerminal
-
Method Details
-
visitPath
Visit a parse tree produced byJsonPathParser.path().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPathMode
Visit a parse tree produced byJsonPathParser.pathMode().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExpressionDefault
Visit a parse tree produced by theexpressionDefaultlabeled alternative inJsonPathParser.pathExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSignedUnary
Visit a parse tree produced by thesignedUnarylabeled alternative inJsonPathParser.pathExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBinary
Visit a parse tree produced by thebinarylabeled alternative inJsonPathParser.pathExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDescendantMemberAccessor
Visit a parse tree produced by thedescendantMemberAccessorlabeled alternative inJsonPathParser.accessorExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDoubleMethod
Visit a parse tree produced by thedoubleMethodlabeled alternative inJsonPathParser.accessorExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDatetimeMethod
Visit a parse tree produced by thedatetimeMethodlabeled alternative inJsonPathParser.accessorExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAbsMethod
Visit a parse tree produced by theabsMethodlabeled alternative inJsonPathParser.accessorExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMemberAccessor
Visit a parse tree produced by thememberAccessorlabeled alternative inJsonPathParser.accessorExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitArrayAccessor
Visit a parse tree produced by thearrayAccessorlabeled alternative inJsonPathParser.accessorExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFilter
Visit a parse tree produced by thefilterlabeled alternative inJsonPathParser.accessorExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitWildcardArrayAccessor
Visit a parse tree produced by thewildcardArrayAccessorlabeled alternative inJsonPathParser.accessorExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCeilingMethod
Visit a parse tree produced by theceilingMethodlabeled alternative inJsonPathParser.accessorExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFloorMethod
Visit a parse tree produced by thefloorMethodlabeled alternative inJsonPathParser.accessorExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitTypeMethod
Visit a parse tree produced by thetypeMethodlabeled alternative inJsonPathParser.accessorExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAccessorExpressionDefault
Visit a parse tree produced by theaccessorExpressionDefaultlabeled alternative inJsonPathParser.accessorExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitWildcardMemberAccessor
Visit a parse tree produced by thewildcardMemberAccessorlabeled alternative inJsonPathParser.accessorExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSizeMethod
Visit a parse tree produced by thesizeMethodlabeled alternative inJsonPathParser.accessorExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitKeyValueMethod
Visit a parse tree produced by thekeyValueMethodlabeled alternative inJsonPathParser.accessorExpression().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIdentifier
Visit a parse tree produced byJsonPathParser.identifier().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSubscript
Visit a parse tree produced byJsonPathParser.subscript().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLiteralPrimary
Visit a parse tree produced by theliteralPrimarylabeled alternative inJsonPathParser.pathPrimary().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitVariablePrimary
Visit a parse tree produced by thevariablePrimarylabeled alternative inJsonPathParser.pathPrimary().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitParenthesizedPath
Visit a parse tree produced by theparenthesizedPathlabeled alternative inJsonPathParser.pathPrimary().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLiteral
Visit a parse tree produced byJsonPathParser.literal().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDecimalLiteral
Visit a parse tree produced by thedecimalLiterallabeled alternative inJsonPathParser.numericLiteral().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDoubleLiteral
Visit a parse tree produced by thedoubleLiterallabeled alternative inJsonPathParser.numericLiteral().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIntegerLiteral
Visit a parse tree produced by theintegerLiterallabeled alternative inJsonPathParser.numericLiteral().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitStringLiteral
Visit a parse tree produced byJsonPathParser.stringLiteral().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNullLiteral
Visit a parse tree produced byJsonPathParser.nullLiteral().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBooleanLiteral
Visit a parse tree produced byJsonPathParser.booleanLiteral().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitContextVariable
Visit a parse tree produced by thecontextVariablelabeled alternative inJsonPathParser.variable().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNamedVariable
Visit a parse tree produced by thenamedVariablelabeled alternative inJsonPathParser.variable().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLastIndexVariable
Visit a parse tree produced by thelastIndexVariablelabeled alternative inJsonPathParser.variable().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPredicateCurrentItemVariable
Visit a parse tree produced by thepredicateCurrentItemVariablelabeled alternative inJsonPathParser.variable().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNegationPredicate
Visit a parse tree produced by thenegationPredicatelabeled alternative inJsonPathParser.predicate().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPredicateDefault
Visit a parse tree produced by thepredicateDefaultlabeled alternative inJsonPathParser.predicate().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDisjunctionPredicate
Visit a parse tree produced by thedisjunctionPredicatelabeled alternative inJsonPathParser.predicate().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitConjunctionPredicate
Visit a parse tree produced by theconjunctionPredicatelabeled alternative inJsonPathParser.predicate().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPredicatePrimaryDefault
Visit a parse tree produced by thepredicatePrimaryDefaultlabeled alternative inJsonPathParser.predicatePrimary().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitComparisonPredicate
Visit a parse tree produced by thecomparisonPredicatelabeled alternative inJsonPathParser.predicatePrimary().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLikeRegexPredicate
Visit a parse tree produced by thelikeRegexPredicatelabeled alternative inJsonPathParser.predicatePrimary().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitStartsWithPredicate
Visit a parse tree produced by thestartsWithPredicatelabeled alternative inJsonPathParser.predicatePrimary().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIsUnknownPredicate
Visit a parse tree produced by theisUnknownPredicatelabeled alternative inJsonPathParser.predicatePrimary().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExistsPredicate
Visit a parse tree produced by theexistsPredicatelabeled alternative inJsonPathParser.delimitedPredicate().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitParenthesizedPredicate
Visit a parse tree produced by theparenthesizedPredicatelabeled alternative inJsonPathParser.delimitedPredicate().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitComparisonOperator
Visit a parse tree produced byJsonPathParser.comparisonOperator().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNonReserved
Visit a parse tree produced byJsonPathParser.nonReserved().- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-