ch.ethz.mxquery.iterators
Class DescendantOrSelfIterator
java.lang.Object
ch.ethz.mxquery.model.Iterator
ch.ethz.mxquery.model.CurrentBasedIterator
ch.ethz.mxquery.iterators.DescendantOrSelfIterator
- All Implemented Interfaces:
- XDMIterator, Traversable
public class DescendantOrSelfIterator
- extends CurrentBasedIterator
Constructor Summary |
DescendantOrSelfIterator(Context ctx,
TypeInfo step,
int descAxis,
XDMIterator[] subIters,
QueryLocation location)
|
DescendantOrSelfIterator(Context ctx,
TypeInfo stepD,
QueryLocation location,
int descAxis)
|
DescendantOrSelfIterator(Context ctx,
java.util.Vector ids,
int idType,
QueryLocation location)
|
Method Summary |
int |
getDepth()
|
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 |
DESC_AXIS_DESCENDANT
public static final int DESC_AXIS_DESCENDANT
- See Also:
- Constant Field Values
DESC_AXIS_DESCENDANT_OR_SELF
public static final int DESC_AXIS_DESCENDANT_OR_SELF
- See Also:
- Constant Field Values
DESC_AXIS_SLASHSLASH
public static final int DESC_AXIS_SLASHSLASH
- See Also:
- Constant Field Values
DescendantOrSelfIterator
public DescendantOrSelfIterator(Context ctx,
TypeInfo step,
int descAxis,
XDMIterator[] subIters,
QueryLocation location)
throws MXQueryException
- Throws:
MXQueryException
DescendantOrSelfIterator
public DescendantOrSelfIterator(Context ctx,
TypeInfo stepD,
QueryLocation location,
int descAxis)
throws MXQueryException
- Throws:
MXQueryException
DescendantOrSelfIterator
public DescendantOrSelfIterator(Context ctx,
java.util.Vector ids,
int idType,
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
getDepth
public int getDepth()
MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich