This class manages trace listeners, and acts as an
interface for the tracing functionality in Xalan.
addTraceListener
public void addTraceListener(TraceListener tl)
throws TooManyListenersException
Add a trace listener for the purposes of debugging and diagnosis.
tl
- Trace listener to be added.
fireExtensionEndEvent
public void fireExtensionEndEvent(Method method,
Object instance,
Object[] arguments)
Fire an end extension event.
method
- The java method about to be executedinstance
- The instance the method will be executed onarguments
- Parameters passed to the method.
fireExtensionEndEvent
public void fireExtensionEndEvent(ExtensionEvent ee)
Fire an end extension event.
ee
- the ExtensionEvent to fire
fireExtensionEvent
public void fireExtensionEvent(Method method,
Object instance,
Object[] arguments)
Fire an end extension event.
method
- The java method about to be executedinstance
- The instance the method will be executed onarguments
- Parameters passed to the method.
fireExtensionEvent
public void fireExtensionEvent(ExtensionEvent ee)
Fire an end extension event.
ee
- the ExtensionEvent to fire
fireGenerateEvent
public void fireGenerateEvent(GenerateEvent te)
Fire a generate event.
te
- Generate Event to fire
fireSelectedEndEvent
public void fireSelectedEndEvent(int sourceNode,
ElemTemplateElement styleNode,
String attributeName,
XPath xpath,
XObject selection)
throws TransformerException
Fire a selection event.
sourceNode
- Current source nodestyleNode
- node in the style tree reference for the event.attributeName
- The attribute name from which the selection is made.xpath
- The XPath that executed the selection.selection
- The result of the selection.
fireSelectedEvent
public void fireSelectedEvent(int sourceNode,
ElemTemplateElement styleNode,
String attributeName,
XPath xpath,
XObject selection)
throws TransformerException
Fire a selection event.
sourceNode
- Current source nodestyleNode
- node in the style tree reference for the event.attributeName
- The attribute name from which the selection is made.xpath
- The XPath that executed the selection.selection
- The result of the selection.
fireTraceEndEvent
public void fireTraceEndEvent(ElemTemplateElement styleNode)
Fire a end trace event, after all children of an element have been
executed.
styleNode
- Stylesheet template node
fireTraceEndEvent
public void fireTraceEndEvent(TracerEvent te)
Fire a trace event.
fireTraceEvent
public void fireTraceEvent(ElemTemplateElement styleNode)
Fire a trace event.
styleNode
- Stylesheet template node
fireTraceEvent
public void fireTraceEvent(TracerEvent te)
Fire a trace event.
hasTraceListeners
public boolean hasTraceListeners()
Tell if trace listeners are present.
- True if there are trace listeners
removeTraceListener
public void removeTraceListener(TraceListener tl)
Remove a trace listener.
tl
- Trace listener to be removed.