Uses of Class
dev.cel.common.types.CelType
-
Packages that use CelType Package Description dev.cel.bundle dev.cel.checker dev.cel.common dev.cel.common.types dev.cel.common.values dev.cel.compiler dev.cel.runtime -
-
Uses of CelType in dev.cel.bundle
Methods in dev.cel.bundle with parameters of type CelType Modifier and Type Method Description CelBuilderCelBuilder. addVar(java.lang.String name, CelType type)Add a variable declaration with a givennameandCelType.CelBuilderCelBuilder. setResultType(CelType resultType)Set the expectedresultTypefor the type-checked expression. -
Uses of CelType in dev.cel.checker
Methods in dev.cel.checker that return CelType Modifier and Type Method Description CelTypeTypeProvider.FieldType. celType()CelTypeInferenceContext. finalize(CelType type)Finalizes the given type by applying the current type substitution and mapping all remaining type parameters to DYN.CelTypeEnv. getType(CelExpr expr)Returns the type associated with an expression by expression id.static CelTypeTypes. mostGeneral(CelType type1, CelType type2)Returns the more general of two types which are known to unify.CelTypeInferenceContext. newInstance(java.lang.Iterable<java.lang.String> typeParams, CelType type)Returns an instance of the given type where all given type parameters are replaced by fresh type variables.CelTypeInferenceContext. newTypeVar(java.lang.String prefix)Creates a fresh type variable in the given context.CelTypeInferenceContext. specialize(CelType type)Specializes the given type using the substitution of this context.static CelTypeTypes. substitute(java.util.Map<CelType,CelType> subs, CelType type, boolean typeParamToDyn)Apply substitution to given type, replacing all direct and indirect occurrences of bound type parameters.abstract CelTypeCelIdentDecl. type()The type of the variable.abstract CelTypeExprChecker.OverloadResolution. type()TheTypeof the result associated with the overload.Methods in dev.cel.checker that return types with arguments of type CelType Modifier and Type Method Description java.util.Optional<CelType>ProtoTypeMaskTypeProvider. findType(java.lang.String typeName)java.util.Map<java.lang.Long,CelType>Env. getTypeMap()Returns the type map.static @Nullable java.util.Map<CelType,CelType>Types. isAssignable(java.util.Map<CelType,CelType> subs, CelType type1, CelType type2)Checks whether type1 is assignable to type2, based on the given substitution for type parameters.static @Nullable java.util.Map<CelType,CelType>Types. isAssignable(java.util.Map<CelType,CelType> subs, CelType type1, CelType type2)Checks whether type1 is assignable to type2, based on the given substitution for type parameters.static @Nullable java.util.Map<CelType,CelType>Types. isAssignable(java.util.Map<CelType,CelType> subs, java.util.List<CelType> list1, java.util.List<CelType> list2)Same asTypes.isAssignable(Map, Type, Type)but performs pairwise check on lists of types.static @Nullable java.util.Map<CelType,CelType>Types. isAssignable(java.util.Map<CelType,CelType> subs, java.util.List<CelType> list1, java.util.List<CelType> list2)Same asTypes.isAssignable(Map, Type, Type)but performs pairwise check on lists of types.default java.util.Optional<CelType>TypeProvider. lookupCelType(java.lang.String typeName)Deprecated.Lookup the aCelTypegiven a qualifiedtypeName.java.util.List<CelType>InferenceContext. specialize(java.util.List<CelType> types)Specializes using given type list of types using the substitution of this context.com.google.common.collect.ImmutableCollection<CelType>ProtoTypeMaskTypeProvider. types()Methods in dev.cel.checker with parameters of type CelType Modifier and Type Method Description CelTypeInferenceContext. finalize(CelType type)Finalizes the given type by applying the current type substitution and mapping all remaining type parameters to DYN.booleanInferenceContext. isAssignable(CelType type1, CelType type2)Checks whether type1 is assignable to type2 under refinement of the type substitution.static @Nullable java.util.Map<CelType,CelType>Types. isAssignable(java.util.Map<CelType,CelType> subs, CelType type1, CelType type2)Checks whether type1 is assignable to type2, based on the given substitution for type parameters.static booleanTypes. isDyn(CelType type)static booleanTypes. isDynOrError(CelType type)Tests whether the type has error or dyn kind.static booleanTypes. isEqualOrLessSpecific(CelType type1, CelType type2)Check whether one type is equal or less specific than the other one.default @Nullable TypeProvider.FieldTypeTypeProvider. lookupFieldType(CelType type, java.lang.String fieldName)Deprecated.Lookup theFieldTypefor afieldNamewithin atype.static CelTypeTypes. mostGeneral(CelType type1, CelType type2)Returns the more general of two types which are known to unify.static CelIdentDeclCelIdentDecl. newIdentDeclaration(java.lang.String name, CelType type)Create a newCelIdentDeclwith a givennameandtype.CelTypeInferenceContext. newInstance(java.lang.Iterable<java.lang.String> typeParams, CelType type)Returns an instance of the given type where all given type parameters are replaced by fresh type variables.static ExprChecker.OverloadResolutionExprChecker.OverloadResolution. of(CelReference reference, CelType type)Construct a newOverloadResolutionfrom areferenceandtype.CelCheckerBuilderCelCheckerBuilder. setResultType(CelType resultType)Set the expectedresultTypefor the type-checked expression.CelCheckerBuilderCelCheckerLegacyImpl.Builder. setResultType(CelType resultType)abstract CelIdentDecl.BuilderCelIdentDecl.Builder. setType(CelType name)CelExprEnv. setType(CelExpr expr, CelType type)Sets the type associated with an expression by id.CelTypeInferenceContext. specialize(CelType type)Specializes the given type using the substitution of this context.static CelTypeTypes. substitute(java.util.Map<CelType,CelType> subs, CelType type, boolean typeParamToDyn)Apply substitution to given type, replacing all direct and indirect occurrences of bound type parameters.Method parameters in dev.cel.checker with type arguments of type CelType Modifier and Type Method Description booleanInferenceContext. isAssignable(java.util.List<CelType> list1, java.util.List<CelType> list2)Same asInferenceContext.isAssignable(CelType, CelType)for lists of types.static @Nullable java.util.Map<CelType,CelType>Types. isAssignable(java.util.Map<CelType,CelType> subs, CelType type1, CelType type2)Checks whether type1 is assignable to type2, based on the given substitution for type parameters.static @Nullable java.util.Map<CelType,CelType>Types. isAssignable(java.util.Map<CelType,CelType> subs, CelType type1, CelType type2)Checks whether type1 is assignable to type2, based on the given substitution for type parameters.static @Nullable java.util.Map<CelType,CelType>Types. isAssignable(java.util.Map<CelType,CelType> subs, java.util.List<CelType> list1, java.util.List<CelType> list2)Same asTypes.isAssignable(Map, Type, Type)but performs pairwise check on lists of types.static @Nullable java.util.Map<CelType,CelType>Types. isAssignable(java.util.Map<CelType,CelType> subs, java.util.List<CelType> list1, java.util.List<CelType> list2)Same asTypes.isAssignable(Map, Type, Type)but performs pairwise check on lists of types.static @Nullable java.util.Map<CelType,CelType>Types. isAssignable(java.util.Map<CelType,CelType> subs, java.util.List<CelType> list1, java.util.List<CelType> list2)Same asTypes.isAssignable(Map, Type, Type)but performs pairwise check on lists of types.java.util.List<CelType>InferenceContext. specialize(java.util.List<CelType> types)Specializes using given type list of types using the substitution of this context.static CelTypeTypes. substitute(java.util.Map<CelType,CelType> subs, CelType type, boolean typeParamToDyn)Apply substitution to given type, replacing all direct and indirect occurrences of bound type parameters.static CelTypeTypes. substitute(java.util.Map<CelType,CelType> subs, CelType type, boolean typeParamToDyn)Apply substitution to given type, replacing all direct and indirect occurrences of bound type parameters.static CelAbstractSyntaxTreeExprChecker. typecheck(Env env, java.lang.String inContainer, CelAbstractSyntaxTree ast, com.google.common.base.Optional<CelType> expectedResultType)Deprecated.Type-checks the parsed expression within the given environment and returns a checked expression. -
Uses of CelType in dev.cel.common
Methods in dev.cel.common that return CelType Modifier and Type Method Description CelTypeCelAbstractSyntaxTree. getResultType()For a type checked abstract syntax tree the resulting type is returned.abstract CelTypeCelOverloadDecl.Builder. resultType()abstract CelTypeCelOverloadDecl. resultType()Required.abstract CelTypeCelVarDecl. type()The type of the variable.Methods in dev.cel.common that return types with arguments of type CelType Modifier and Type Method Description java.util.Optional<CelType>CelAbstractSyntaxTree. getType(long exprId)com.google.common.collect.ImmutableMap<java.lang.Long,CelType>CelAbstractSyntaxTree. getTypeMap()abstract com.google.common.collect.ImmutableList<CelType>CelOverloadDecl.Builder. parameterTypes()abstract com.google.common.collect.ImmutableList<CelType>CelOverloadDecl. parameterTypes()List of function parameter type values.Methods in dev.cel.common with parameters of type CelType Modifier and Type Method Description CelOverloadDecl.BuilderCelOverloadDecl.Builder. addParameterTypes(CelType... parameterTypes)Accumulates parameter types intoCelOverloadDecl.Builder.parameterTypesBuilder()static CelOverloadDeclCelOverloadDecl. newGlobalOverload(java.lang.String overloadId, CelType resultType, CelType... paramTypes)Helper method for declaring a global function overloadstatic CelOverloadDeclCelOverloadDecl. newGlobalOverload(java.lang.String overloadId, CelType resultType, java.util.List<CelType> paramTypes)Helper method for declaring a global function overloadstatic CelOverloadDeclCelOverloadDecl. newGlobalOverload(java.lang.String overloadId, java.lang.String doc, CelType resultType, CelType... paramTypes)Helper method for declaring a global function overloadstatic CelOverloadDeclCelOverloadDecl. newGlobalOverload(java.lang.String overloadId, java.lang.String doc, CelType resultType, java.util.List<CelType> paramTypes)Helper method for declaring a global function overloadstatic CelOverloadDeclCelOverloadDecl. newMemberOverload(java.lang.String overloadId, CelType resultType, CelType... paramTypes)Helper method for declaring a member function overloadstatic CelOverloadDeclCelOverloadDecl. newMemberOverload(java.lang.String overloadId, CelType resultType, java.util.List<CelType> paramTypes)Helper method for declaring a member function overloadstatic CelOverloadDeclCelOverloadDecl. newMemberOverload(java.lang.String overloadId, java.lang.String doc, CelType resultType, CelType... paramTypes)Helper method for declaring a member function overloadstatic CelOverloadDeclCelOverloadDecl. newMemberOverload(java.lang.String overloadId, java.lang.String doc, CelType resultType, java.util.List<CelType> paramTypes)Helper method for declaring a member function overloadstatic CelVarDeclCelVarDecl. newVarDeclaration(java.lang.String name, CelType type)Create a newCelVarDeclwith a givennameandtype.abstract CelOverloadDecl.BuilderCelOverloadDecl.Builder. setResultType(CelType value)Sets the result typeCelOverloadDecl.Builder.resultType()Method parameters in dev.cel.common with type arguments of type CelType Modifier and Type Method Description CelOverloadDecl.BuilderCelOverloadDecl.Builder. addParameterTypes(java.lang.Iterable<CelType> parameterTypes)Accumulates parameter types intoCelOverloadDecl.Builder.parameterTypesBuilder()static CelOverloadDeclCelOverloadDecl. newGlobalOverload(java.lang.String overloadId, CelType resultType, java.util.List<CelType> paramTypes)Helper method for declaring a global function overloadstatic CelOverloadDeclCelOverloadDecl. newGlobalOverload(java.lang.String overloadId, java.lang.String doc, CelType resultType, java.util.List<CelType> paramTypes)Helper method for declaring a global function overloadstatic CelOverloadDeclCelOverloadDecl. newMemberOverload(java.lang.String overloadId, CelType resultType, java.util.List<CelType> paramTypes)Helper method for declaring a member function overloadstatic CelOverloadDeclCelOverloadDecl. newMemberOverload(java.lang.String overloadId, java.lang.String doc, CelType resultType, java.util.List<CelType> paramTypes)Helper method for declaring a member function overloadabstract CelOverloadDecl.BuilderCelOverloadDecl.Builder. setParameterTypes(com.google.common.collect.ImmutableList<CelType> value)Sets the parameter typesCelOverloadDecl.Builder.parameterTypes(). -
Uses of CelType in dev.cel.common.types
Subclasses of CelType in dev.cel.common.types Modifier and Type Class Description classEnumTypeEnum types to support strongly typed enums with lookups by value name and number.classListTypeLists are a parameterized type with the parameter indicating theelemType.classMapTypeMaps are a parameterized type where the two parameters supported indicate thekeyTypeandvalueTypeof map entries.classNullableTypeNullable types are a union type which indicate that the value is either thetargetTypeorSimpleType.NULL_TYPEclassOpaqueTypeAn opaque type's properties may only be accessed via function calls associated with the type.classOptionalTypeOptionalType is an opaque type that that represents an optional value.classProtoMessageTypeTheProtoMessageTypeis aStructTypewith support for protoExtensions and field masks.classSimpleTypeSimple types represent scalar, dynamic, and error values.classStructTypeStruct type indicates that the typenameis a structured object with typed properties.classStructTypeReferenceA simple type reference to a struct.classTypeParamTypeType parameters are 'free' types which take on a concrete type contextually.classTypeTypeTheTypeTypeis a type which holds a reference to a type-kind.classUnspecifiedTypeRepresents an unspecified CEL-Type.Fields in dev.cel.common.types declared as CelType Modifier and Type Field Description static CelTypeSimpleType. ANYstatic CelTypeSimpleType. BOOLstatic CelTypeSimpleType. BYTESstatic CelTypeSimpleType. DOUBLEstatic CelTypeSimpleType. DURATIONstatic CelTypeSimpleType. DYNstatic CelTypeSimpleType. ERRORstatic CelTypeSimpleType. INTstatic CelTypeSimpleType. NULL_TYPEstatic CelTypeSimpleType. STRINGstatic CelTypeSimpleType. TIMESTAMPstatic CelTypeSimpleType. UINTMethods in dev.cel.common.types that return CelType Modifier and Type Method Description CelTypeListType. elemType()CelTypeMapType. keyType()abstract CelTypeProtoMessageType.Extension. messageType()abstract CelTypeNullableType. targetType()abstract CelTypeProtoMessageType.Extension. type()abstract CelTypeStructType.Field. type()CelTypeTypeType. type()static CelTypeCelTypes. typeToCelType(Type type)Converts a Protobuf type to CEL native type.CelTypeMapType. valueType()CelTypeCelType. withFreshTypeParamVariables(java.util.function.Function<java.lang.String,java.lang.String> varNameGenerator)Instantiate a new copy of this type with alternativeparameters.CelTypeNullableType. withFreshTypeParamVariables(java.util.function.Function<java.lang.String,java.lang.String> varNameGenerator)CelTypeTypeParamType. withFreshTypeParamVariables(java.util.function.Function<java.lang.String,java.lang.String> varNameGenerator)CelTypeCelType. withParameters(com.google.common.collect.ImmutableList<CelType> parameters)Instantiate a new copy of this type with alternativeparameters.CelTypeListType. withParameters(com.google.common.collect.ImmutableList<CelType> parameters)CelTypeMapType. withParameters(com.google.common.collect.ImmutableList<CelType> parameters)CelTypeNullableType. withParameters(com.google.common.collect.ImmutableList<CelType> parameters)CelTypeOpaqueType. withParameters(com.google.common.collect.ImmutableList<CelType> parameters)CelTypeTypeType. withParameters(com.google.common.collect.ImmutableList<CelType> parameters)Methods in dev.cel.common.types that return types with arguments of type CelType Modifier and Type Method Description java.util.Optional<CelType>StructType.FieldResolver. findField(java.lang.String fieldName)Find theCelTypefor the givenfieldNameif the field is defined.java.util.Optional<CelType>CelTypeProvider.CombinedCelTypeProvider. findType(java.lang.String typeName)java.util.Optional<CelType>CelTypeProvider. findType(java.lang.String typeName)Return theCelTypefor the giventypeNameif supported.java.util.Optional<CelType>ProtoMessageTypeProvider. findType(java.lang.String typeName)static java.util.Optional<CelType>CelTypes. getWellKnownCelType(java.lang.String typeName)com.google.common.collect.ImmutableList<CelType>CelType. parameters()Return the type parameters.abstract com.google.common.collect.ImmutableList<CelType>ListType. parameters()abstract com.google.common.collect.ImmutableList<CelType>MapType. parameters()abstract com.google.common.collect.ImmutableList<CelType>OpaqueType. parameters()abstract com.google.common.collect.ImmutableList<CelType>OptionalType. parameters()abstract com.google.common.collect.ImmutableList<CelType>TypeType. parameters()com.google.common.collect.ImmutableCollection<CelType>CelTypeProvider.CombinedCelTypeProvider. types()com.google.common.collect.ImmutableCollection<CelType>CelTypeProvider. types()Return the set ofCelTypeinstances supported by this provider.com.google.common.collect.ImmutableCollection<CelType>ProtoMessageTypeProvider. types()Methods in dev.cel.common.types with parameters of type CelType Modifier and Type Method Description static TypeCelTypes. celTypeToType(CelType celType)Converts a Protobuf type into CEL native type.static ListTypeListType. create(CelType elemType)static MapTypeMapType. create(CelType keyType, CelType valueType)static NullableTypeNullableType. create(CelType targetType)static OpaqueTypeOpaqueType. create(java.lang.String typeName, CelType... parameters)static OptionalTypeOptionalType. create(CelType parameter)static TypeTypeTypeType. create(CelType type)static OpaqueTypeCelTypes. createFunctionType(CelType resultType, java.lang.Iterable<CelType> argumentTypes)Create an abstract type with an expected result type (first argument in the parameter) and the argument types.static java.lang.StringCelTypes. format(CelType type)Method to adapt a simpleTypeinto aStringrepresentation.static java.lang.StringCelTypes. formatFunction(CelType resultType, java.lang.Iterable<CelType> argTypes, boolean isInstance, boolean typeParamToDyn)Format a function signature string from the inputargTypesandresultType.booleanCelType. isAssignableFrom(CelType other)Determine whetherthistype is assignable from theothertype value.booleanEnumType. isAssignableFrom(CelType other)booleanNullableType. isAssignableFrom(CelType other)booleanSimpleType. isAssignableFrom(CelType other)booleanStructType. isAssignableFrom(CelType other)booleanStructTypeReference. isAssignableFrom(CelType other)static StructType.FieldStructType.Field. of(java.lang.String name, CelType type)Method parameters in dev.cel.common.types with type arguments of type CelType Modifier and Type Method Description static OpaqueTypeOpaqueType. create(java.lang.String typeName, com.google.common.collect.ImmutableList<CelType> parameters)static OpaqueTypeCelTypes. createFunctionType(CelType resultType, java.lang.Iterable<CelType> argumentTypes)Create an abstract type with an expected result type (first argument in the parameter) and the argument types.static java.lang.StringCelTypes. formatFunction(CelType resultType, java.lang.Iterable<CelType> argTypes, boolean isInstance, boolean typeParamToDyn)Format a function signature string from the inputargTypesandresultType.CelTypeCelType. withParameters(com.google.common.collect.ImmutableList<CelType> parameters)Instantiate a new copy of this type with alternativeparameters.CelTypeListType. withParameters(com.google.common.collect.ImmutableList<CelType> parameters)CelTypeMapType. withParameters(com.google.common.collect.ImmutableList<CelType> parameters)CelTypeNullableType. withParameters(com.google.common.collect.ImmutableList<CelType> parameters)CelTypeOpaqueType. withParameters(com.google.common.collect.ImmutableList<CelType> parameters)CelTypeTypeType. withParameters(com.google.common.collect.ImmutableList<CelType> parameters) -
Uses of CelType in dev.cel.common.values
Methods in dev.cel.common.values that return CelType Modifier and Type Method Description CelTypeBoolValue. celType()CelTypeBytesValue. celType()abstract CelTypeCelValue. celType()The CelType that represents this value.CelTypeDoubleValue. celType()CelTypeDurationValue. celType()CelTypeEnumValue. celType()CelTypeErrorValue. celType()CelTypeIntValue. celType()CelTypeListValue. celType()CelTypeMapValue. celType()CelTypeNullValue. celType()abstract CelTypeProtoMessageValue. celType()CelTypeStringValue. celType()CelTypeTimestampValue. celType()CelTypeUintValue. celType()abstract CelTypeTypeValue. value()Methods in dev.cel.common.values with parameters of type CelType Modifier and Type Method Description static TypeValueTypeValue. create(CelType value) -
Uses of CelType in dev.cel.compiler
Methods in dev.cel.compiler with parameters of type CelType Modifier and Type Method Description CelCompilerBuilderCelCompilerBuilder. addVar(java.lang.String name, CelType type)Add a variable declaration with a givennameandCelType.CelCompilerBuilderCelCompilerImpl.Builder. addVar(java.lang.String name, CelType type)CelCompilerBuilderCelCompilerBuilder. setResultType(CelType resultType)Set the expectedresultTypefor the type-checked expression.CelCompilerBuilderCelCompilerImpl.Builder. setResultType(CelType resultType) -
Uses of CelType in dev.cel.runtime
Methods in dev.cel.runtime with parameters of type CelType Modifier and Type Method Description ValueDescriptorMessageProvider. adaptType(CelType type)Adapt the check-timetypeinstance to a runtimeValue.ValueRuntimeTypeProviderLegacyImpl. adaptType(CelType type)@Nullable ValueStandardTypeResolver. adaptType(CelType type)Adapt the check-timetypeinstance to a runtimeValue.@Nullable ValueTypeResolver. adaptType(CelType type)Adapt the check-timetypeinstance to a runtimeValue.
-