com.saxonica.stream.adjunct
Class ApplyTemplatesAdjunct

java.lang.Object
  extended by com.saxonica.stream.adjunct.StreamingAdjunct
      extended by com.saxonica.stream.adjunct.ApplyTemplatesAdjunct

public class ApplyTemplatesAdjunct
extends StreamingAdjunct

Compile an apply-templates expression/instruction to Java source code. Used only for XSLT streaming capability.


Constructor Summary
ApplyTemplatesAdjunct()
           
 
Method Summary
protected static void checkParams(WithParam[] params)
          Test whether template parameters satisfy the conditions for streamability
 WatchMaker getWatchMaker(Expression expression, List<String> reasonsForFailure)
          Get a WatchMaker, a factory class that creates a Watch to evaluate this expression in streaming mode.
 
Methods inherited from class com.saxonica.stream.adjunct.StreamingAdjunct
getConfiguration, getFeedMaker, makeStreamingAdjunct, setConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplyTemplatesAdjunct

public ApplyTemplatesAdjunct()
Method Detail

getWatchMaker

public WatchMaker getWatchMaker(Expression expression,
                                List<String> reasonsForFailure)
                         throws XPathException
Description copied from class: StreamingAdjunct
Get a WatchMaker, a factory class that creates a Watch to evaluate this expression in streaming mode. This method will only be called if the getImplementationMethod() method of the expression includes the value Expression.WATCH_METHOD

Overrides:
getWatchMaker in class StreamingAdjunct
Parameters:
expression - the expression to be evaluated in streaming mode
reasonsForFailure - if non-null, this is a list supplied by the caller which will be populated by the callee with one or more messages indicating why it was not possible to allocate a WatchMaker. Normally if the list is non-empty on return, the return value from the method will be null.
Returns:
a Watchmaker to evaluate the expression, or null if it is not streamable with respect to the specificed argument.
Throws:
XPathException

checkParams

protected static void checkParams(WithParam[] params)
                           throws XPathException
Test whether template parameters satisfy the conditions for streamability

Parameters:
params - the parameters to be checked
Throws:
XPathException - if the streamability conditions are not satisfied


Copyright (c) 2004-2010 Saxonica Limited. All rights reserved.