Package dev.cel.common.types
Class TypeType
- java.lang.Object
-
- dev.cel.common.types.CelType
-
- dev.cel.common.types.TypeType
-
@CheckReturnValue @Immutable public abstract class TypeType extends CelType
TheTypeTypeis a type which holds a reference to a type-kind.
-
-
Constructor Summary
Constructors Constructor Description TypeType()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.lang.StringcontainingTypeName()Retrieves the underlying type name of the type-kind held.static TypeTypecreate(CelType type)CelKindkind()Return the typeCelKind.java.lang.Stringname()Return the type name.abstract com.google.common.collect.ImmutableList<CelType>parameters()Return the type parameters.CelTypetype()CelTypewithParameters(com.google.common.collect.ImmutableList<CelType> parameters)Instantiate a new copy of this type with alternativeparameters.-
Methods inherited from class dev.cel.common.types.CelType
isAssignableFrom, withFreshTypeParamVariables
-
-
-
-
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.
-
containingTypeName
public java.lang.String containingTypeName()
Retrieves the underlying type name of the type-kind held.
-
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
-
type
public CelType type()
-
withParameters
public CelType withParameters(com.google.common.collect.ImmutableList<CelType> parameters)
Description copied from class:CelTypeInstantiate a new copy of this type with alternativeparameters.If the
CelTypedoes not have anyparameters, then the return value defaults to the original type instance.- Overrides:
withParametersin classCelType
-
-