Package dev.cel.common.ast
Class CelExprConverter
- java.lang.Object
-
- dev.cel.common.ast.CelExprConverter
-
public final class CelExprConverter extends java.lang.ObjectConverts a proto-based Canonical Expression TreeExprinto the CEL native representation of Expression treeCelExprand vice versa.Note: Keep this file in sync with
CelExprV1Alpha1Converter
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ConstantcelConstantToExprConstant(dev.cel.common.ast.CelConstant celConstant)Converts a proto-basedConstantto CEL native representation ofCelConstant.static ReferencecelReferenceToExprReference(dev.cel.common.ast.CelReference reference)Converts a proto-basedCelReferenceto CEL native representation ofReference.static dev.cel.common.ast.CelConstantexprConstantToCelConstant(Constant constExpr)Converts a proto-basedConstantto CEL native representation ofCelConstant.static com.google.common.collect.ImmutableMap<java.lang.Long,dev.cel.common.ast.CelExpr>exprMacroCallsToCelExprMacroCalls(java.util.Map<java.lang.Long,Expr> macroCalls)static dev.cel.common.ast.CelReferenceexprReferenceToCelReference(Reference reference)Converts a proto-basedReferenceto CEL native representation ofCelReference.static ExprfromCelExpr(dev.cel.common.ast.CelExpr celExpr)ConvertCelExprintoExprstatic dev.cel.common.ast.CelExprfromExpr(Expr expr)ConvertExprintoCelExpr
-
-
-
Method Detail
-
fromCelExpr
public static Expr fromCelExpr(dev.cel.common.ast.CelExpr celExpr)
ConvertCelExprintoExpr
-
exprReferenceToCelReference
public static dev.cel.common.ast.CelReference exprReferenceToCelReference(Reference reference)
Converts a proto-basedReferenceto CEL native representation ofCelReference.
-
exprConstantToCelConstant
public static dev.cel.common.ast.CelConstant exprConstantToCelConstant(Constant constExpr)
Converts a proto-basedConstantto CEL native representation ofCelConstant.
-
celConstantToExprConstant
public static Constant celConstantToExprConstant(dev.cel.common.ast.CelConstant celConstant)
Converts a proto-basedConstantto CEL native representation ofCelConstant.
-
celReferenceToExprReference
public static Reference celReferenceToExprReference(dev.cel.common.ast.CelReference reference)
Converts a proto-basedCelReferenceto CEL native representation ofReference.
-
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)
-
-