ch.ethz.mxquery.iterators
Class QuantifiedIterator
java.lang.Object
ch.ethz.mxquery.model.Iterator
ch.ethz.mxquery.model.TokenBasedIterator
ch.ethz.mxquery.iterators.QuantifiedIterator
- All Implemented Interfaces:
- XDMIterator, Traversable
public class QuantifiedIterator
- extends TokenBasedIterator
Method Summary |
XDMIterator |
copy(Context parentIterContext,
XQStaticContext newParentIterContext,
boolean copyContext,
java.util.Vector nestedPredCtxStack)
Copies the Iterator. |
TypeInfo |
getStaticType()
Return the return type if it can be statically determined |
void |
setContext(Context context,
boolean recursive)
Assigns a context for this iterator (and possibly for its subIterators), replacing the existing context |
Methods inherited from class ch.ethz.mxquery.model.Iterator |
addPredicates, close, copyInts, copyIterators, copyQNames, copyStrings, copyTypeInfos, getAllSubIters, getAllSubItersRecursive, getContext, getExpressionCategoryType, getLoc, getPendingUpdateList, getPredicates, getSubIters, hasPredicates, isConstModePreserve, isExprParameter, isOpen, isResettable, removePredicates, reset, setConstModePreserve, 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 |
QuantifiedIterator
public QuantifiedIterator(Context ctx,
XDMIterator[] subIters,
boolean every,
QueryLocation location)
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
getStaticType
public TypeInfo getStaticType()
- Description copied from interface:
XDMIterator
- Return the return type if it can be statically determined
- Specified by:
getStaticType
in interface XDMIterator
- Overrides:
getStaticType
in class Iterator
- Returns:
- a Type info carrying the most precise static type that could be determined. If no specific type could be determined, the type is ITEM*
setContext
public void setContext(Context context,
boolean recursive)
throws MXQueryException
- Description copied from interface:
XDMIterator
- Assigns a context for this iterator (and possibly for its subIterators), replacing the existing context
- Specified by:
setContext
in interface XDMIterator
- Overrides:
setContext
in class Iterator
- Parameters:
context
- the context to assignrecursive
- true perform the assignment also subiteratos, false only replace on the current iterator
- Throws:
MXQueryException
MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich