public class IfAxis extends AbsAxis
IAxis that represents the conditional expression based on the keywords if, then, and else.
The first step in processing a conditional expression is to find the effective boolean value of the test expression. If the effective boolean value of the test expression is true, the value of the then-expression is returned. If the effective boolean value of the test expression is false, the value of the else-expression is returned.
Constructor and Description |
---|
IfAxis(INodeReadTrx rtx,
AbsAxis mIfAxis,
AbsAxis mThenAxis,
AbsAxis mElseAxis)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
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 IfAxis(INodeReadTrx rtx, AbsAxis mIfAxis, AbsAxis mThenAxis, AbsAxis mElseAxis)
rtx
- Exclusive (immutable) trx to iterate with.mIfAxis
- Test expressionmThenAxis
- Will be evaluated if test expression evaluates to true.mElseAxis
- Will be evaluated if test expression evaluates to false.Copyright © 2013. All Rights Reserved.