Package dev.cel.checker
Class ExprVisitor
- java.lang.Object
-
- dev.cel.checker.ExprVisitor
-
- Direct Known Subclasses:
CelProtoExprVisitor
@Internal public abstract class ExprVisitor extends java.lang.Object
CEL expression visitor implementation.CEL Library Internals. Do Not Use.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classExprVisitor.ComprehensionArgComprehensionArg specifies the arg ordinal values for comprehension arguments, where the ordinal of the enum maps to the ordinal of the argument in the comprehension expression.
-
Constructor Summary
Constructors Modifier Constructor Description protectedExprVisitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidvisit(Expr expr)Visit theexprvalue, routing to overloads based on the kind of expression.protected voidvisit(Expr expr, Constant constant)Visit aExpr.Constantexpression.protected voidvisit(Expr expr, Expr.Call call)Visit aExpr.Callexpression.protected voidvisit(Expr expr, Expr.Comprehension comprehension)Visit aExpr.Comprehensionexpression.protected voidvisit(Expr expr, Expr.CreateList createList)Visit aExpr.CreateListexpression.protected voidvisit(Expr expr, Expr.CreateStruct createStruct)Visit aExpr.CreateStructexpression.protected voidvisit(Expr expr, Expr.Ident ident)Visit anExpr.Identexpression.protected voidvisit(Expr expr, Expr.Select select)Visit aExpr.Selectexpression.protected voidvisitArg(Expr expr, Expr arg, int argNum)Visit the argument to an expression in the context of the calling expression.
-
-
-
Method Detail
-
visit
public void visit(Expr expr)
Visit theexprvalue, routing to overloads based on the kind of expression.
-
visit
protected void visit(Expr expr, Expr.Ident ident)
Visit anExpr.Identexpression.
-
visit
protected void visit(Expr expr, Expr.Select select)
Visit aExpr.Selectexpression.
-
visit
protected void visit(Expr expr, Expr.Call call)
Visit aExpr.Callexpression.Arguments to the call are provided to the
visitArg(dev.cel.expr.Expr, dev.cel.expr.Expr, int)function after they have beenvisited.
-
visit
protected void visit(Expr expr, Expr.CreateStruct createStruct)
Visit aExpr.CreateStructexpression.
-
visit
protected void visit(Expr expr, Expr.CreateList createList)
Visit aExpr.CreateListexpression.
-
visit
protected void visit(Expr expr, Expr.Comprehension comprehension)
Visit aExpr.Comprehensionexpression.Arguments to the comprehension are provided to the
visitArg(dev.cel.expr.Expr, dev.cel.expr.Expr, int)function after they have beenvisited.
-
visitArg
protected void visitArg(Expr expr, Expr arg, int argNum)
Visit the argument to an expression in the context of the calling expression.For
Expr.Callexpressions, the arg num refers to the ordinal of the argument.For
Expr.Comprehensionexpressions, the arg number refers to the ordinal of the enum value as it appears inExprVisitor.ComprehensionArg.
-
-