public final class Jython22Instrumenter extends AbstractDCRInstrumenter
ALL_INSTRUMENTATION
Constructor and Description |
---|
Jython22Instrumenter(DCRContext context)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Public description of the
Instrumenter . |
protected boolean |
instrument(Object target,
Recorder recorder,
Test.InstrumentationFilter filter)
Hook for sub-class to implement instrumentation.
|
protected void |
instrumentPublicMethodsByName(Class<?> targetClass,
Object target,
String methodName,
Weaver.TargetSource targetSource,
Recorder recorder,
boolean includeSuperClassMethods) |
protected void |
instrumentPublicMethodsByName(Object target,
String methodName,
Recorder recorder,
boolean includeSuperClassMethods) |
protected void |
transform(Recorder recorder,
org.python.core.PyClass target) |
protected void |
transform(Recorder recorder,
org.python.core.PyFunction target) |
protected void |
transform(Recorder recorder,
org.python.core.PyInstance target) |
protected void |
transform(Recorder recorder,
org.python.core.PyMethod target) |
protected void |
transform(Recorder recorder,
org.python.core.PyProxy target) |
protected void |
transform(Recorder recorder,
org.python.core.PyReflectedConstructor target) |
protected void |
transform(Recorder recorder,
org.python.core.PyReflectedFunction target,
Object instance) |
createInstrumentedProxy, getContext, instrument, instrument
public Jython22Instrumenter(DCRContext context)
context
- The DCR context.public String getDescription()
Instrumenter
.null
for internal Instrumenters
.protected void transform(Recorder recorder, org.python.core.PyInstance target) throws NonInstrumentableTypeException
NonInstrumentableTypeException
protected void transform(Recorder recorder, org.python.core.PyFunction target) throws NonInstrumentableTypeException
NonInstrumentableTypeException
protected void transform(Recorder recorder, org.python.core.PyClass target) throws NonInstrumentableTypeException
NonInstrumentableTypeException
protected void transform(Recorder recorder, org.python.core.PyProxy target) throws NonInstrumentableTypeException
NonInstrumentableTypeException
protected void transform(Recorder recorder, org.python.core.PyMethod target) throws NonInstrumentableTypeException
NonInstrumentableTypeException
protected boolean instrument(Object target, Recorder recorder, Test.InstrumentationFilter filter) throws NonInstrumentableTypeException
AbstractDCRInstrumenter
instrument
in class AbstractDCRInstrumenter
target
- Target object.recorder
- Recorder.filter
- Selects the parts of target
to instrument.true
If this instrumenter successfully processed target
, otherwise false
.NonInstrumentableTypeException
- If the target object is not of an instrumentable type.protected final void transform(Recorder recorder, org.python.core.PyReflectedFunction target, Object instance) throws NonInstrumentableTypeException
NonInstrumentableTypeException
protected final void transform(Recorder recorder, org.python.core.PyReflectedConstructor target) throws NonInstrumentableTypeException
NonInstrumentableTypeException
protected final void instrumentPublicMethodsByName(Object target, String methodName, Recorder recorder, boolean includeSuperClassMethods) throws NonInstrumentableTypeException
NonInstrumentableTypeException
protected final void instrumentPublicMethodsByName(Class<?> targetClass, Object target, String methodName, Weaver.TargetSource targetSource, Recorder recorder, boolean includeSuperClassMethods) throws NonInstrumentableTypeException
NonInstrumentableTypeException
Copyright © 2000-2014. All Rights Reserved.