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 java.lang.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
Constructors Constructor Description EventMappingAction(XPathContext context, int slotNumber, PositionVariable positionBinding, Expression action)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EventIterator
map(Item item)
Map one item to a sequence of pull events.
-
-
-
Constructor Detail
-
EventMappingAction
public EventMappingAction(XPathContext context, int slotNumber, PositionVariable positionBinding, Expression action)
-
-
Method Detail
-
map
public EventIterator map(Item item) throws XPathException
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
-
-