Class JsonPathBaseListener
- java.lang.Object
-
- org.openrewrite.yaml.internal.grammar.JsonPathBaseListener
-
- All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeListener,JsonPathListener
public class JsonPathBaseListener extends java.lang.Object implements JsonPathListener
This class provides an empty implementation ofJsonPathListener, which can be extended to create a listener which only needs to handle a subset of the available methods.
-
-
Constructor Summary
Constructors Constructor Description JsonPathBaseListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidenterAndExpression(JsonPath.AndExpressionContext ctx)Enter a parse tree produced by theAndExpressionlabeled alternative inJsonPath.expression().voidenterBinaryExpression(JsonPath.BinaryExpressionContext ctx)Enter a parse tree produced by theBinaryExpressionlabeled alternative inJsonPath.expression().voidenterBracketOperator(JsonPath.BracketOperatorContext ctx)Enter a parse tree produced by theBracketOperatorlabeled alternative inJsonPath.object().voidenterDotOperator(JsonPath.DotOperatorContext ctx)Enter a parse tree produced by theDotOperatorlabeled alternative inJsonPath.object().voidenterEnd(JsonPath.EndContext ctx)Enter a parse tree produced byJsonPath.end().voidenterEveryRule(org.antlr.v4.runtime.ParserRuleContext ctx)voidenterFilterExpression(JsonPath.FilterExpressionContext ctx)Enter a parse tree produced by theFilterExpressionlabeled alternative inJsonPath.expression().voidenterIdentifier(JsonPath.IdentifierContext ctx)Enter a parse tree produced by theIdentifierlabeled alternative inJsonPath.expression().voidenterJsonpath(JsonPath.JsonpathContext ctx)Enter a parse tree produced byJsonPath.jsonpath().voidenterLiteralExpression(JsonPath.LiteralExpressionContext ctx)Enter a parse tree produced by theLiteralExpressionlabeled alternative inJsonPath.expression().voidenterLitExpression(JsonPath.LitExpressionContext ctx)Enter a parse tree produced byJsonPath.litExpression().voidenterParentheticalExpression(JsonPath.ParentheticalExpressionContext ctx)Enter a parse tree produced by theParentheticalExpressionlabeled alternative inJsonPath.expression().voidenterPathExpression(JsonPath.PathExpressionContext ctx)Enter a parse tree produced by thePathExpressionlabeled alternative inJsonPath.expression().voidenterRangeOp(JsonPath.RangeOpContext ctx)Enter a parse tree produced byJsonPath.rangeOp().voidenterRangeOperator(JsonPath.RangeOperatorContext ctx)Enter a parse tree produced by theRangeOperatorlabeled alternative inJsonPath.object().voidenterRecursiveDescent(JsonPath.RecursiveDescentContext ctx)Enter a parse tree produced by theRecursiveDescentlabeled alternative inJsonPath.object().voidenterScopedPathExpression(JsonPath.ScopedPathExpressionContext ctx)Enter a parse tree produced by theScopedPathExpressionlabeled alternative inJsonPath.expression().voidenterStart(JsonPath.StartContext ctx)Enter a parse tree produced byJsonPath.start().voidenterUnionOperator(JsonPath.UnionOperatorContext ctx)Enter a parse tree produced by theUnionOperatorlabeled alternative inJsonPath.object().voidenterWildcardExpression(JsonPath.WildcardExpressionContext ctx)Enter a parse tree produced by theWildcardExpressionlabeled alternative inJsonPath.expression().voidexitAndExpression(JsonPath.AndExpressionContext ctx)Exit a parse tree produced by theAndExpressionlabeled alternative inJsonPath.expression().voidexitBinaryExpression(JsonPath.BinaryExpressionContext ctx)Exit a parse tree produced by theBinaryExpressionlabeled alternative inJsonPath.expression().voidexitBracketOperator(JsonPath.BracketOperatorContext ctx)Exit a parse tree produced by theBracketOperatorlabeled alternative inJsonPath.object().voidexitDotOperator(JsonPath.DotOperatorContext ctx)Exit a parse tree produced by theDotOperatorlabeled alternative inJsonPath.object().voidexitEnd(JsonPath.EndContext ctx)Exit a parse tree produced byJsonPath.end().voidexitEveryRule(org.antlr.v4.runtime.ParserRuleContext ctx)voidexitFilterExpression(JsonPath.FilterExpressionContext ctx)Exit a parse tree produced by theFilterExpressionlabeled alternative inJsonPath.expression().voidexitIdentifier(JsonPath.IdentifierContext ctx)Exit a parse tree produced by theIdentifierlabeled alternative inJsonPath.expression().voidexitJsonpath(JsonPath.JsonpathContext ctx)Exit a parse tree produced byJsonPath.jsonpath().voidexitLiteralExpression(JsonPath.LiteralExpressionContext ctx)Exit a parse tree produced by theLiteralExpressionlabeled alternative inJsonPath.expression().voidexitLitExpression(JsonPath.LitExpressionContext ctx)Exit a parse tree produced byJsonPath.litExpression().voidexitParentheticalExpression(JsonPath.ParentheticalExpressionContext ctx)Exit a parse tree produced by theParentheticalExpressionlabeled alternative inJsonPath.expression().voidexitPathExpression(JsonPath.PathExpressionContext ctx)Exit a parse tree produced by thePathExpressionlabeled alternative inJsonPath.expression().voidexitRangeOp(JsonPath.RangeOpContext ctx)Exit a parse tree produced byJsonPath.rangeOp().voidexitRangeOperator(JsonPath.RangeOperatorContext ctx)Exit a parse tree produced by theRangeOperatorlabeled alternative inJsonPath.object().voidexitRecursiveDescent(JsonPath.RecursiveDescentContext ctx)Exit a parse tree produced by theRecursiveDescentlabeled alternative inJsonPath.object().voidexitScopedPathExpression(JsonPath.ScopedPathExpressionContext ctx)Exit a parse tree produced by theScopedPathExpressionlabeled alternative inJsonPath.expression().voidexitStart(JsonPath.StartContext ctx)Exit a parse tree produced byJsonPath.start().voidexitUnionOperator(JsonPath.UnionOperatorContext ctx)Exit a parse tree produced by theUnionOperatorlabeled alternative inJsonPath.object().voidexitWildcardExpression(JsonPath.WildcardExpressionContext ctx)Exit a parse tree produced by theWildcardExpressionlabeled alternative inJsonPath.expression().voidvisitErrorNode(org.antlr.v4.runtime.tree.ErrorNode node)voidvisitTerminal(org.antlr.v4.runtime.tree.TerminalNode node)
-
-
-
Method Detail
-
enterJsonpath
public void enterJsonpath(JsonPath.JsonpathContext ctx)
Enter a parse tree produced byJsonPath.jsonpath().The default implementation does nothing.
- Specified by:
enterJsonpathin interfaceJsonPathListener- Parameters:
ctx- the parse tree
-
exitJsonpath
public void exitJsonpath(JsonPath.JsonpathContext ctx)
Exit a parse tree produced byJsonPath.jsonpath().The default implementation does nothing.
- Specified by:
exitJsonpathin interfaceJsonPathListener- Parameters:
ctx- the parse tree
-
enterBracketOperator
public void enterBracketOperator(JsonPath.BracketOperatorContext ctx)
Enter a parse tree produced by theBracketOperatorlabeled alternative inJsonPath.object().The default implementation does nothing.
- Specified by:
enterBracketOperatorin interfaceJsonPathListener- Parameters:
ctx- the parse tree
-
exitBracketOperator
public void exitBracketOperator(JsonPath.BracketOperatorContext ctx)
Exit a parse tree produced by theBracketOperatorlabeled alternative inJsonPath.object().The default implementation does nothing.
- Specified by:
exitBracketOperatorin interfaceJsonPathListener- Parameters:
ctx- the parse tree
-
enterDotOperator
public void enterDotOperator(JsonPath.DotOperatorContext ctx)
Enter a parse tree produced by theDotOperatorlabeled alternative inJsonPath.object().The default implementation does nothing.
- Specified by:
enterDotOperatorin interfaceJsonPathListener- Parameters:
ctx- the parse tree
-
exitDotOperator
public void exitDotOperator(JsonPath.DotOperatorContext ctx)
Exit a parse tree produced by theDotOperatorlabeled alternative inJsonPath.object().The default implementation does nothing.
- Specified by:
exitDotOperatorin interfaceJsonPathListener- Parameters:
ctx- the parse tree
-
enterRecursiveDescent
public void enterRecursiveDescent(JsonPath.RecursiveDescentContext ctx)
Enter a parse tree produced by theRecursiveDescentlabeled alternative inJsonPath.object().The default implementation does nothing.
- Specified by:
enterRecursiveDescentin interfaceJsonPathListener- Parameters:
ctx- the parse tree
-
exitRecursiveDescent
public void exitRecursiveDescent(JsonPath.RecursiveDescentContext ctx)
Exit a parse tree produced by theRecursiveDescentlabeled alternative inJsonPath.object().The default implementation does nothing.
- Specified by:
exitRecursiveDescentin interfaceJsonPathListener- Parameters:
ctx- the parse tree
-
enterUnionOperator
public void enterUnionOperator(JsonPath.UnionOperatorContext ctx)
Enter a parse tree produced by theUnionOperatorlabeled alternative inJsonPath.object().The default implementation does nothing.
- Specified by:
enterUnionOperatorin interfaceJsonPathListener- Parameters:
ctx- the parse tree
-
exitUnionOperator
public void exitUnionOperator(JsonPath.UnionOperatorContext ctx)
Exit a parse tree produced by theUnionOperatorlabeled alternative inJsonPath.object().The default implementation does nothing.
- Specified by:
exitUnionOperatorin interfaceJsonPathListener- Parameters:
ctx- the parse tree
-
enterRangeOperator
public void enterRangeOperator(JsonPath.RangeOperatorContext ctx)
Enter a parse tree produced by theRangeOperatorlabeled alternative inJsonPath.object().The default implementation does nothing.
- Specified by:
enterRangeOperatorin interfaceJsonPathListener- Parameters:
ctx- the parse tree
-
exitRangeOperator
public void exitRangeOperator(JsonPath.RangeOperatorContext ctx)
Exit a parse tree produced by theRangeOperatorlabeled alternative inJsonPath.object().The default implementation does nothing.
- Specified by:
exitRangeOperatorin interfaceJsonPathListener- Parameters:
ctx- the parse tree
-
enterRangeOp
public void enterRangeOp(JsonPath.RangeOpContext ctx)
Enter a parse tree produced byJsonPath.rangeOp().The default implementation does nothing.
- Specified by:
enterRangeOpin interfaceJsonPathListener- Parameters:
ctx- the parse tree
-
exitRangeOp
public void exitRangeOp(JsonPath.RangeOpContext ctx)
Exit a parse tree produced byJsonPath.rangeOp().The default implementation does nothing.
- Specified by:
exitRangeOpin interfaceJsonPathListener- Parameters:
ctx- the parse tree
-
enterStart
public void enterStart(JsonPath.StartContext ctx)
Enter a parse tree produced byJsonPath.start().The default implementation does nothing.
- Specified by:
enterStartin interfaceJsonPathListener- Parameters:
ctx- the parse tree
-
exitStart
public void exitStart(JsonPath.StartContext ctx)
Exit a parse tree produced byJsonPath.start().The default implementation does nothing.
- Specified by:
exitStartin interfaceJsonPathListener- Parameters:
ctx- the parse tree
-
enterEnd
public void enterEnd(JsonPath.EndContext ctx)
Enter a parse tree produced byJsonPath.end().The default implementation does nothing.
- Specified by:
enterEndin interfaceJsonPathListener- Parameters:
ctx- the parse tree
-
exitEnd
public void exitEnd(JsonPath.EndContext ctx)
Exit a parse tree produced byJsonPath.end().The default implementation does nothing.
- Specified by:
exitEndin interfaceJsonPathListener- Parameters:
ctx- the parse tree
-
enterParentheticalExpression
public void enterParentheticalExpression(JsonPath.ParentheticalExpressionContext ctx)
Enter a parse tree produced by theParentheticalExpressionlabeled alternative inJsonPath.expression().The default implementation does nothing.
- Specified by:
enterParentheticalExpressionin interfaceJsonPathListener- Parameters:
ctx- the parse tree
-
exitParentheticalExpression
public void exitParentheticalExpression(JsonPath.ParentheticalExpressionContext ctx)
Exit a parse tree produced by theParentheticalExpressionlabeled alternative inJsonPath.expression().The default implementation does nothing.
- Specified by:
exitParentheticalExpressionin interfaceJsonPathListener- Parameters:
ctx- the parse tree
-
enterIdentifier
public void enterIdentifier(JsonPath.IdentifierContext ctx)
Enter a parse tree produced by theIdentifierlabeled alternative inJsonPath.expression().The default implementation does nothing.
- Specified by:
enterIdentifierin interfaceJsonPathListener- Parameters:
ctx- the parse tree
-
exitIdentifier
public void exitIdentifier(JsonPath.IdentifierContext ctx)
Exit a parse tree produced by theIdentifierlabeled alternative inJsonPath.expression().The default implementation does nothing.
- Specified by:
exitIdentifierin interfaceJsonPathListener- Parameters:
ctx- the parse tree
-
enterAndExpression
public void enterAndExpression(JsonPath.AndExpressionContext ctx)
Enter a parse tree produced by theAndExpressionlabeled alternative inJsonPath.expression().The default implementation does nothing.
- Specified by:
enterAndExpressionin interfaceJsonPathListener- Parameters:
ctx- the parse tree
-
exitAndExpression
public void exitAndExpression(JsonPath.AndExpressionContext ctx)
Exit a parse tree produced by theAndExpressionlabeled alternative inJsonPath.expression().The default implementation does nothing.
- Specified by:
exitAndExpressionin interfaceJsonPathListener- Parameters:
ctx- the parse tree
-
enterPathExpression
public void enterPathExpression(JsonPath.PathExpressionContext ctx)
Enter a parse tree produced by thePathExpressionlabeled alternative inJsonPath.expression().The default implementation does nothing.
- Specified by:
enterPathExpressionin interfaceJsonPathListener- Parameters:
ctx- the parse tree
-
exitPathExpression
public void exitPathExpression(JsonPath.PathExpressionContext ctx)
Exit a parse tree produced by thePathExpressionlabeled alternative inJsonPath.expression().The default implementation does nothing.
- Specified by:
exitPathExpressionin interfaceJsonPathListener- Parameters:
ctx- the parse tree
-
enterScopedPathExpression
public void enterScopedPathExpression(JsonPath.ScopedPathExpressionContext ctx)
Enter a parse tree produced by theScopedPathExpressionlabeled alternative inJsonPath.expression().The default implementation does nothing.
- Specified by:
enterScopedPathExpressionin interfaceJsonPathListener- Parameters:
ctx- the parse tree
-
exitScopedPathExpression
public void exitScopedPathExpression(JsonPath.ScopedPathExpressionContext ctx)
Exit a parse tree produced by theScopedPathExpressionlabeled alternative inJsonPath.expression().The default implementation does nothing.
- Specified by:
exitScopedPathExpressionin interfaceJsonPathListener- Parameters:
ctx- the parse tree
-
enterBinaryExpression
public void enterBinaryExpression(JsonPath.BinaryExpressionContext ctx)
Enter a parse tree produced by theBinaryExpressionlabeled alternative inJsonPath.expression().The default implementation does nothing.
- Specified by:
enterBinaryExpressionin interfaceJsonPathListener- Parameters:
ctx- the parse tree
-
exitBinaryExpression
public void exitBinaryExpression(JsonPath.BinaryExpressionContext ctx)
Exit a parse tree produced by theBinaryExpressionlabeled alternative inJsonPath.expression().The default implementation does nothing.
- Specified by:
exitBinaryExpressionin interfaceJsonPathListener- Parameters:
ctx- the parse tree
-
enterLiteralExpression
public void enterLiteralExpression(JsonPath.LiteralExpressionContext ctx)
Enter a parse tree produced by theLiteralExpressionlabeled alternative inJsonPath.expression().The default implementation does nothing.
- Specified by:
enterLiteralExpressionin interfaceJsonPathListener- Parameters:
ctx- the parse tree
-
exitLiteralExpression
public void exitLiteralExpression(JsonPath.LiteralExpressionContext ctx)
Exit a parse tree produced by theLiteralExpressionlabeled alternative inJsonPath.expression().The default implementation does nothing.
- Specified by:
exitLiteralExpressionin interfaceJsonPathListener- Parameters:
ctx- the parse tree
-
enterWildcardExpression
public void enterWildcardExpression(JsonPath.WildcardExpressionContext ctx)
Enter a parse tree produced by theWildcardExpressionlabeled alternative inJsonPath.expression().The default implementation does nothing.
- Specified by:
enterWildcardExpressionin interfaceJsonPathListener- Parameters:
ctx- the parse tree
-
exitWildcardExpression
public void exitWildcardExpression(JsonPath.WildcardExpressionContext ctx)
Exit a parse tree produced by theWildcardExpressionlabeled alternative inJsonPath.expression().The default implementation does nothing.
- Specified by:
exitWildcardExpressionin interfaceJsonPathListener- Parameters:
ctx- the parse tree
-
enterFilterExpression
public void enterFilterExpression(JsonPath.FilterExpressionContext ctx)
Enter a parse tree produced by theFilterExpressionlabeled alternative inJsonPath.expression().The default implementation does nothing.
- Specified by:
enterFilterExpressionin interfaceJsonPathListener- Parameters:
ctx- the parse tree
-
exitFilterExpression
public void exitFilterExpression(JsonPath.FilterExpressionContext ctx)
Exit a parse tree produced by theFilterExpressionlabeled alternative inJsonPath.expression().The default implementation does nothing.
- Specified by:
exitFilterExpressionin interfaceJsonPathListener- Parameters:
ctx- the parse tree
-
enterLitExpression
public void enterLitExpression(JsonPath.LitExpressionContext ctx)
Enter a parse tree produced byJsonPath.litExpression().The default implementation does nothing.
- Specified by:
enterLitExpressionin interfaceJsonPathListener- Parameters:
ctx- the parse tree
-
exitLitExpression
public void exitLitExpression(JsonPath.LitExpressionContext ctx)
Exit a parse tree produced byJsonPath.litExpression().The default implementation does nothing.
- Specified by:
exitLitExpressionin interfaceJsonPathListener- Parameters:
ctx- the parse tree
-
enterEveryRule
public void enterEveryRule(org.antlr.v4.runtime.ParserRuleContext ctx)
The default implementation does nothing.
- Specified by:
enterEveryRulein interfaceorg.antlr.v4.runtime.tree.ParseTreeListener
-
exitEveryRule
public void exitEveryRule(org.antlr.v4.runtime.ParserRuleContext ctx)
The default implementation does nothing.
- Specified by:
exitEveryRulein interfaceorg.antlr.v4.runtime.tree.ParseTreeListener
-
visitTerminal
public void visitTerminal(org.antlr.v4.runtime.tree.TerminalNode node)
The default implementation does nothing.
- Specified by:
visitTerminalin interfaceorg.antlr.v4.runtime.tree.ParseTreeListener
-
visitErrorNode
public void visitErrorNode(org.antlr.v4.runtime.tree.ErrorNode node)
The default implementation does nothing.
- Specified by:
visitErrorNodein interfaceorg.antlr.v4.runtime.tree.ParseTreeListener
-
-