public class GeneralComp extends AbsComparator
General comparisons are existentially quantified comparisons that may be applied to operand sequences of any length.
Constructor and Description |
---|
GeneralComp(INodeReadTrx rtx,
AbsAxis mOperand1,
AbsAxis mOperand2,
CompKind mCom)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected AtomicValue[] |
atomize(AbsAxis mOperand)
Atomizes an operand according to the rules specified in the XPath
specification.
|
protected boolean |
compare(AtomicValue[] mOperand1,
AtomicValue[] mOperand2)
Performs the comparison of two atomic values.
|
protected Type |
getType(int mKey1,
int mKey2)
Returns the common comparable type of the two operands, or an error, if
the two operands don't have a common type on which a comparison is
allowed according to the XPath 2.0 specification.
|
getComparator, getCompKind, hasNext, hook, reset
addAtomicToItemList, close, getItemList, getNode, getStartKey, isSelfIncluded, iterator, moveTo, next, remove, resetToLastKey, resetToStartKey
public GeneralComp(INodeReadTrx rtx, AbsAxis mOperand1, AbsAxis mOperand2, CompKind mCom)
rtx
- Exclusive (immutable) trx to iterate with.mOperand1
- First value of the comparisonmOperand2
- Second value of the comparisonmCom
- comparison kindprotected boolean compare(AtomicValue[] mOperand1, AtomicValue[] mOperand2) throws TTXPathException
compare
in class AbsComparator
mOperand1
- first comparison operand.mOperand2
- second comparison operand.TTXPathException
protected AtomicValue[] atomize(AbsAxis mOperand)
atomize
in class AbsComparator
mOperand
- the operand that will be atomized.protected Type getType(int mKey1, int mKey2) throws TTXPathException
getType
in class AbsComparator
mKey1
- first comparison operand's type keymKey2
- second comparison operand's type keyTTXPathException
Copyright © 2013. All Rights Reserved.