Package dev.cel.runtime.planner
Class PlannedProgram
- java.lang.Object
-
- dev.cel.runtime.planner.PlannedProgram
-
-
Constructor Summary
Constructors Constructor Description PlannedProgram()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete 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.java.lang.ObjectevalOrThrow(dev.cel.runtime.planner.PlannedInterpretable interpretable, GlobalResolver resolver, CelFunctionResolver functionResolver, @Nullable PartialVars partialVars, @Nullable CelEvaluationListener listener)abstract dev.cel.runtime.planner.PlannedInterpretableinterpretable()abstract dev.cel.common.CelOptionsoptions()java.lang.Objecttrace(GlobalResolver resolver, CelFunctionResolver functionResolver, PartialVars partialVars, CelEvaluationListener listener)
-
-
-
Method Detail
-
interpretable
public abstract dev.cel.runtime.planner.PlannedInterpretable interpretable()
-
options
public abstract dev.cel.common.CelOptions options()
-
eval
public java.lang.Object eval() throws CelEvaluationExceptionDescription copied from interface:ProgramEvaluate the expression without any variables.- Specified by:
evalin interfaceProgram- Throws:
CelEvaluationException
-
eval
public java.lang.Object eval(java.util.Map<java.lang.String,?> mapValue) throws CelEvaluationExceptionDescription copied from interface:ProgramEvaluate the expression using amapValueas the source of input variables.- Specified by:
evalin interfaceProgram- Throws:
CelEvaluationException
-
eval
public java.lang.Object eval(java.util.Map<java.lang.String,?> mapValue, CelFunctionResolver lateBoundFunctionResolver) throws CelEvaluationExceptionDescription copied from interface:ProgramEvaluate a compiled program withmapValueand late-bound functionslateBoundFunctionResolver.- Specified by:
evalin interfaceProgram- Throws:
CelEvaluationException
-
eval
public java.lang.Object eval(CelVariableResolver resolver) throws CelEvaluationException
Description copied from interface:ProgramEvaluate a compiled program with a custom variableresolver.- Specified by:
evalin interfaceProgram- Throws:
CelEvaluationException
-
eval
public java.lang.Object eval(CelVariableResolver resolver, CelFunctionResolver lateBoundFunctionResolver) throws CelEvaluationException
Description copied from interface:ProgramEvaluate a compiled program with a custom variableresolverand late-bound functionslateBoundFunctionResolver.- Specified by:
evalin interfaceProgram- Throws:
CelEvaluationException
-
eval
public java.lang.Object eval(PartialVars partialVars) throws CelEvaluationException
Description copied from interface:ProgramEvaluate a compiled program with unknown attribute patternspartialVars.- Specified by:
evalin interfaceProgram- Throws:
CelEvaluationException
-
evalOrThrow
public java.lang.Object evalOrThrow(dev.cel.runtime.planner.PlannedInterpretable interpretable, GlobalResolver resolver, CelFunctionResolver functionResolver, @Nullable PartialVars partialVars, @Nullable CelEvaluationListener listener) throws CelEvaluationException- Throws:
CelEvaluationException
-
trace
public java.lang.Object trace(GlobalResolver resolver, CelFunctionResolver functionResolver, PartialVars partialVars, CelEvaluationListener listener) throws CelEvaluationException
- Throws:
CelEvaluationException
-
-