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. UseVoid
for 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 T
visitBoolFalse(CELParser.BoolFalseContext ctx)
Visit a parse tree produced by theBoolFalse
labeled alternative inCELParser.literal()
.T
visitBoolTrue(CELParser.BoolTrueContext ctx)
Visit a parse tree produced by theBoolTrue
labeled alternative inCELParser.literal()
.T
visitBytes(CELParser.BytesContext ctx)
Visit a parse tree produced by theBytes
labeled alternative inCELParser.literal()
.T
visitCalc(CELParser.CalcContext ctx)
Visit a parse tree produced byCELParser.calc()
.T
visitConditionalAnd(CELParser.ConditionalAndContext ctx)
Visit a parse tree produced byCELParser.conditionalAnd()
.T
visitConditionalOr(CELParser.ConditionalOrContext ctx)
Visit a parse tree produced byCELParser.conditionalOr()
.T
visitConstantLiteral(CELParser.ConstantLiteralContext ctx)
Visit a parse tree produced by theConstantLiteral
labeled alternative inCELParser.primary()
.T
visitCreateList(CELParser.CreateListContext ctx)
Visit a parse tree produced by theCreateList
labeled alternative inCELParser.primary()
.T
visitCreateMap(CELParser.CreateMapContext ctx)
Visit a parse tree produced by theCreateMap
labeled alternative inCELParser.primary()
.T
visitCreateMessage(CELParser.CreateMessageContext ctx)
Visit a parse tree produced by theCreateMessage
labeled alternative inCELParser.primary()
.T
visitDouble(CELParser.DoubleContext ctx)
Visit a parse tree produced by theDouble
labeled alternative inCELParser.literal()
.T
visitExpr(CELParser.ExprContext ctx)
Visit a parse tree produced byCELParser.expr()
.T
visitExprList(CELParser.ExprListContext ctx)
Visit a parse tree produced byCELParser.exprList()
.T
visitFieldInitializerList(CELParser.FieldInitializerListContext ctx)
Visit a parse tree produced byCELParser.fieldInitializerList()
.T
visitIdentOrGlobalCall(CELParser.IdentOrGlobalCallContext ctx)
Visit a parse tree produced by theIdentOrGlobalCall
labeled alternative inCELParser.primary()
.T
visitIndex(CELParser.IndexContext ctx)
Visit a parse tree produced by theIndex
labeled alternative inCELParser.member()
.T
visitInt(CELParser.IntContext ctx)
Visit a parse tree produced by theInt
labeled alternative inCELParser.literal()
.T
visitListInit(CELParser.ListInitContext ctx)
Visit a parse tree produced byCELParser.listInit()
.T
visitLogicalNot(CELParser.LogicalNotContext ctx)
Visit a parse tree produced by theLogicalNot
labeled alternative inCELParser.unary()
.T
visitMapInitializerList(CELParser.MapInitializerListContext ctx)
Visit a parse tree produced byCELParser.mapInitializerList()
.T
visitMemberCall(CELParser.MemberCallContext ctx)
Visit a parse tree produced by theMemberCall
labeled alternative inCELParser.member()
.T
visitMemberExpr(CELParser.MemberExprContext ctx)
Visit a parse tree produced by theMemberExpr
labeled alternative inCELParser.unary()
.T
visitNegate(CELParser.NegateContext ctx)
Visit a parse tree produced by theNegate
labeled alternative inCELParser.unary()
.T
visitNested(CELParser.NestedContext ctx)
Visit a parse tree produced by theNested
labeled alternative inCELParser.primary()
.T
visitNull(CELParser.NullContext ctx)
Visit a parse tree produced by theNull
labeled alternative inCELParser.literal()
.T
visitOptExpr(CELParser.OptExprContext ctx)
Visit a parse tree produced byCELParser.optExpr()
.T
visitOptField(CELParser.OptFieldContext ctx)
Visit a parse tree produced byCELParser.optField()
.T
visitPrimaryExpr(CELParser.PrimaryExprContext ctx)
Visit a parse tree produced by thePrimaryExpr
labeled alternative inCELParser.member()
.T
visitRelation(CELParser.RelationContext ctx)
Visit a parse tree produced byCELParser.relation()
.T
visitSelect(CELParser.SelectContext ctx)
Visit a parse tree produced by theSelect
labeled alternative inCELParser.member()
.T
visitStart(CELParser.StartContext ctx)
Visit a parse tree produced byCELParser.start()
.T
visitString(CELParser.StringContext ctx)
Visit a parse tree produced by theString
labeled alternative inCELParser.literal()
.T
visitUint(CELParser.UintContext ctx)
Visit a parse tree produced by theUint
labeled 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:
visitStart
in 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:
visitExpr
in 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:
visitConditionalOr
in 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:
visitConditionalAnd
in 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:
visitRelation
in 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:
visitCalc
in interfaceCELVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitMemberExpr
public T visitMemberExpr(CELParser.MemberExprContext ctx)
Visit a parse tree produced by theMemberExpr
labeled alternative inCELParser.unary()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitMemberExpr
in interfaceCELVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitLogicalNot
public T visitLogicalNot(CELParser.LogicalNotContext ctx)
Visit a parse tree produced by theLogicalNot
labeled alternative inCELParser.unary()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitLogicalNot
in interfaceCELVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitNegate
public T visitNegate(CELParser.NegateContext ctx)
Visit a parse tree produced by theNegate
labeled alternative inCELParser.unary()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitNegate
in interfaceCELVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitMemberCall
public T visitMemberCall(CELParser.MemberCallContext ctx)
Visit a parse tree produced by theMemberCall
labeled alternative inCELParser.member()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitMemberCall
in interfaceCELVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSelect
public T visitSelect(CELParser.SelectContext ctx)
Visit a parse tree produced by theSelect
labeled alternative inCELParser.member()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitSelect
in interfaceCELVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitPrimaryExpr
public T visitPrimaryExpr(CELParser.PrimaryExprContext ctx)
Visit a parse tree produced by thePrimaryExpr
labeled alternative inCELParser.member()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitPrimaryExpr
in interfaceCELVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitIndex
public T visitIndex(CELParser.IndexContext ctx)
Visit a parse tree produced by theIndex
labeled alternative inCELParser.member()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitIndex
in interfaceCELVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitIdentOrGlobalCall
public T visitIdentOrGlobalCall(CELParser.IdentOrGlobalCallContext ctx)
Visit a parse tree produced by theIdentOrGlobalCall
labeled alternative inCELParser.primary()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitIdentOrGlobalCall
in interfaceCELVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitNested
public T visitNested(CELParser.NestedContext ctx)
Visit a parse tree produced by theNested
labeled alternative inCELParser.primary()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitNested
in interfaceCELVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitCreateList
public T visitCreateList(CELParser.CreateListContext ctx)
Visit a parse tree produced by theCreateList
labeled alternative inCELParser.primary()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitCreateList
in interfaceCELVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitCreateMap
public T visitCreateMap(CELParser.CreateMapContext ctx)
Visit a parse tree produced by theCreateMap
labeled alternative inCELParser.primary()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitCreateMap
in interfaceCELVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitCreateMessage
public T visitCreateMessage(CELParser.CreateMessageContext ctx)
Visit a parse tree produced by theCreateMessage
labeled alternative inCELParser.primary()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitCreateMessage
in interfaceCELVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitConstantLiteral
public T visitConstantLiteral(CELParser.ConstantLiteralContext ctx)
Visit a parse tree produced by theConstantLiteral
labeled alternative inCELParser.primary()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitConstantLiteral
in 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:
visitExprList
in 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:
visitListInit
in 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:
visitFieldInitializerList
in 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:
visitOptField
in 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:
visitMapInitializerList
in 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:
visitOptExpr
in interfaceCELVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitInt
public T visitInt(CELParser.IntContext ctx)
Visit a parse tree produced by theInt
labeled alternative inCELParser.literal()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitInt
in interfaceCELVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitUint
public T visitUint(CELParser.UintContext ctx)
Visit a parse tree produced by theUint
labeled alternative inCELParser.literal()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitUint
in interfaceCELVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitDouble
public T visitDouble(CELParser.DoubleContext ctx)
Visit a parse tree produced by theDouble
labeled alternative inCELParser.literal()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitDouble
in interfaceCELVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitString
public T visitString(CELParser.StringContext ctx)
Visit a parse tree produced by theString
labeled alternative inCELParser.literal()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitString
in interfaceCELVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitBytes
public T visitBytes(CELParser.BytesContext ctx)
Visit a parse tree produced by theBytes
labeled alternative inCELParser.literal()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitBytes
in interfaceCELVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitBoolTrue
public T visitBoolTrue(CELParser.BoolTrueContext ctx)
Visit a parse tree produced by theBoolTrue
labeled alternative inCELParser.literal()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitBoolTrue
in interfaceCELVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitBoolFalse
public T visitBoolFalse(CELParser.BoolFalseContext ctx)
Visit a parse tree produced by theBoolFalse
labeled alternative inCELParser.literal()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitBoolFalse
in interfaceCELVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitNull
public T visitNull(CELParser.NullContext ctx)
Visit a parse tree produced by theNull
labeled alternative inCELParser.literal()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitNull
in interfaceCELVisitor<T>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
-