protected static class ForExpression.MappingAction extends Object implements MappingFunction, ItemMappingFunction, StatefulMappingFunction
Constructor and Description |
---|
MappingAction(XPathContext context,
int slotNumber,
int pslot,
Expression action) |
Modifier and Type | Method and Description |
---|---|
StatefulMappingFunction |
getAnother()
Return a clone of this MappingFunction, with the state reset to its state at the beginning
of the underlying iteration
|
SequenceIterator |
map(Item item)
Map one item to a sequence.
|
Item |
mapItem(Item item)
Map one item to another item.
|
public MappingAction(XPathContext context, int slotNumber, int pslot, Expression action)
public SequenceIterator map(Item item) throws XPathException
MappingFunction
map
in interface MappingFunction
item
- The item to be mapped.XPathException
public Item mapItem(Item item) throws XPathException
ItemMappingFunction
mapItem
in interface ItemMappingFunction
item
- The input item to be mapped.XPathException
public StatefulMappingFunction getAnother()
StatefulMappingFunction
getAnother
in interface StatefulMappingFunction