Class CelExprVisitor

  • Direct Known Subclasses:
    CelUnparserVisitor

    public class CelExprVisitor
    extends java.lang.Object
    CEL expression visitor implementation using Cel native types.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  CelExprVisitor.ComprehensionArg
      ComprehensionArg 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
      protected CelExprVisitor()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void visit​(dev.cel.common.ast.CelExpr expr)
      Visit the expr value, routing to overloads based on the kind of expression.
      protected void visit​(dev.cel.common.ast.CelExpr expr, dev.cel.common.ast.CelConstant constant)
      Visit a CelConstant expression.
      protected void visit​(dev.cel.common.ast.CelExpr expr, dev.cel.common.ast.CelExpr.CelCall call)
      Visit a CelCall expression.
      protected void visit​(dev.cel.common.ast.CelExpr expr, dev.cel.common.ast.CelExpr.CelComprehension comprehension)
      Visit a CelComprehension expression.
      protected void visit​(dev.cel.common.ast.CelExpr expr, dev.cel.common.ast.CelExpr.CelIdent ident)
      Visit an CelIdent expression.
      protected void visit​(dev.cel.common.ast.CelExpr expr, dev.cel.common.ast.CelExpr.CelList list)
      Visit a CelList expression.
      protected void visit​(dev.cel.common.ast.CelExpr expr, dev.cel.common.ast.CelExpr.CelMap map)
      Visit a CelMap expression.
      protected void visit​(dev.cel.common.ast.CelExpr expr, dev.cel.common.ast.CelExpr.CelSelect select)
      Visit a CelSelect expression.
      protected void visit​(dev.cel.common.ast.CelExpr expr, dev.cel.common.ast.CelExpr.CelStruct struct)
      Visit a CelStruct expression.
      void visit​(dev.cel.common.CelAbstractSyntaxTree ast)
      Visit the ast value, routing to overloads based on the kind of expression.
      protected void visitArg​(dev.cel.common.ast.CelExpr expr, dev.cel.common.ast.CelExpr arg, int argNum)
      Visit the argument to an expression in the context of the calling expression.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CelExprVisitor

        protected CelExprVisitor()
    • Method Detail

      • visit

        public void visit​(dev.cel.common.CelAbstractSyntaxTree ast)
        Visit the ast value, routing to overloads based on the kind of expression.
      • visit

        public void visit​(dev.cel.common.ast.CelExpr expr)
        Visit the expr value, routing to overloads based on the kind of expression.
      • visit

        protected void visit​(dev.cel.common.ast.CelExpr expr,
                             dev.cel.common.ast.CelExpr.CelIdent ident)
        Visit an CelIdent expression.
      • visit

        protected void visit​(dev.cel.common.ast.CelExpr expr,
                             dev.cel.common.ast.CelConstant constant)
        Visit a CelConstant expression.
      • visit

        protected void visit​(dev.cel.common.ast.CelExpr expr,
                             dev.cel.common.ast.CelExpr.CelSelect select)
        Visit a CelSelect expression.
      • visit

        protected void visit​(dev.cel.common.ast.CelExpr expr,
                             dev.cel.common.ast.CelExpr.CelStruct struct)
        Visit a CelStruct expression.
      • visit

        protected void visit​(dev.cel.common.ast.CelExpr expr,
                             dev.cel.common.ast.CelExpr.CelMap map)
        Visit a CelMap expression.
      • visit

        protected void visit​(dev.cel.common.ast.CelExpr expr,
                             dev.cel.common.ast.CelExpr.CelList list)
        Visit a CelList expression.
      • visitArg

        protected void visitArg​(dev.cel.common.ast.CelExpr expr,
                                dev.cel.common.ast.CelExpr arg,
                                int argNum)
        Visit the argument to an expression in the context of the calling expression.

        For CelCall expressions, the arg num refers to the ordinal of the argument.

        For CelComprehension expressions, the arg number refers to the ordinal of the enum value as it appears in CelExprVisitor.ComprehensionArg.