Package dev.cel.checker
Class ProtoTypeMaskTypeProvider
- java.lang.Object
-
- dev.cel.checker.ProtoTypeMaskTypeProvider
-
- All Implemented Interfaces:
CelTypeProvider
@Immutable public final class ProtoTypeMaskTypeProvider extends java.lang.Object implements CelTypeProvider
TheProtoTypeMaskTypeProviderbinds a set ofProtoTypeMaskinstances to type definitions and ensures that only fields which have been explicitly listed by the set ofProtoTypeMaskvalues is exposed within the CEL type system.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface dev.cel.common.types.CelTypeProvider
CelTypeProvider.CombinedCelTypeProvider
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<CelType>findType(java.lang.String typeName)Return theCelTypefor the giventypeNameif supported.com.google.common.collect.ImmutableCollection<CelType>types()Return the set ofCelTypeinstances supported by this provider.
-
-
-
Method Detail
-
types
public com.google.common.collect.ImmutableCollection<CelType> types()
Description copied from interface:CelTypeProviderReturn the set ofCelTypeinstances supported by this provider.- Specified by:
typesin interfaceCelTypeProvider
-
findType
public java.util.Optional<CelType> findType(java.lang.String typeName)
Description copied from interface:CelTypeProviderReturn theCelTypefor the giventypeNameif supported.- Specified by:
findTypein interfaceCelTypeProvider
-
-