Whether the expression contains any resolvable references.
reference start with input.
should be considered as non-resolvable in context of partial evaluation.
When this field is set to true
, we should not attempt to evaluate this expression.
i.e. evaluate() method should return immediately.
This will speed up evaluation process.
If it's complete evaluated
Whether this expression is a negative expression
i.e. it's final evaluation result should be false
if result is true
Ref to Opa Parser
All RegoTerms belongs to this expression
The value of the expression
Print concise format expression string presentation. Can be used for debugging
Try to evaluate the expression
Try to determins its value
Whether or not a expression should be considered as "matched". If all expressions of a rule are "matched", the rule will be considered as "matched". Thus, the rule has a value.
Please note: if an expression's value is 0
, empty string "", null etc, the expression is considered as "matched".
We only consider an expression as "Not Matched" when the expression has value false
or is undefined.
Whether or not the expression is resolvable now.
For debug usage, print terms as easy to ready short string
Output human readable string
Convert operator term to string and put rest operands into an array. And then return a [Operator, Operands] structure
Generated using TypeDoc
Represents Rego expression