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
TheProtoTypeMaskTypeProvider
binds a set ofProtoTypeMask
instances to type definitions and ensures that only fields which have been explicitly listed by the set ofProtoTypeMask
values 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 theCelType
for the giventypeName
if supported.com.google.common.collect.ImmutableCollection<CelType>
types()
Return the set ofCelType
instances supported by this provider.
-
-
-
Method Detail
-
types
public com.google.common.collect.ImmutableCollection<CelType> types()
Description copied from interface:CelTypeProvider
Return the set ofCelType
instances supported by this provider.- Specified by:
types
in interfaceCelTypeProvider
-
findType
public java.util.Optional<CelType> findType(java.lang.String typeName)
Description copied from interface:CelTypeProvider
Return theCelType
for the giventypeName
if supported.- Specified by:
findType
in interfaceCelTypeProvider
-
-