Class JsonPathBaseVisitor<T>
- java.lang.Object
-
- org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T>
-
- org.openrewrite.yaml.internal.grammar.JsonPathBaseVisitor<T>
-
- Type Parameters:
T- The return type of the visit operation. UseVoidfor 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 ofJsonPathVisitor, which can be extended to create a visitor which only needs to handle a subset of the available methods.
-
-
Constructor Summary
Constructors Constructor Description JsonPathBaseVisitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TvisitAndExpression(JsonPath.AndExpressionContext ctx)Visit a parse tree produced by theAndExpressionlabeled alternative inJsonPath.expression().TvisitBinaryExpression(JsonPath.BinaryExpressionContext ctx)Visit a parse tree produced by theBinaryExpressionlabeled alternative inJsonPath.expression().TvisitBracketOperator(JsonPath.BracketOperatorContext ctx)Visit a parse tree produced by theBracketOperatorlabeled alternative inJsonPath.object().TvisitDotOperator(JsonPath.DotOperatorContext ctx)Visit a parse tree produced by theDotOperatorlabeled alternative inJsonPath.object().TvisitEnd(JsonPath.EndContext ctx)Visit a parse tree produced byJsonPath.end().TvisitFilterExpression(JsonPath.FilterExpressionContext ctx)Visit a parse tree produced by theFilterExpressionlabeled alternative inJsonPath.expression().TvisitIdentifier(JsonPath.IdentifierContext ctx)Visit a parse tree produced by theIdentifierlabeled alternative inJsonPath.expression().TvisitJsonpath(JsonPath.JsonpathContext ctx)Visit a parse tree produced byJsonPath.jsonpath().TvisitLiteralExpression(JsonPath.LiteralExpressionContext ctx)Visit a parse tree produced by theLiteralExpressionlabeled alternative inJsonPath.expression().TvisitLitExpression(JsonPath.LitExpressionContext ctx)Visit a parse tree produced byJsonPath.litExpression().TvisitParentheticalExpression(JsonPath.ParentheticalExpressionContext ctx)Visit a parse tree produced by theParentheticalExpressionlabeled alternative inJsonPath.expression().TvisitPathExpression(JsonPath.PathExpressionContext ctx)Visit a parse tree produced by thePathExpressionlabeled alternative inJsonPath.expression().TvisitRangeOp(JsonPath.RangeOpContext ctx)Visit a parse tree produced byJsonPath.rangeOp().TvisitRangeOperator(JsonPath.RangeOperatorContext ctx)Visit a parse tree produced by theRangeOperatorlabeled alternative inJsonPath.object().TvisitRecursiveDescent(JsonPath.RecursiveDescentContext ctx)Visit a parse tree produced by theRecursiveDescentlabeled alternative inJsonPath.object().TvisitScopedPathExpression(JsonPath.ScopedPathExpressionContext ctx)Visit a parse tree produced by theScopedPathExpressionlabeled alternative inJsonPath.expression().TvisitStart(JsonPath.StartContext ctx)Visit a parse tree produced byJsonPath.start().TvisitUnionOperator(JsonPath.UnionOperatorContext ctx)Visit a parse tree produced by theUnionOperatorlabeled alternative inJsonPath.object().TvisitWildcardExpression(JsonPath.WildcardExpressionContext ctx)Visit a parse tree produced by theWildcardExpressionlabeled alternative inJsonPath.expression().-
Methods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
aggregateResult, defaultResult, shouldVisitNextChild, visit, visitChildren, visitErrorNode, visitTerminal
-
-
-
-
Method Detail
-
visitJsonpath
public T visitJsonpath(JsonPath.JsonpathContext ctx)
Visit a parse tree produced byJsonPath.jsonpath().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitJsonpathin interfaceJsonPathVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBracketOperator
public T visitBracketOperator(JsonPath.BracketOperatorContext ctx)
Visit a parse tree produced by theBracketOperatorlabeled alternative inJsonPath.object().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBracketOperatorin interfaceJsonPathVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDotOperator
public T visitDotOperator(JsonPath.DotOperatorContext ctx)
Visit a parse tree produced by theDotOperatorlabeled alternative inJsonPath.object().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitDotOperatorin interfaceJsonPathVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitRecursiveDescent
public T visitRecursiveDescent(JsonPath.RecursiveDescentContext ctx)
Visit a parse tree produced by theRecursiveDescentlabeled alternative inJsonPath.object().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitRecursiveDescentin interfaceJsonPathVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitUnionOperator
public T visitUnionOperator(JsonPath.UnionOperatorContext ctx)
Visit a parse tree produced by theUnionOperatorlabeled alternative inJsonPath.object().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitUnionOperatorin interfaceJsonPathVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitRangeOperator
public T visitRangeOperator(JsonPath.RangeOperatorContext ctx)
Visit a parse tree produced by theRangeOperatorlabeled alternative inJsonPath.object().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitRangeOperatorin interfaceJsonPathVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitRangeOp
public T visitRangeOp(JsonPath.RangeOpContext ctx)
Visit a parse tree produced byJsonPath.rangeOp().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitRangeOpin interfaceJsonPathVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitStart
public T visitStart(JsonPath.StartContext ctx)
Visit a parse tree produced byJsonPath.start().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitStartin interfaceJsonPathVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEnd
public T visitEnd(JsonPath.EndContext ctx)
Visit a parse tree produced byJsonPath.end().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEndin interfaceJsonPathVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitParentheticalExpression
public T visitParentheticalExpression(JsonPath.ParentheticalExpressionContext ctx)
Visit a parse tree produced by theParentheticalExpressionlabeled alternative inJsonPath.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitParentheticalExpressionin interfaceJsonPathVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIdentifier
public T visitIdentifier(JsonPath.IdentifierContext ctx)
Visit a parse tree produced by theIdentifierlabeled alternative inJsonPath.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitIdentifierin interfaceJsonPathVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAndExpression
public T visitAndExpression(JsonPath.AndExpressionContext ctx)
Visit a parse tree produced by theAndExpressionlabeled alternative inJsonPath.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAndExpressionin interfaceJsonPathVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPathExpression
public T visitPathExpression(JsonPath.PathExpressionContext ctx)
Visit a parse tree produced by thePathExpressionlabeled alternative inJsonPath.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPathExpressionin interfaceJsonPathVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitScopedPathExpression
public T visitScopedPathExpression(JsonPath.ScopedPathExpressionContext ctx)
Visit a parse tree produced by theScopedPathExpressionlabeled alternative inJsonPath.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitScopedPathExpressionin interfaceJsonPathVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBinaryExpression
public T visitBinaryExpression(JsonPath.BinaryExpressionContext ctx)
Visit a parse tree produced by theBinaryExpressionlabeled alternative inJsonPath.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBinaryExpressionin interfaceJsonPathVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLiteralExpression
public T visitLiteralExpression(JsonPath.LiteralExpressionContext ctx)
Visit a parse tree produced by theLiteralExpressionlabeled alternative inJsonPath.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLiteralExpressionin interfaceJsonPathVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitWildcardExpression
public T visitWildcardExpression(JsonPath.WildcardExpressionContext ctx)
Visit a parse tree produced by theWildcardExpressionlabeled alternative inJsonPath.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitWildcardExpressionin interfaceJsonPathVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFilterExpression
public T visitFilterExpression(JsonPath.FilterExpressionContext ctx)
Visit a parse tree produced by theFilterExpressionlabeled alternative inJsonPath.expression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFilterExpressionin interfaceJsonPathVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLitExpression
public T visitLitExpression(JsonPath.LitExpressionContext ctx)
Visit a parse tree produced byJsonPath.litExpression().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLitExpressionin interfaceJsonPathVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
-