Package net.sf.saxon.trace
Class ModeTraceListener
java.lang.Object
net.sf.saxon.trace.AbstractTraceListener
net.sf.saxon.trace.ModeTraceListener
- All Implemented Interfaces:
EventListener,TraceListener,TraceListener2
A trace listener for XSLT that only handles invocation of template rules; enabled
using saxon:trace="yes" on the xsl:mode declaration
-
Field Summary
Fields inherited from class net.sf.saxon.trace.AbstractTraceListener
indent, out -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidendCurrentItem(Item item) Called after a node of the source tree got processedvoidenter(InstructionInfo info, XPathContext context) Called when an instruction in the stylesheet gets processedprotected StringGenerate attributes to be included in the opening trace elementvoidleave(InstructionInfo info) Called after an instruction of the stylesheet got processedvoidstartCurrentItem(Item item) Called when an item becomes the context itemprotected Stringtag(int construct) Methods inherited from class net.sf.saxon.trace.AbstractTraceListener
close, endRuleSearch, escape, getCodeInjector, getOutputDestination, level, open, setLevelOfDetail, setOutputDestination, spaces, startRuleSearch
-
Constructor Details
-
ModeTraceListener
public ModeTraceListener()
-
-
Method Details
-
getOpeningAttributes
Generate attributes to be included in the opening trace element- Specified by:
getOpeningAttributesin classAbstractTraceListener
-
startCurrentItem
Description copied from class:AbstractTraceListenerCalled when an item becomes the context item- Specified by:
startCurrentItemin interfaceTraceListener- Overrides:
startCurrentItemin classAbstractTraceListener- Parameters:
item- the new current item. Item objects are not mutable; it is safe to retain a reference to the Item for later use.
-
endCurrentItem
Description copied from class:AbstractTraceListenerCalled after a node of the source tree got processed- Specified by:
endCurrentItemin interfaceTraceListener- Overrides:
endCurrentItemin classAbstractTraceListener- Parameters:
item- the item that was current, whose processing is now complete. This will represent the same underlying item as the corresponding startCurrentItem() call, though it will not necessarily be the same actual object.
-
enter
Called when an instruction in the stylesheet gets processed- Specified by:
enterin interfaceTraceListener- Overrides:
enterin classAbstractTraceListener- Parameters:
info- gives information about the instruction being executed, and about the context in which it is executed. This object is mutable, so if information from the InstructionInfo is to be retained, it must be copied.
-
leave
Description copied from class:AbstractTraceListenerCalled after an instruction of the stylesheet got processed- Specified by:
leavein interfaceTraceListener- Overrides:
leavein classAbstractTraceListener- Parameters:
info- gives the same information that was supplied to the enter method, though it is not necessarily the same object. Note that the line number of the instruction is that of the start tag in the source stylesheet, not the line number of the end tag.
-
tag
- Specified by:
tagin classAbstractTraceListener
-