public class TraceManager extends Object
Constructor and Description |
---|
TraceManager(TransformerImpl transformer)
Constructor for the trace manager.
|
Modifier and Type | Method and Description |
---|---|
void |
addTraceListener(TraceListener tl)
Add a trace listener for the purposes of debugging and diagnosis.
|
void |
fireExtensionEndEvent(ExtensionEvent ee)
Fire an end extension event.
|
void |
fireExtensionEndEvent(Method method,
Object instance,
Object[] arguments)
Fire an end extension event.
|
void |
fireExtensionEvent(ExtensionEvent ee)
Fire an end extension event.
|
void |
fireExtensionEvent(Method method,
Object instance,
Object[] arguments)
Fire an end extension event.
|
void |
fireGenerateEvent(GenerateEvent te)
Fire a generate event.
|
void |
fireSelectedEndEvent(EndSelectionEvent se)
Fire a selection event.
|
void |
fireSelectedEndEvent(int sourceNode,
ElemTemplateElement styleNode,
String attributeName,
XPath xpath,
XObject selection)
Fire a selection event.
|
void |
fireSelectedEvent(int sourceNode,
ElemTemplateElement styleNode,
String attributeName,
XPath xpath,
XObject selection)
Fire a selection event.
|
void |
fireSelectedEvent(SelectionEvent se)
Fire a selection event.
|
void |
fireTraceEndEvent(ElemTemplateElement styleNode)
Fire a end trace event, after all children of an element have been
executed.
|
void |
fireTraceEndEvent(TracerEvent te)
Fire a trace event.
|
void |
fireTraceEvent(ElemTemplateElement styleNode)
Fire a trace event.
|
void |
fireTraceEvent(TracerEvent te)
Fire a trace event.
|
boolean |
hasTraceListeners()
Tell if trace listeners are present.
|
void |
removeTraceListener(TraceListener tl)
Remove a trace listener.
|
public TraceManager(TransformerImpl transformer)
transformer
- a non-null instance of a transformerpublic void addTraceListener(TraceListener tl) throws TooManyListenersException
tl
- Trace listener to be added.TooManyListenersException
public void removeTraceListener(TraceListener tl)
tl
- Trace listener to be removed.public void fireGenerateEvent(GenerateEvent te)
te
- Generate Event to firepublic boolean hasTraceListeners()
public void fireTraceEvent(ElemTemplateElement styleNode)
styleNode
- Stylesheet template nodepublic void fireTraceEndEvent(ElemTemplateElement styleNode)
styleNode
- Stylesheet template nodepublic void fireTraceEndEvent(TracerEvent te)
te
- Trace event to firepublic void fireTraceEvent(TracerEvent te)
te
- Trace event to firepublic void fireSelectedEvent(int sourceNode, ElemTemplateElement styleNode, String attributeName, XPath xpath, XObject selection) throws TransformerException
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.TransformerException
public void fireSelectedEndEvent(int sourceNode, ElemTemplateElement styleNode, String attributeName, XPath xpath, XObject selection) throws TransformerException
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.TransformerException
public void fireSelectedEndEvent(EndSelectionEvent se) throws TransformerException
se
- Selection event to fireTransformerException
public void fireSelectedEvent(SelectionEvent se) throws TransformerException
se
- Selection event to fireTransformerException
public void fireExtensionEndEvent(Method method, Object instance, Object[] arguments)
method
- The java method about to be executedinstance
- The instance the method will be executed onarguments
- Parameters passed to the method.Method.invoke(java.lang.Object, java.lang.Object...)
public void fireExtensionEvent(Method method, Object instance, Object[] arguments)
method
- The java method about to be executedinstance
- The instance the method will be executed onarguments
- Parameters passed to the method.Method.invoke(java.lang.Object, java.lang.Object...)
public void fireExtensionEndEvent(ExtensionEvent ee)
ee
- the ExtensionEvent to fireMethod.invoke(java.lang.Object, java.lang.Object...)
public void fireExtensionEvent(ExtensionEvent ee)
ee
- the ExtensionEvent to fireMethod.invoke(java.lang.Object, java.lang.Object...)
Copyright © 2019 JBoss by Red Hat. All rights reserved.