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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      protected static class  ExprChecker.OverloadResolution
      Deprecated.
      Helper object for holding an overload resolution result.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static dev.cel.expr.CheckedExpr check​(Env env, java.lang.String inContainer, dev.cel.expr.ParsedExpr parsedExpr)
      Deprecated.
      Do not use.
      static dev.cel.common.CelAbstractSyntaxTree typecheck​(Env env, dev.cel.common.CelContainer container, dev.cel.common.CelAbstractSyntaxTree ast, com.google.common.base.Optional<dev.cel.common.types.CelType> expectedResultType)
      Deprecated.
      Type-checks the parsed expression within the given environment and returns a checked expression.
      static dev.cel.expr.CheckedExpr typecheck​(Env env, java.lang.String inContainer, dev.cel.expr.ParsedExpr parsedExpr, com.google.common.base.Optional<dev.cel.expr.Type> expectedResultType)
      Deprecated.
      Do not use.
      void visit​(CelMutableExpr expr)
      Deprecated.
      Visit the expr value, routing to overloads based on the kind of expression.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • check

        @CheckReturnValue
        @Deprecated
        public static dev.cel.expr.CheckedExpr check​(Env env,
                                                     java.lang.String inContainer,
                                                     dev.cel.expr.ParsedExpr parsedExpr)
        Deprecated.
        Do not use. CEL-Java users should leverage the Fluent APIs instead. See CelCompilerFactory.
        Deprecated type-check API.
      • typecheck

        @CheckReturnValue
        @Deprecated
        public static dev.cel.expr.CheckedExpr typecheck​(Env env,
                                                         java.lang.String inContainer,
                                                         dev.cel.expr.ParsedExpr parsedExpr,
                                                         com.google.common.base.Optional<dev.cel.expr.Type> expectedResultType)
        Deprecated.
        Do not use. CEL-Java users should leverage the Fluent APIs instead. See CelCompilerFactory.
        Deprecated type-check API.
      • typecheck

        @CheckReturnValue
        @Internal
        public static dev.cel.common.CelAbstractSyntaxTree typecheck​(Env env,
                                                                     dev.cel.common.CelContainer container,
                                                                     dev.cel.common.CelAbstractSyntaxTree ast,
                                                                     com.google.common.base.Optional<dev.cel.common.types.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

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