Package net.sf.saxon.expr
Class ForExpression.MappingAction
java.lang.Object
net.sf.saxon.expr.ForExpression.MappingAction
- All Implemented Interfaces:
ItemMappingFunction
,MappingFunction
,StatefulMappingFunction
- Enclosing class:
ForExpression
public static class ForExpression.MappingAction
extends Object
implements MappingFunction, ItemMappingFunction, StatefulMappingFunction
The MappingAction represents the action to be taken for each item in the
source sequence. It acts as the MappingFunction for the mapping iterator.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMappingAction
(XPathContext context, int slotNumber, int pslot, Expression action) -
Method Summary
Modifier and TypeMethodDescriptionReturn a clone of this MappingFunction, with the state reset to its state at the beginning of the underlying iterationMap one item to a sequence.Map one item to another item.
-
Field Details
-
context
-
-
Constructor Details
-
MappingAction
public MappingAction() -
MappingAction
-
-
Method Details
-
map
Description copied from interface:MappingFunction
Map one item to a sequence.- Specified by:
map
in interfaceMappingFunction
- Parameters:
item
- The item to be mapped.- Returns:
- one of the following: (a) a SequenceIterator over the sequence of items that the supplied input item maps to, or (b) null if it maps to an empty sequence.
- Throws:
XPathException
- if a dynamic error occurs
-
mapItem
Description copied from interface:ItemMappingFunction
Map one item to another item.- Specified by:
mapItem
in interfaceItemMappingFunction
- Parameters:
item
- The input item to be mapped.- Returns:
- either the output item, or null.
- Throws:
XPathException
- if a dynamic error occurs
-
getAnother
Description copied from interface:StatefulMappingFunction
Return a clone of this MappingFunction, with the state reset to its state at the beginning of the underlying iteration- Specified by:
getAnother
in interfaceStatefulMappingFunction
- Returns:
- a clone of this MappingFunction
-