Class CelCheckerLegacyImpl

  • All Implemented Interfaces:
    CelChecker, EnvVisitable

    @Immutable
    @Internal
    public final class CelCheckerLegacyImpl
    extends java.lang.Object
    implements CelChecker, EnvVisitable
    CelChecker implementation which uses the original CEL-Java APIs to provide a simple, consistent interface for type-checking.

    CEL Library Internals. Do Not Use. Consumers should use CelCompilerFactory to instantiate a type-checker.

    • Method Detail

      • check

        public CelValidationResult check​(dev.cel.common.CelAbstractSyntaxTree ast)
        Description copied from interface: CelChecker
        Check the input ast for type-agreement and return a CelValidationResult.

        Check validates the type-agreement of the parsed CelAbstractSyntaxTree.

        Specified by:
        check in interface CelChecker
      • getTypeProvider

        public dev.cel.common.types.CelTypeProvider getTypeProvider()
        Description copied from interface: CelChecker
        Returns the underlying type provider.
        Specified by:
        getTypeProvider in interface CelChecker
      • newBuilder

        public static CelCheckerBuilder newBuilder()
        Create a new builder to construct a CelChecker instance.