com.saxonica.stream.action
Class StackMappingAction

java.lang.Object
  extended by com.saxonica.stream.action.StackMappingAction
All Implemented Interfaces:
StreamingAction

public class StackMappingAction
extends Object
implements StreamingAction

A streaming action that takes the iterator on the top of the operation stack and replaces it with an iterator over the result of applying a mapping function to the sequence


Constructor Summary
StackMappingAction(MappingExpression expr)
           
 
Method Summary
 void explain(ExpressionPresenter presenter)
          Explain the action
 void process(Stack<XPathContext> contextStack, Stack state)
          Perform the action
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StackMappingAction

public StackMappingAction(MappingExpression expr)
Method Detail

process

public void process(Stack<XPathContext> contextStack,
                    Stack state)
             throws XPathException
Perform the action

Specified by:
process in interface StreamingAction
Parameters:
contextStack -
state - @throws net.sf.saxon.trans.XPathException
Throws:
XPathException

explain

public void explain(ExpressionPresenter presenter)
Explain the action

Specified by:
explain in interface StreamingAction
Parameters:
presenter - The ExpressionPresenter (destination for the explanation


Copyright (c) Saxonica Limited. All rights reserved.