Package dev.cel.common.types
Class TypeParamType
- java.lang.Object
-
- dev.cel.common.types.CelType
-
- dev.cel.common.types.TypeParamType
-
@CheckReturnValue @Immutable public abstract class TypeParamType extends CelType
Type parameters are 'free' types which take on a concrete type contextually.
-
-
Constructor Summary
Constructors Constructor Description TypeParamType()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static TypeParamTypecreate(java.lang.String name)abstract CelKindkind()Return the typeCelKind.abstract java.lang.Stringname()Return the type name.CelTypewithFreshTypeParamVariables(java.util.function.Function<java.lang.String,java.lang.String> varNameGenerator)Instantiate a new copy of this type with alternativeparameters.-
Methods inherited from class dev.cel.common.types.CelType
isAssignableFrom, parameters, withParameters
-
-
-
-
Method Detail
-
name
public abstract 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.
-
withFreshTypeParamVariables
public CelType withFreshTypeParamVariables(java.util.function.Function<java.lang.String,java.lang.String> varNameGenerator)
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:
withFreshTypeParamVariablesin classCelType
-
create
public static TypeParamType create(java.lang.String name)
-
-