net.sf.saxon.instruct
Interface DivisibleInstruction

All Known Implementing Classes:
Atomizer, AttributeCreator, Comment, ComputedAttribute, ComputedElement, Copy, CopyOf, DocumentInstr, EagerLetExpression, ElementCreator, FixedAttribute, FixedElement, LetExpression, NamespaceConstructor, ParentNodeConstructor, ProcessingInstruction, QuerySimpleContentConstructor, ResultDocument, SimpleContentConstructor, SimpleNodeConstructor, StringFn, ValueOf

public interface DivisibleInstruction

This interface is implemented by instructions that can be executed in streaming mode. The instruction offers two methods, processLeft() which is executed before processing the descendants of the context node, and processRight() which is executed after processing the descendants.


Method Summary
 void processLeft(Stack<XPathContext> contextStack, Stack state)
          In streaming mode, process the first half of the instruction (for example, to start a new document or element)
 void processRight(Stack<XPathContext> contextStack, Stack state)
          In streaming mode, process the right half of the instruction (for example, to end a new document or element)
 

Method Detail

processLeft

void processLeft(Stack<XPathContext> contextStack,
                 Stack state)
                 throws XPathException
In streaming mode, process the first half of the instruction (for example, to start a new document or element)

Parameters:
contextStack - Stack of XPathContext objects. The instruction should use the one at the top of the stack.
state - a stack on which the instruction can save state information during the call on processLeft()
Throws:
XPathException

processRight

void processRight(Stack<XPathContext> contextStack,
                  Stack state)
                  throws XPathException
In streaming mode, process the right half of the instruction (for example, to end a new document or element)

Parameters:
contextStack - Stack of XPathContext objects. The instruction should use the one at the top of the stack.
state - a stack on which the instruction can save state information during the call on processLeft()
Throws:
XPathException


Copyright (c) Saxonica Limited. All rights reserved.