Package dev.cel.runtime
Interface Program
-
- All Known Subinterfaces:
CelRuntime.Program
- All Known Implementing Classes:
PlannedProgram
@Immutable public interface ProgramCreates an evaluablePrograminstance which is thread-safe and immutable.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Objecteval()Evaluate the expression without any variables.java.lang.Objecteval(CelVariableResolver resolver)Evaluate a compiled program with a custom variableresolver.java.lang.Objecteval(CelVariableResolver resolver, CelFunctionResolver lateBoundFunctionResolver)Evaluate a compiled program with a custom variableresolverand late-bound functionslateBoundFunctionResolver.java.lang.Objecteval(PartialVars partialVars)Evaluate a compiled program with unknown attribute patternspartialVars.java.lang.Objecteval(java.util.Map<java.lang.String,?> mapValue)Evaluate the expression using amapValueas the source of input variables.java.lang.Objecteval(java.util.Map<java.lang.String,?> mapValue, CelFunctionResolver lateBoundFunctionResolver)Evaluate a compiled program withmapValueand late-bound functionslateBoundFunctionResolver.
-
-
-
Method Detail
-
eval
java.lang.Object eval() throws CelEvaluationExceptionEvaluate the expression without any variables.- Throws:
CelEvaluationException
-
eval
java.lang.Object eval(java.util.Map<java.lang.String,?> mapValue) throws CelEvaluationExceptionEvaluate the expression using amapValueas the source of input variables.- Throws:
CelEvaluationException
-
eval
java.lang.Object eval(java.util.Map<java.lang.String,?> mapValue, CelFunctionResolver lateBoundFunctionResolver) throws CelEvaluationExceptionEvaluate a compiled program withmapValueand late-bound functionslateBoundFunctionResolver.- Throws:
CelEvaluationException
-
eval
java.lang.Object eval(CelVariableResolver resolver) throws CelEvaluationException
Evaluate a compiled program with a custom variableresolver.- Throws:
CelEvaluationException
-
eval
java.lang.Object eval(CelVariableResolver resolver, CelFunctionResolver lateBoundFunctionResolver) throws CelEvaluationException
Evaluate a compiled program with a custom variableresolverand late-bound functionslateBoundFunctionResolver.- Throws:
CelEvaluationException
-
eval
java.lang.Object eval(PartialVars partialVars) throws CelEvaluationException
Evaluate a compiled program with unknown attribute patternspartialVars.- Throws:
CelEvaluationException
-
-