|
|||||||||
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 |
---|
EFFECTIVE_BOOLEAN_VALUE, EVALUATE_METHOD, EVENT_FEED_METHOD, ITEM_FEED_METHOD, ITERATE_METHOD, locationId, MAX_SEQUENCE_LENGTH, MAX_STRING_LENGTH, PROCESS_METHOD, PUSH_SELECTION, staticProperties, UNBOUNDED_LOWER, UNBOUNDED_UPPER, 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,
ExpressionVisitor.ContextItemType contextItemType)
Optimize the expression |
void |
process(XPathContext context)
Process this expression as an instruction, writing results to the current outputter |
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, ExpressionVisitor.ContextItemType 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 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
- if a dynamic error occurspublic 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
- if evaluation failsprotected void explainSpecializedAttributes(ExpressionPresenter out)
explainSpecializedAttributes
in class ForExpression
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |