Package org.apache.xalan.trace
Class PrintTraceListener
java.lang.Object
org.apache.xalan.trace.PrintTraceListener
- All Implemented Interfaces:
EventListener,TraceListener,TraceListenerEx,TraceListenerEx2,TraceListenerEx3
Implementation of the TraceListener interface that
prints each event to standard out as it occurs.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanSet to true if the listener is to print events that occur as each node is 'executed' in the stylesheet.booleanSet to true if the listener is to print information after each extension event.booleanSet to true if the listener is to print information after each result-tree generation event.booleanSet to true if the listener is to print information after each selection event.booleanThis needs to be set to true if the listener is to print an event whenever a template is invoked. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid_trace(TracerEvent ev) Print information about a TracerEvent.voidPrint information about an extension event.voidPrint information about an extension event.voidPrint information about a Generate event.voidMethod that is called just after a select attribute has been evaluated.voidMethod that is called after an xsl:apply-templates or xsl:for-each selection occurs.voidtrace(TracerEvent ev) Print information about a TracerEvent.voidtraceEnd(TracerEvent ev) Method that is called when the end of a trace event occurs.
-
Field Details
-
m_traceTemplates
public boolean m_traceTemplatesThis needs to be set to true if the listener is to print an event whenever a template is invoked. -
m_traceElements
public boolean m_traceElementsSet to true if the listener is to print events that occur as each node is 'executed' in the stylesheet. -
m_traceGeneration
public boolean m_traceGenerationSet to true if the listener is to print information after each result-tree generation event. -
m_traceSelection
public boolean m_traceSelectionSet to true if the listener is to print information after each selection event. -
m_traceExtension
public boolean m_traceExtensionSet to true if the listener is to print information after each extension event.
-
-
Constructor Details
-
PrintTraceListener
Construct a trace listener.- Parameters:
pw- PrintWriter to use for tracing events
-
-
Method Details
-
_trace
Print information about a TracerEvent.- Parameters:
ev- the trace event.
-
trace
Print information about a TracerEvent.- Specified by:
tracein interfaceTraceListener- Parameters:
ev- the trace event.
-
traceEnd
Method that is called when the end of a trace event occurs. The method is blocking. It must return before processing continues.- Specified by:
traceEndin interfaceTraceListenerEx2- Parameters:
ev- the trace event.
-
selected
Method that is called just after a select attribute has been evaluated.- Specified by:
selectedin interfaceTraceListener- Parameters:
ev- the generate event.- Throws:
TransformerException
-
selectEnd
Method that is called after an xsl:apply-templates or xsl:for-each selection occurs.- Specified by:
selectEndin interfaceTraceListenerEx- Parameters:
ev- the generate event.- Throws:
TransformerException
-
generated
Print information about a Generate event.- Specified by:
generatedin interfaceTraceListener- Parameters:
ev- the trace event.
-
extension
Print information about an extension event.- Specified by:
extensionin interfaceTraceListenerEx3- Parameters:
ev- the extension event to print information about
-
extensionEnd
Print information about an extension event.- Specified by:
extensionEndin interfaceTraceListenerEx3- Parameters:
ev- the extension event to print information about
-