Package net.sf.saxon.lib
Interface TraceListener2
- All Superinterfaces:
EventListener,TraceListener
- All Known Implementing Classes:
AbstractTraceListener,ModeTraceListener,XQueryTraceListener,XSLTTraceListener
This interface defines methods that are called by Saxon during the execution of
a stylesheet, if tracing is switched on. Tracing can be switched on by nominating
an implementation of this class using the TRACE_LISTENER feature of the TransformerFactory,
or using the addTraceListener() method of the Controller, which is Saxon's implementation
of the JAXP javax.xml.transform.Transformer interface.
- Since:
- 9.7. The TraceListener2 interface extends the TraceListener interface, which is retained for compatibility.
-
Method Summary
Modifier and TypeMethodDescriptionvoidendRuleSearch(Object rule, Mode mode, Item item) Method called when a rule search has completed.voidMethod called when a search for a template rule is about to startMethods inherited from interface net.sf.saxon.lib.TraceListener
close, endCurrentItem, enter, leave, open, setOutputDestination, startCurrentItem
-
Method Details
-
startRuleSearch
void startRuleSearch()Method called when a search for a template rule is about to start -
endRuleSearch
Method called when a rule search has completed.- Parameters:
rule- the rule (or possible built-in ruleset) that has been selectedmode- the mode in operationitem- the item that was checked against
-