Package dev.cel.common.types
Class OptionalType
- java.lang.Object
-
- dev.cel.common.types.CelType
-
- dev.cel.common.types.OptionalType
-
@CheckReturnValue @Immutable public abstract class OptionalType extends CelType
OptionalType is an opaque type that that represents an optional value.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringNAME
-
Constructor Summary
Constructors Constructor Description OptionalType()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static OptionalTypecreate(CelType parameter)CelKindkind()Return the typeCelKind.java.lang.Stringname()Return the type name.abstract com.google.common.collect.ImmutableList<CelType>parameters()Return the type parameters.-
Methods inherited from class dev.cel.common.types.CelType
isAssignableFrom, withFreshTypeParamVariables, withParameters
-
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
name
public java.lang.String name()
Description copied from class:CelTypeReturn 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.
-
parameters
public abstract com.google.common.collect.ImmutableList<CelType> parameters()
Description copied from class:CelTypeReturn the type parameters. e.g. a map's key and valueCelType.- Overrides:
parametersin classCelType
-
create
public static OptionalType create(CelType parameter)
-
-