Class CelExprConverter


  • public final class CelExprConverter
    extends java.lang.Object
    Converts a proto-based Canonical Expression Tree Expr into the CEL native representation of Expression tree CelExpr and vice versa.

    Note: Keep this file in sync with CelExprV1Alpha1Converter

    • Method Detail

      • fromCelExpr

        public static Expr fromCelExpr​(dev.cel.common.ast.CelExpr celExpr)
        Convert CelExpr into Expr
      • fromExpr

        public static dev.cel.common.ast.CelExpr fromExpr​(Expr expr)
        Convert Expr into CelExpr
      • exprReferenceToCelReference

        public static dev.cel.common.ast.CelReference exprReferenceToCelReference​(Reference reference)
        Converts a proto-based Reference to CEL native representation of CelReference.
      • exprConstantToCelConstant

        public static dev.cel.common.ast.CelConstant exprConstantToCelConstant​(Constant constExpr)
        Converts a proto-based Constant to CEL native representation of CelConstant.
      • celConstantToExprConstant

        public static Constant celConstantToExprConstant​(dev.cel.common.ast.CelConstant celConstant)
        Converts a proto-based Constant to CEL native representation of CelConstant.
      • celReferenceToExprReference

        public static Reference celReferenceToExprReference​(dev.cel.common.ast.CelReference reference)
        Converts a proto-based CelReference to CEL native representation of Reference.
      • exprMacroCallsToCelExprMacroCalls

        public static com.google.common.collect.ImmutableMap<java.lang.Long,​dev.cel.common.ast.CelExpr> exprMacroCallsToCelExprMacroCalls​(java.util.Map<java.lang.Long,​Expr> macroCalls)