ch.ethz.mxquery.iterators
Class ForIterator
java.lang.Object
ch.ethz.mxquery.model.Iterator
ch.ethz.mxquery.model.CurrentBasedIterator
ch.ethz.mxquery.iterators.ForIterator
- All Implemented Interfaces:
- XDMIterator, Traversable
public class ForIterator
- extends CurrentBasedIterator
Constructor Summary |
ForIterator(Context ctx,
XDMIterator[] subIters,
QName var,
TypeInfo t,
QName pos,
boolean setContextItem,
QueryLocation location)
|
ForIterator(Context ctx,
XDMIterator[] subIters,
QName var,
TypeInfo t,
QName pos,
QueryLocation location)
|
Method Summary |
XDMIterator |
copy(Context parentIterContext,
XQStaticContext newParentIterContext,
boolean copyContext,
java.util.Vector nestedPredCtxStack)
Copies the Iterator. |
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, 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 |
ForIterator
public ForIterator(Context ctx,
XDMIterator[] subIters,
QName var,
TypeInfo t,
QName pos,
boolean setContextItem,
QueryLocation location)
throws MXQueryException
- Throws:
MXQueryException
ForIterator
public ForIterator(Context ctx,
XDMIterator[] subIters,
QName var,
TypeInfo t,
QName pos,
QueryLocation location)
throws MXQueryException
- Throws:
MXQueryException
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
copy
public final XDMIterator copy(Context parentIterContext,
XQStaticContext newParentIterContext,
boolean copyContext,
java.util.Vector nestedPredCtxStack)
throws MXQueryException
- Description copied from interface:
XDMIterator
- Copies the Iterator.
The context is copied (if necessary) here.
The subIterators are copied (if existing) here.
- Specified by:
copy
in interface XDMIterator
- Overrides:
copy
in class Iterator
- Parameters:
parentIterContext
- The new parent contextnewParentIterContext
- The previous context of the parent iteratorcopyContext
- Copy the context or use the parent contextnestedPredCtxStack
- The Stack of nested predicate context, needed for nested rewritten predicates
- Returns:
- A copy of this Iterator
- Throws:
MXQueryException
MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich