Constructor and Description |
---|
AbsObAxis(INodeReadTrx rtx,
AbsAxis mOp1,
AbsAxis mOp2)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected abstract Type |
getReturnType(int mOp1,
int mOp2)
Checks if the types of the operands are a valid combination for the
operation and if so returns the corresponding result type.
|
boolean |
hasNext() |
protected abstract AtomicValue |
operate(AtomicValue mOperand1,
AtomicValue mOperand2)
Performs the operation on the two input operands.
|
void |
reset(long mNodeKey)
Resetting the nodekey of this axis to a given nodekey.
|
addAtomicToItemList, close, getItemList, getNode, getStartKey, isSelfIncluded, iterator, moveTo, next, remove, resetToLastKey, resetToStartKey
public AbsObAxis(INodeReadTrx rtx, AbsAxis mOp1, AbsAxis mOp2)
rtx
- Exclusive (immutable) trx to iterate with.mOp1
- First value of the operationmOp2
- Second value of the operationpublic final void reset(long mNodeKey)
public boolean hasNext()
protected abstract AtomicValue operate(AtomicValue mOperand1, AtomicValue mOperand2) throws TTXPathException
mOperand1
- first input operandmOperand2
- second input operandTTXPathException
- if the operations failsprotected abstract Type getReturnType(int mOp1, int mOp2) throws TTXPathException
mOp1
- first operand's type keymOp2
- second operand's type keyTTXPathException
- if type is not specifiedCopyright © 2013. All Rights Reserved.