public class InstanceOfExpr extends AbsExpression
The boolean instance of expression returns true if the value of its first operand matches the SequenceType in its second operand, according to the rules for SequenceType matching; otherwise it returns false.
Constructor and Description |
---|
InstanceOfExpr(INodeReadTrx mRtx,
AbsAxis mInputExpr,
SequenceType mSequenceType)
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 InstanceOfExpr(INodeReadTrx mRtx, AbsAxis mInputExpr, SequenceType mSequenceType)
mRtx
- Exclusive (immutable) trx to iterate with.mInputExpr
- input expression, to testmSequenceType
- sequence type to test whether the input sequence matches to.public 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.