Class CelExpr.Builder

  • Enclosing class:
    CelExpr

    public abstract static class CelExpr.Builder
    extends java.lang.Object
    Builder for CelExpr.
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • id

        public abstract long id()
      • constant

        public CelConstant constant()
        Gets the underlying constant expression.
        Throws:
        java.lang.UnsupportedOperationException - if expression is not Kind#CONSTANT.
      • ident

        public CelExpr.CelIdent ident()
        Gets the underlying identifier expression.
        Throws:
        java.lang.UnsupportedOperationException - if expression is not Kind#IDENT.
      • select

        public CelExpr.CelSelect select()
        Gets the underlying select expression.
        Throws:
        java.lang.UnsupportedOperationException - if expression is not Kind#SELECT.
      • call

        public CelExpr.CelCall call()
        Gets the underlying call expression.
        Throws:
        java.lang.UnsupportedOperationException - if expression is not Kind#CALL.
      • list

        public CelExpr.CelList list()
        Gets the underlying list expression.
        Throws:
        java.lang.UnsupportedOperationException - if expression is not Kind#LIST.
      • struct

        public CelExpr.CelStruct struct()
        Gets the underlying struct expression.
        Throws:
        java.lang.UnsupportedOperationException - if expression is not Kind#STRUCT.
      • map

        public CelExpr.CelMap map()
        Gets the underlying map expression.
        Throws:
        java.lang.UnsupportedOperationException - if expression is not Kind#MAP.
      • comprehension

        public CelExpr.CelComprehension comprehension()
        Gets the underlying comprehension expression.
        Throws:
        java.lang.UnsupportedOperationException - if expression is not Kind#COMPREHENSION.
      • build

        @CheckReturnValue
        public abstract CelExpr build()