Class SimpleType


  • @CheckReturnValue
    @Immutable
    public abstract class SimpleType
    extends CelType
    Simple types represent scalar, dynamic, and error values.
    • Field Detail

      • ERROR

        public static final CelType ERROR
      • DYN

        public static final CelType DYN
      • ANY

        public static final CelType ANY
      • BOOL

        public static final CelType BOOL
      • BYTES

        public static final CelType BYTES
      • DOUBLE

        public static final CelType DOUBLE
      • DURATION

        public static final CelType DURATION
      • INT

        public static final CelType INT
      • NULL_TYPE

        public static final CelType NULL_TYPE
      • STRING

        public static final CelType STRING
      • TIMESTAMP

        public static final CelType TIMESTAMP
      • UINT

        public static final CelType UINT
    • Constructor Detail

      • SimpleType

        public SimpleType()
    • Method Detail

      • kind

        public abstract CelKind kind()
        Description copied from class: CelType
        Return the type CelKind.
        Specified by:
        kind in class CelType
      • name

        public abstract java.lang.String name()
        Description copied from class: CelType
        Return the type name.

        For struct types this should be the fully qualified name. Be wary of introducing unqualified type names as they may collide with future CEL type.

        Specified by:
        name in class CelType
      • isAssignableFrom

        public boolean isAssignableFrom​(CelType other)
        Description copied from class: CelType
        Determine whether this type is assignable from the other type value.

        Defaults to an equality test.

        Overrides:
        isAssignableFrom in class CelType