public class EveryExpr extends AbsExpression
IAxis that represents the quantified expression "every".
The quantified expression is true if every evaluation of the test expression has the effective boolean value true; otherwise the quantified expression is false. This rule implies that, if the in-clauses generate zero binding tuples, the value of the quantified expression is true.
Constructor and Description |
---|
EveryExpr(INodeReadTrx rtx,
List<AbsAxis> mVars,
AbsAxis mSatisfy)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
AtomicValue |
evaluate()
Performs the expression dependent evaluation of the expression.
|
void |
reset(long mNodeKey)
Resetting the nodekey of this axis to a given nodekey.
|
hasNext
addAtomicToItemList, close, getItemList, getNode, getStartKey, isSelfIncluded, iterator, moveTo, next, remove, resetToLastKey, resetToStartKey
public EveryExpr(INodeReadTrx rtx, List<AbsAxis> mVars, AbsAxis mSatisfy)
rtx
- Exclusive (immutable) trx to iterate with.mVars
- Variables for which the condition must be satisfiedmSatisfy
- condition every item of the variable results must satisfy in
order to evaluate expression to truepublic void reset(long mNodeKey)
reset
in class AbsExpression
mNodeKey
- the nodekey where the reset should occur to.public AtomicValue evaluate()
evaluate
in class AbsExpression
Copyright © 2013. All Rights Reserved.