Package net.sf.saxon.trace
Class XQueryTraceListener
java.lang.Object
net.sf.saxon.lib.StandardDiagnostics
net.sf.saxon.trace.AbstractTraceListener
net.sf.saxon.trace.XQueryTraceListener
- All Implemented Interfaces:
TraceListener
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
detail, indent, out
Fields inherited from class net.sf.saxon.lib.StandardDiagnostics
MAX_MESSAGE_LENGTH, MAX_MESSAGE_LINE_LENGTH, MIN_MESSAGE_LINE_LENGTH, TARGET_MESSAGE_LINE_LENGTH
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
endRuleSearch
(Object rule, Mode mode, Item item) Called at the end of a rule searchprotected String
Generate attributes to be included in the opening trace elementvoid
Called at the start of a rule searchprotected String
Get the trace element tagname to be used for a particular construct.Methods inherited from class net.sf.saxon.trace.AbstractTraceListener
checkpoint, close, endCurrentItem, enter, escape, getLocation, getOutputDestination, isApplicable, leave, level, open, recover, setLevelOfDetail, setOutputDestination, spaces, startCurrentItem
Methods inherited from class net.sf.saxon.lib.StandardDiagnostics
abbreviateLocationURI, abbreviateLocationURIDefault, expandSpecialCharacters, formatListOfOffendingNodes, getInstructionName, getInstructionNameDefault, getLocationMessageText, logStackTrace, showOriginator, wordWrap
-
Constructor Details
-
XQueryTraceListener
public XQueryTraceListener()
-
-
Method Details
-
getOpeningAttributes
Generate attributes to be included in the opening trace element- Overrides:
getOpeningAttributes
in classAbstractTraceListener
-
tag
Get the trace element tagname to be used for a particular construct. Return null for trace events that are ignored by this trace listener.- Overrides:
tag
in classAbstractTraceListener
- Parameters:
info
- trace information
-
startRuleSearch
public void startRuleSearch()Called at the start of a rule search- Specified by:
startRuleSearch
in interfaceTraceListener
- Overrides:
startRuleSearch
in classAbstractTraceListener
-
endRuleSearch
Called at the end of a rule search- Specified by:
endRuleSearch
in interfaceTraceListener
- Overrides:
endRuleSearch
in classAbstractTraceListener
- Parameters:
rule
- the rule that has been selectedmode
- the mode in operationitem
- the item that was checked against
-