net.sf.saxon.instruct
Interface Instr

All Superinterfaces:
Locatable
All Known Implementing Classes:
ForExpression, IfExpression, Instruction, LetExpression

public interface Instr
extends Locatable

This interface represents the key characteristic of an instruction, namely that it can be processed in "push" mode, writing its results to the current outputter. All XSLT instructions implement this interface, and a few XPath/XQuery expressions implement it as well.


Method Summary
 void process(XPathContext context)
          Process the instruction, without returning any tail calls
 TailCall processLeavingTail(XPathContext context)
          Process the instruction, optionally returning an uncompleted tail call to be invoked by the caller
 
Methods inherited from interface net.sf.saxon.instruct.Locatable
getSourceLocator
 

Method Detail

process

public void process(XPathContext context)
             throws javax.xml.transform.TransformerException
Process the instruction, without returning any tail calls

Parameters:
context - The dynamic context, giving access to the current node, the current variables, etc.
javax.xml.transform.TransformerException

processLeavingTail

public TailCall processLeavingTail(XPathContext context)
                            throws javax.xml.transform.TransformerException
Process the instruction, optionally returning an uncompleted tail call to be invoked by the caller

Parameters:
context - The dynamic context, giving access to the current node, the current variables, etc.
javax.xml.transform.TransformerException