Class CELBaseVisitor<T>
- java.lang.Object
-
- org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T>
-
- cel.parser.internal.CELBaseVisitor<T>
-
- Type Parameters:
T- The return type of the visit operation. UseVoidfor operations with no return type.
- All Implemented Interfaces:
CELVisitor<T>,org.antlr.v4.runtime.tree.ParseTreeVisitor<T>
public class CELBaseVisitor<T> extends org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T> implements CELVisitor<T>
This class provides an empty implementation ofCELVisitor, which can be extended to create a visitor which only needs to handle a subset of the available methods.
-
-
Constructor Summary
Constructors Constructor Description CELBaseVisitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TvisitBoolFalse(CELParser.BoolFalseContext ctx)Visit a parse tree produced by theBoolFalselabeled alternative inCELParser.literal().TvisitBoolTrue(CELParser.BoolTrueContext ctx)Visit a parse tree produced by theBoolTruelabeled alternative inCELParser.literal().TvisitBytes(CELParser.BytesContext ctx)Visit a parse tree produced by theByteslabeled alternative inCELParser.literal().TvisitCalc(CELParser.CalcContext ctx)Visit a parse tree produced byCELParser.calc().TvisitConditionalAnd(CELParser.ConditionalAndContext ctx)Visit a parse tree produced byCELParser.conditionalAnd().TvisitConditionalOr(CELParser.ConditionalOrContext ctx)Visit a parse tree produced byCELParser.conditionalOr().TvisitConstantLiteral(CELParser.ConstantLiteralContext ctx)Visit a parse tree produced by theConstantLiterallabeled alternative inCELParser.primary().TvisitCreateList(CELParser.CreateListContext ctx)Visit a parse tree produced by theCreateListlabeled alternative inCELParser.primary().TvisitCreateMap(CELParser.CreateMapContext ctx)Visit a parse tree produced by theCreateMaplabeled alternative inCELParser.primary().TvisitCreateMessage(CELParser.CreateMessageContext ctx)Visit a parse tree produced by theCreateMessagelabeled alternative inCELParser.primary().TvisitDouble(CELParser.DoubleContext ctx)Visit a parse tree produced by theDoublelabeled alternative inCELParser.literal().TvisitEscapedIdentifier(CELParser.EscapedIdentifierContext ctx)Visit a parse tree produced by theEscapedIdentifierlabeled alternative inCELParser.escapeIdent().TvisitExpr(CELParser.ExprContext ctx)Visit a parse tree produced byCELParser.expr().TvisitExprList(CELParser.ExprListContext ctx)Visit a parse tree produced byCELParser.exprList().TvisitFieldInitializerList(CELParser.FieldInitializerListContext ctx)Visit a parse tree produced byCELParser.fieldInitializerList().TvisitGlobalCall(CELParser.GlobalCallContext ctx)Visit a parse tree produced by theGlobalCalllabeled alternative inCELParser.primary().TvisitIdent(CELParser.IdentContext ctx)Visit a parse tree produced by theIdentlabeled alternative inCELParser.primary().TvisitIndex(CELParser.IndexContext ctx)Visit a parse tree produced by theIndexlabeled alternative inCELParser.member().TvisitInt(CELParser.IntContext ctx)Visit a parse tree produced by theIntlabeled alternative inCELParser.literal().TvisitListInit(CELParser.ListInitContext ctx)Visit a parse tree produced byCELParser.listInit().TvisitLogicalNot(CELParser.LogicalNotContext ctx)Visit a parse tree produced by theLogicalNotlabeled alternative inCELParser.unary().TvisitMapInitializerList(CELParser.MapInitializerListContext ctx)Visit a parse tree produced byCELParser.mapInitializerList().TvisitMemberCall(CELParser.MemberCallContext ctx)Visit a parse tree produced by theMemberCalllabeled alternative inCELParser.member().TvisitMemberExpr(CELParser.MemberExprContext ctx)Visit a parse tree produced by theMemberExprlabeled alternative inCELParser.unary().TvisitNegate(CELParser.NegateContext ctx)Visit a parse tree produced by theNegatelabeled alternative inCELParser.unary().TvisitNested(CELParser.NestedContext ctx)Visit a parse tree produced by theNestedlabeled alternative inCELParser.primary().TvisitNull(CELParser.NullContext ctx)Visit a parse tree produced by theNulllabeled alternative inCELParser.literal().TvisitOptExpr(CELParser.OptExprContext ctx)Visit a parse tree produced byCELParser.optExpr().TvisitOptField(CELParser.OptFieldContext ctx)Visit a parse tree produced byCELParser.optField().TvisitPrimaryExpr(CELParser.PrimaryExprContext ctx)Visit a parse tree produced by thePrimaryExprlabeled alternative inCELParser.member().TvisitRelation(CELParser.RelationContext ctx)Visit a parse tree produced byCELParser.relation().TvisitSelect(CELParser.SelectContext ctx)Visit a parse tree produced by theSelectlabeled alternative inCELParser.member().TvisitSimpleIdentifier(CELParser.SimpleIdentifierContext ctx)Visit a parse tree produced by theSimpleIdentifierlabeled alternative inCELParser.escapeIdent().TvisitStart(CELParser.StartContext ctx)Visit a parse tree produced byCELParser.start().TvisitString(CELParser.StringContext ctx)Visit a parse tree produced by theStringlabeled alternative inCELParser.literal().TvisitUint(CELParser.UintContext ctx)Visit a parse tree produced by theUintlabeled alternative inCELParser.literal().-
Methods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
aggregateResult, defaultResult, shouldVisitNextChild, visit, visitChildren, visitErrorNode, visitTerminal
-
-
-
-
Method Detail
-
visitStart
public T visitStart(CELParser.StartContext ctx)
Visit a parse tree produced byCELParser.start().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitStartin interfaceCELVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExpr
public T visitExpr(CELParser.ExprContext ctx)
Visit a parse tree produced byCELParser.expr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitExprin interfaceCELVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitConditionalOr
public T visitConditionalOr(CELParser.ConditionalOrContext ctx)
Visit a parse tree produced byCELParser.conditionalOr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitConditionalOrin interfaceCELVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitConditionalAnd
public T visitConditionalAnd(CELParser.ConditionalAndContext ctx)
Visit a parse tree produced byCELParser.conditionalAnd().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitConditionalAndin interfaceCELVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitRelation
public T visitRelation(CELParser.RelationContext ctx)
Visit a parse tree produced byCELParser.relation().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitRelationin interfaceCELVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCalc
public T visitCalc(CELParser.CalcContext ctx)
Visit a parse tree produced byCELParser.calc().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCalcin interfaceCELVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMemberExpr
public T visitMemberExpr(CELParser.MemberExprContext ctx)
Visit a parse tree produced by theMemberExprlabeled alternative inCELParser.unary().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMemberExprin interfaceCELVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitLogicalNot
public T visitLogicalNot(CELParser.LogicalNotContext ctx)
Visit a parse tree produced by theLogicalNotlabeled alternative inCELParser.unary().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitLogicalNotin interfaceCELVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNegate
public T visitNegate(CELParser.NegateContext ctx)
Visit a parse tree produced by theNegatelabeled alternative inCELParser.unary().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitNegatein interfaceCELVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMemberCall
public T visitMemberCall(CELParser.MemberCallContext ctx)
Visit a parse tree produced by theMemberCalllabeled alternative inCELParser.member().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMemberCallin interfaceCELVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSelect
public T visitSelect(CELParser.SelectContext ctx)
Visit a parse tree produced by theSelectlabeled alternative inCELParser.member().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSelectin interfaceCELVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitPrimaryExpr
public T visitPrimaryExpr(CELParser.PrimaryExprContext ctx)
Visit a parse tree produced by thePrimaryExprlabeled alternative inCELParser.member().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPrimaryExprin interfaceCELVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIndex
public T visitIndex(CELParser.IndexContext ctx)
Visit a parse tree produced by theIndexlabeled alternative inCELParser.member().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitIndexin interfaceCELVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitIdent
public T visitIdent(CELParser.IdentContext ctx)
Visit a parse tree produced by theIdentlabeled alternative inCELParser.primary().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitIdentin interfaceCELVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitGlobalCall
public T visitGlobalCall(CELParser.GlobalCallContext ctx)
Visit a parse tree produced by theGlobalCalllabeled alternative inCELParser.primary().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitGlobalCallin interfaceCELVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNested
public T visitNested(CELParser.NestedContext ctx)
Visit a parse tree produced by theNestedlabeled alternative inCELParser.primary().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitNestedin interfaceCELVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCreateList
public T visitCreateList(CELParser.CreateListContext ctx)
Visit a parse tree produced by theCreateListlabeled alternative inCELParser.primary().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCreateListin interfaceCELVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCreateMap
public T visitCreateMap(CELParser.CreateMapContext ctx)
Visit a parse tree produced by theCreateMaplabeled alternative inCELParser.primary().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCreateMapin interfaceCELVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitCreateMessage
public T visitCreateMessage(CELParser.CreateMessageContext ctx)
Visit a parse tree produced by theCreateMessagelabeled alternative inCELParser.primary().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitCreateMessagein interfaceCELVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitConstantLiteral
public T visitConstantLiteral(CELParser.ConstantLiteralContext ctx)
Visit a parse tree produced by theConstantLiterallabeled alternative inCELParser.primary().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitConstantLiteralin interfaceCELVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitExprList
public T visitExprList(CELParser.ExprListContext ctx)
Visit a parse tree produced byCELParser.exprList().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitExprListin interfaceCELVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitListInit
public T visitListInit(CELParser.ListInitContext ctx)
Visit a parse tree produced byCELParser.listInit().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitListInitin interfaceCELVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitFieldInitializerList
public T visitFieldInitializerList(CELParser.FieldInitializerListContext ctx)
Visit a parse tree produced byCELParser.fieldInitializerList().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitFieldInitializerListin interfaceCELVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitOptField
public T visitOptField(CELParser.OptFieldContext ctx)
Visit a parse tree produced byCELParser.optField().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitOptFieldin interfaceCELVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMapInitializerList
public T visitMapInitializerList(CELParser.MapInitializerListContext ctx)
Visit a parse tree produced byCELParser.mapInitializerList().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMapInitializerListin interfaceCELVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitSimpleIdentifier
public T visitSimpleIdentifier(CELParser.SimpleIdentifierContext ctx)
Visit a parse tree produced by theSimpleIdentifierlabeled alternative inCELParser.escapeIdent().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitSimpleIdentifierin interfaceCELVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitEscapedIdentifier
public T visitEscapedIdentifier(CELParser.EscapedIdentifierContext ctx)
Visit a parse tree produced by theEscapedIdentifierlabeled alternative inCELParser.escapeIdent().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitEscapedIdentifierin interfaceCELVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitOptExpr
public T visitOptExpr(CELParser.OptExprContext ctx)
Visit a parse tree produced byCELParser.optExpr().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitOptExprin interfaceCELVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitInt
public T visitInt(CELParser.IntContext ctx)
Visit a parse tree produced by theIntlabeled alternative inCELParser.literal().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitIntin interfaceCELVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitUint
public T visitUint(CELParser.UintContext ctx)
Visit a parse tree produced by theUintlabeled alternative inCELParser.literal().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitUintin interfaceCELVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitDouble
public T visitDouble(CELParser.DoubleContext ctx)
Visit a parse tree produced by theDoublelabeled alternative inCELParser.literal().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitDoublein interfaceCELVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitString
public T visitString(CELParser.StringContext ctx)
Visit a parse tree produced by theStringlabeled alternative inCELParser.literal().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitStringin interfaceCELVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBytes
public T visitBytes(CELParser.BytesContext ctx)
Visit a parse tree produced by theByteslabeled alternative inCELParser.literal().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBytesin interfaceCELVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBoolTrue
public T visitBoolTrue(CELParser.BoolTrueContext ctx)
Visit a parse tree produced by theBoolTruelabeled alternative inCELParser.literal().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBoolTruein interfaceCELVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitBoolFalse
public T visitBoolFalse(CELParser.BoolFalseContext ctx)
Visit a parse tree produced by theBoolFalselabeled alternative inCELParser.literal().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitBoolFalsein interfaceCELVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitNull
public T visitNull(CELParser.NullContext ctx)
Visit a parse tree produced by theNulllabeled alternative inCELParser.literal().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitNullin interfaceCELVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
-