Package com.saxonica.ee.stream.adjunct
Class TraceExprAdjunct
java.lang.Object
com.saxonica.ee.stream.adjunct.StreamingAdjunct
com.saxonica.ee.stream.adjunct.TransmissionAdjunct
com.saxonica.ee.stream.adjunct.TraceExprAdjunct
- All Implemented Interfaces:
- FeedMaker
Implement streaming of the trace instruction injected into the code when compiled with tracing enabled.
 Not to be confused with the fn:trace function, though the implementation is similar.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetFeedMaker(int arg) Get a FeedMaker, a factory class that creates a Feed to evaluate this expression in streaming mode.makeItemFeed(WatchManager watchManager, ItemFeed out, XPathContext context) Methods inherited from class com.saxonica.ee.stream.adjunct.TransmissionAdjunctgetWatchMaker, makeTransmissionFlowMethods inherited from class com.saxonica.ee.stream.adjunct.StreamingAdjunctcomputeStreamability, emptyAdjunctMap, findConsumingArg, genId, getConfiguration, getDefaultFeedMaker, getExpression, makeStreamingAdjunct, setConfiguration, setExpression, toStreamingPattern
- 
Constructor Details- 
TraceExprAdjunctpublic TraceExprAdjunct()
 
- 
- 
Method Details- 
getFeedMakerDescription copied from class:StreamingAdjunctGet a FeedMaker, a factory class that creates a Feed to evaluate this expression in streaming mode. In many cases the StreamingAdjunct is itself a FeedMaker, in which case it returns itself. But where an expression has several operands, it will typically create different feeds depending on which argument is the streamed input, and in such cases the individual StreamingAdjunct makes the decision which feed to use, by returning an appropriate FeedMaker.- Overrides:
- getFeedMakerin class- StreamingAdjunct
- Parameters:
- arg- 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.operands()
- Returns:
- a FeedMaker to evaluate the expression, or null if it is not streamable with respect to the specificed argument.
- Throws:
- XPathException- in the event of a failure
 
- 
makeItemFeedpublic ItemFeed makeItemFeed(WatchManager watchManager, ItemFeed out, XPathContext context) throws XPathException - Specified by:
- makeItemFeedin interface- FeedMaker
- Throws:
- XPathException
 
 
-