Package net.sf.saxon.expr
Class ForExpression.EventMappingAction
java.lang.Object
net.sf.saxon.expr.ForExpression.EventMappingAction
- All Implemented Interfaces:
EventMappingFunction
- Enclosing class:
- ForExpression
protected static class ForExpression.EventMappingAction
extends Object
implements EventMappingFunction
The EventMappingAction represents the action to be taken for each item in the
source sequence. It acts as the EventMappingFunction for the mapping iterator, and
also provides the Binding of the position variable (at $n) in XQuery, if used.
-
Constructor Summary
ConstructorsConstructorDescriptionEventMappingAction
(XPathContext context, int slotNumber, PositionVariable positionBinding, Expression action) -
Method Summary
Modifier and TypeMethodDescriptionMap one item to a sequence of pull events.
-
Constructor Details
-
EventMappingAction
public EventMappingAction(XPathContext context, int slotNumber, PositionVariable positionBinding, Expression action)
-
-
Method Details
-
map
Description copied from interface:EventMappingFunction
Map one item to a sequence of pull events.- Specified by:
map
in interfaceEventMappingFunction
- Parameters:
item
- The item to be mapped.- Returns:
- one of the following: (a) an EventIterator over the sequence of items that the supplied input item maps to, or (b) null if it maps to an empty sequence.
- Throws:
XPathException
-