public class ResultDocumentAdjunct extends StreamingAdjunct
| Constructor and Description |
|---|
ResultDocumentAdjunct() |
| Modifier and Type | Method and Description |
|---|---|
FeedMaker |
getFeedMaker(Expression expression,
int arg)
Get a FeedMaker, a factory class that creates a Feed to evaluate this expression
in streaming mode.
|
static void |
processLeft(ResultDocument instr,
Stack<XPathContext> contextStack,
Stack<Object> state)
In streaming mode, process the first half of the instruction (for example, to start a new document or element)
|
static void |
processRight(ResultDocument instr,
Stack<XPathContext> contextStack,
Stack<Object> state)
In streaming mode, process the right half of the instruction (for example, to end a new document or element)
|
getConfiguration, getWatchMaker, makeStreamingAdjunct, setConfigurationpublic FeedMaker getFeedMaker(Expression expression, int arg)
StreamingAdjunctgetFeedMaker in class StreamingAdjunctexpression - the expression to be evaluated in streaming modearg - identifies the argument with respect to which the expression is to be inverted:
usually 0 to indicate the first argument is the value that is streamed. Argument numbering
is the same as the sequence of arguments/operands returned by the method Expression.iterateSubExpressions()public static void processLeft(ResultDocument instr, Stack<XPathContext> contextStack, Stack<Object> state) throws XPathException
instr - the ResultDocument instructioncontextStack - Stack of XPathContext objects. The instruction should use the one at the top of the stack.
Some instructions (such as xsl:result-document) create a new context object and add it to the stack, removing it
in the corresponding processRight() action.state - a stack on which the instruction can save state information during the call on processLeft()XPathException - if a dynamic error occurspublic static void processRight(ResultDocument instr, Stack<XPathContext> contextStack, Stack<Object> state) throws XPathException
instr - the ResultDocument instructioncontextStack - the stack of dynamic context objectsstate - a stack on which the instruction can save state information during the call on processLeft()XPathException - if a dynamic error occursCopyright (c) 2004-2013 Saxonica Limited. All rights reserved.