T - the type of delegate node this factory operates onGenerateWrapper and implement
InstrumentableNode.createWrapper(ProbeNode) instead.@Deprecated public interface InstrumentableFactory<T extends Node>
Instrumentable guest language node (called the delegate) and its
parent for the purpose of interposing on execution events at the delegate and reporting those
events to the instrumentation framework.
Wrapper implementations can be generated automatically: see the Instrumentable
annotation.
| Modifier and Type | Method and Description |
|---|---|
InstrumentableFactory.WrapperNode |
createWrapper(T node,
ProbeNode probe)
Deprecated.
Returns a new, never adopted, unshared
wrapper node implementation for a
particular Instrumentable node of the guest language AST called its delegate
. |
InstrumentableFactory.WrapperNode createWrapper(T node, ProbeNode probe)
wrapper node implementation for a
particular Instrumentable node of the guest language AST called its delegate
. The returned wrapper implementation must extend the same type that is annotated with
Instrumentable.
A wrapper forwards the following events concerning the delegate to the given probe for propagation through the instrumentation framework, e.g. to
event listeners bound to this guest language program
location:
null) value;node - the Instrumentable delegate to be adopted by the wrapperprobe - the probe node to be adopted and sent execution events by the
wrapperwrapper implementation