T - the type of delegate node this factory operates onpublic 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 | Interface and Description |
|---|---|
static interface |
InstrumentableFactory.WrapperNode
Nodes that the instrumentation framework inserts into guest language ASTs (between
Instrumentable guest language nodes and their parents) for the purpose of interposing
on execution events and reporting them via the instrumentation framework. |
| Modifier and Type | Method and Description |
|---|---|
InstrumentableFactory.WrapperNode |
createWrapper(T node,
ProbeNode probe)
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