ConditionalInterpretable
ConditionalInterpretable evaluates a value-level CEL conditional expression.
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ConditionalInterpretable(
optionsValue,exhaustiveValue?):ConditionalInterpretable
constructor initializes the conditional node state.
Parameters
Section titled “Parameters”optionsValue
Section titled “optionsValue”ConditionalInterpretableOptions
exhaustiveValue?
Section titled “exhaustiveValue?”boolean = false
Returns
Section titled “Returns”ConditionalInterpretable
Methods
Section titled “Methods”eval()
Section titled “eval()”eval(
activation):Val
eval delegates to exec after promoting the activation to a frame.
Parameters
Section titled “Parameters”activation
Section titled “activation”Returns
Section titled “Returns”Val
Implementation of
Section titled “Implementation of”exec()
Section titled “exec()”exec(
frame):Val
exec evaluates the condition and then only the selected branch.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Val
Implementation of
Section titled “Implementation of”id():
number
id returns the expression id associated with the conditional node.
Returns
Section titled “Returns”number
Implementation of
Section titled “Implementation of”withExhaustiveEval()
Section titled “withExhaustiveEval()”withExhaustiveEval():
ConditionalInterpretable
withExhaustiveEval returns a conditional which evaluates both result branches.
Returns
Section titled “Returns”ConditionalInterpretable