ch.ethz.mxquery.iterators
Class FFLWORIterator.CFAdapter
java.lang.Object
ch.ethz.mxquery.model.Iterator
ch.ethz.mxquery.model.CurrentBasedIterator
ch.ethz.mxquery.iterators.FFLWORIterator.CFAdapter
- All Implemented Interfaces:
- XDMIterator, Traversable
- Enclosing class:
- FFLWORIterator
public class FFLWORIterator.CFAdapter
- extends CurrentBasedIterator
This Adapter is needed to enable break and continue during
return-materialization in order by. The only thing this class does it to
return Iterator.END_SEQUENCE when a break/continue happens => it catches
the error. If a break or catch happend is accessible over getters.
Method Summary |
boolean |
isBreakCatched()
|
boolean |
isContinueCatched()
|
Token |
next()
Produces the next XDM token
This method typically implements the base functionality of an Iterator and
computes the value of the next token. |
Methods inherited from class ch.ethz.mxquery.model.Iterator |
addPredicates, close, copy, copyInts, copyIterators, copyQNames, copyStrings, copyTypeInfos, getAllSubIters, getAllSubItersRecursive, getContext, getExpressionCategoryType, getLoc, getPendingUpdateList, getPredicates, getStaticType, getSubIters, hasPredicates, isConstModePreserve, isExprParameter, isOpen, isResettable, removePredicates, reset, setConstModePreserve, setContext, setLoc, setOrderByExpr, setParam, setResettable, setReturnExpr, setSubIters, setSubIters, setSubIters, setWhereExpr, traverse, traverseIteratorTree |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FFLWORIterator.CFAdapter
public FFLWORIterator.CFAdapter(XDMIterator iter)
next
public Token next()
throws MXQueryException
- Description copied from interface:
XDMIterator
- Produces the next XDM token
This method typically implements the base functionality of an Iterator and
computes the value of the next token.
- Returns:
- The XDM token representing the next fragment of the XDM instance
- Throws:
MXQueryException
isBreakCatched
public boolean isBreakCatched()
isContinueCatched
public boolean isContinueCatched()
MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich