|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Composite interface that represents the expression in the predicate
Method Summary | |
Object |
evaluate()
Evaluates the expression and returns the value. |
boolean |
initialize(PredicateContext context,
RuleMonitor rules)
Initializes and validates (recursively, if required) the expression and returns the status about if the expression can be evaluated. |
Method Detail |
public boolean initialize(PredicateContext context, RuleMonitor rules)
The values passed on the contextNode and the rules are also the values that are to be used in evaluating the expression.
The expression is expected to return at the first place where the initialization fails. In other words, if the initialization succeeds, all the expressions were initialized, but, if it fails, not all expressions might have been evaluated.
context
- The context for this expression.rules
- Required to make decisions when the expression
is ambiguous. null, if there are no rules required.public Object evaluate()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |