|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.saxon.expr.Expression net.sf.saxon.expr.Assignation net.sf.saxon.expr.ForExpression com.saxonica.expr.OuterForExpression
public class OuterForExpression
Expression class that implements the "outer for" clause of XQuery 1.1
Nested Class Summary |
---|
Nested classes/interfaces inherited from class net.sf.saxon.expr.ForExpression |
---|
ForExpression.EventMappingAction, ForExpression.MappingAction |
Field Summary |
---|
Fields inherited from class net.sf.saxon.expr.ForExpression |
---|
positionVariable |
Fields inherited from class net.sf.saxon.expr.Assignation |
---|
action, requiredType, sequence, slotNumber, variableName |
Fields inherited from class net.sf.saxon.expr.Expression |
---|
EVALUATE_METHOD, EVENT_FEED_METHOD, ITEM_FEED_METHOD, ITERATE_METHOD, locationId, PROCESS_METHOD, PUSH_SELECTION, staticProperties, WATCH_METHOD |
Constructor Summary | |
---|---|
OuterForExpression()
|
Method Summary | |
---|---|
Expression |
copy()
Copy an expression. |
void |
evaluatePendingUpdates(XPathContext context,
PendingUpdateList pul)
Evaluate an updating expression, adding the results to a Pending Update List. |
protected void |
explainSpecializedAttributes(ExpressionPresenter out)
|
protected int |
getRangeVariableCardinality()
Get the cardinality of the range variable |
SequenceIterator |
iterate(XPathContext context)
Iterate over the result of the expression |
EventIterator |
iterateEvents(XPathContext context)
Deliver the result of the expression as a sequence of events. |
Expression |
optimize(ExpressionVisitor visitor,
ItemType contextItemType)
Optimize the expression |
void |
process(XPathContext context)
Process this expression as an instruction, writing results to the current outputter |
Methods inherited from class net.sf.saxon.expr.ForExpression |
---|
checkPermittedContents, computeCardinality, explain, extendBindingList, getConstructType, getExpressionName, getImplementationMethod, getItemType, getPositionVariableName, getRequiredSlots, hasLoopingSubexpression, isVacuousExpression, markTailFunctionCalls, setPositionVariable, setSlotNumber, toString, typeCheck |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public OuterForExpression()
Method Detail |
---|
protected int getRangeVariableCardinality()
getRangeVariableCardinality
in class ForExpression
public Expression optimize(ExpressionVisitor visitor, ItemType contextItemType) throws XPathException
optimize
in class ForExpression
visitor
- an expression visitorcontextItemType
- the static type of "." at the point where this expression is invoked.
The parameter is set to null if it is known statically that the context item will be undefined.
If the type of the context item is not known statically, the argument is set to
Type.ITEM_TYPE
XPathException
- if an error is discovered during this phase
(typically a type error)public Expression copy()
copy
in class ForExpression
public SequenceIterator iterate(XPathContext context) throws XPathException
iterate
in interface SequenceIterable
iterate
in class ForExpression
context
- supplies the context for evaluation
XPathException
- if any dynamic error occurs evaluating the
expressionpublic EventIterator iterateEvents(XPathContext context) throws XPathException
iterateEvents
in class ForExpression
context
- The dynamic evaluation context
XPathException
- if a dynamic error occurs during expression evaluationpublic void process(XPathContext context) throws XPathException
process
in class ForExpression
context
- The dynamic context, giving access to the current node,
the current variables, etc.
XPathException
public void evaluatePendingUpdates(XPathContext context, PendingUpdateList pul) throws XPathException
evaluatePendingUpdates
in class ForExpression
context
- the XPath dynamic evaluation contextpul
- the pending update list to which the results should be written
XPathException
protected void explainSpecializedAttributes(ExpressionPresenter out)
explainSpecializedAttributes
in class ForExpression
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |