Package net.sf.saxon.trace
Class XQueryTraceListener
- java.lang.Object
-
- net.sf.saxon.trace.AbstractTraceListener
-
- net.sf.saxon.trace.XQueryTraceListener
-
- All Implemented Interfaces:
EventListener,TraceListener,TraceListener2
public class XQueryTraceListener extends AbstractTraceListener
A Simple trace listener for XQuery that writes messages (by default) to System.err
-
-
Field Summary
-
Fields inherited from class net.sf.saxon.trace.AbstractTraceListener
indent, out
-
-
Constructor Summary
Constructors Constructor Description XQueryTraceListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidendRuleSearch(Object rule, Mode mode, Item item)Called at the end of a rule searchprotected StringgetOpeningAttributes()Generate attributes to be included in the opening trace elementvoidstartRuleSearch()Called at the start of a rule searchprotected Stringtag(int construct)Get the trace element tagname to be used for a particular construct.-
Methods inherited from class net.sf.saxon.trace.AbstractTraceListener
close, endCurrentItem, enter, escape, getCodeInjector, getOutputDestination, leave, level, open, setLevelOfDetail, setOutputDestination, spaces, startCurrentItem
-
-
-
-
Method Detail
-
getOpeningAttributes
protected String getOpeningAttributes()
Generate attributes to be included in the opening trace element- Specified by:
getOpeningAttributesin classAbstractTraceListener
-
tag
protected String tag(int construct)
Get the trace element tagname to be used for a particular construct. Return null for trace events that are ignored by this trace listener.- Specified by:
tagin classAbstractTraceListener
-
startRuleSearch
public void startRuleSearch()
Called at the start of a rule search- Specified by:
startRuleSearchin interfaceTraceListener2- Overrides:
startRuleSearchin classAbstractTraceListener
-
endRuleSearch
public void endRuleSearch(Object rule, Mode mode, Item item)
Called at the end of a rule search- Specified by:
endRuleSearchin interfaceTraceListener2- Overrides:
endRuleSearchin classAbstractTraceListener- Parameters:
rule- the rule that has been selectedmode-item-
-
-