|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xalan.trace.PrintTraceListener
public class PrintTraceListener
Implementation of the TraceListener interface that prints each event to standard out as it occurs.
TracerEvent
Field Summary | |
---|---|
(package private) int |
m_indent
|
(package private) java.io.PrintWriter |
m_pw
The print writer where the events should be written. |
boolean |
m_traceElements
Set to true if the listener is to print events that occur as each node is 'executed' in the stylesheet. |
boolean |
m_traceExtension
Set to true if the listener is to print information after each extension event. |
boolean |
m_traceGeneration
Set to true if the listener is to print information after each result-tree generation event. |
boolean |
m_traceSelection
Set to true if the listener is to print information after each selection event. |
boolean |
m_traceTemplates
This needs to be set to true if the listener is to print an event whenever a template is invoked. |
Constructor Summary | |
---|---|
PrintTraceListener(java.io.PrintWriter pw)
Construct a trace listener. |
Method Summary | |
---|---|
void |
_trace(TracerEvent ev)
Print information about a TracerEvent. |
void |
extension(ExtensionEvent ev)
Print information about an extension event. |
void |
extensionEnd(ExtensionEvent ev)
Print information about an extension event. |
void |
generated(GenerateEvent ev)
Print information about a Generate event. |
void |
selected(SelectionEvent ev)
Method that is called just after a select attribute has been evaluated. |
void |
selectEnd(EndSelectionEvent ev)
Method that is called after an xsl:apply-templates or xsl:for-each selection occurs. |
void |
trace(TracerEvent ev)
Print information about a TracerEvent. |
void |
traceEnd(TracerEvent ev)
Method that is called when the end of a trace event occurs. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
java.io.PrintWriter m_pw
public boolean m_traceTemplates
public boolean m_traceElements
public boolean m_traceGeneration
public boolean m_traceSelection
public boolean m_traceExtension
int m_indent
Constructor Detail |
---|
public PrintTraceListener(java.io.PrintWriter pw)
pw
- PrintWriter to use for tracing eventsMethod Detail |
---|
public void _trace(TracerEvent ev)
ev
- the trace event.public void trace(TracerEvent ev)
trace
in interface TraceListener
ev
- the trace event.public void traceEnd(TracerEvent ev)
traceEnd
in interface TraceListenerEx2
ev
- the trace event.public void selected(SelectionEvent ev) throws javax.xml.transform.TransformerException
selected
in interface TraceListener
ev
- the generate event.
javax.xml.transform.TransformerException
public void selectEnd(EndSelectionEvent ev) throws javax.xml.transform.TransformerException
selectEnd
in interface TraceListenerEx
ev
- the generate event.
javax.xml.transform.TransformerException
public void generated(GenerateEvent ev)
generated
in interface TraceListener
ev
- the trace event.public void extension(ExtensionEvent ev)
extension
in interface TraceListenerEx3
ev
- the extension event to print information aboutpublic void extensionEnd(ExtensionEvent ev)
extensionEnd
in interface TraceListenerEx3
ev
- the extension event to print information about
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |