ch.ethz.mxquery.iterators
Class LogicalIterator
java.lang.Object
ch.ethz.mxquery.model.Iterator
ch.ethz.mxquery.model.TokenBasedIterator
ch.ethz.mxquery.iterators.LogicalIterator
- All Implemented Interfaces:
- XDMIterator, Traversable
public class LogicalIterator
- extends TokenBasedIterator
Field Summary |
static int |
AND
constants * |
static int |
OR
|
Methods inherited from class ch.ethz.mxquery.model.Iterator |
addPredicates, close, copy, copyInts, copyIterators, copyQNames, copyStrings, copyTypeInfos, getAllSubIters, getAllSubItersRecursive, getContext, getExpressionCategoryType, getLoc, getPendingUpdateList, getPredicates, 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 |
AND
public static final int AND
- constants *
- See Also:
- Constant Field Values
OR
public static final int OR
- See Also:
- Constant Field Values
LogicalIterator
public LogicalIterator(Context ctx,
int type,
XDMIterator[] subIters,
QueryLocation location)
throws MXQueryException
- Constructor for the LogicalIterator
- Parameters:
type
- indicates the type of the logical expression (AND | OR)subIters
- Array of Expressions, which are connected with AND / OR
depending on type.
- 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*
getOperatorType
public int getOperatorType()
getLeftChild
public XDMIterator getLeftChild()
getRightChild
public XDMIterator getRightChild()
MXQuery 0.6.0 API Documentation - Copyright 2006-2009 ETH Zurich