public class AndExpr extends AbsExpression
The logical and expression performs a logical conjunction of the boolean values of two input sequences. If a logical expression does not raise an error, its value is always one of the boolean values true or false.
The value of an and-expression is determined by the effective boolean values of its operands, as shown in the following table:
AND | EBV2 = true | EBV2 = false | error in EBV2 |
---|---|---|---|
EBV1 = true | true | false | error |
EBV1 = false | false | false | false |
error in EBV1 | error | error | error |
Constructor and Description |
---|
AndExpr(INodeReadTrx rtx,
AbsAxis mOperand1,
AbsAxis mOperand2)
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 AndExpr(INodeReadTrx rtx, AbsAxis mOperand1, AbsAxis mOperand2)
rtx
- Exclusive (immutable) transaction to iterate with.mOperand1
- First operandmOperand2
- Second operandpublic void reset(long mNodeKey)
reset
in class AbsExpression
mNodeKey
- the nodekey where the reset should occur to.public AtomicValue evaluate() throws TTXPathException
evaluate
in class AbsExpression
TTXPathException
Copyright © 2013. All Rights Reserved.