Class ExprChecker


  • @Internal
    @Deprecated
    public final class ExprChecker
    extends java.lang.Object
    Deprecated.
    Please migrate to CEL-Java Fluent APIs instead. See CelCompilerFactory.
    The expression type checker.

    CEL-Java library internals. Do not use.

    • Method Detail

      • check

        @CheckReturnValue
        @Deprecated
        public static CheckedExpr check​(Env env,
                                        java.lang.String inContainer,
                                        ParsedExpr parsedExpr)
        Deprecated.
        Do not use. CEL-Java users should leverage the Fluent APIs instead. See CelCompilerFactory.
        Checks the parsed expression within the given environment and returns a checked expression. Conditions for type checking and the result are described in checked.proto.
      • typecheck

        @CheckReturnValue
        @Deprecated
        public static CheckedExpr typecheck​(Env env,
                                            java.lang.String inContainer,
                                            ParsedExpr parsedExpr,
                                            com.google.common.base.Optional<Type> expectedResultType)
        Deprecated.
        Do not use. CEL-Java users should leverage the Fluent APIs instead. See CelCompilerFactory.
        Type-checks the parsed expression within the given environment and returns a checked expression. If an expected result type was given, then it verifies that that type matches the actual result type. Conditions for type checking and the constructed CheckedExpr are described in checked.proto.
      • typecheck

        @CheckReturnValue
        @Internal
        public static CelAbstractSyntaxTree 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. If an expected result type was given, then it verifies that that type matches the actual result type. Conditions for type checking and the constructed CheckedExpr are described in checked.proto.

        CEL Library Internals. Do not use. CEL-Java users should use the Fluent APIs instead.

      • visit

        @CheckReturnValue
        public CelExpr visit​(CelExpr expr)
        Deprecated.
        Visit the expr value, routing to overloads based on the kind of expression.