public class Instrumenter extends Object
Constructor and Description |
---|
Instrumenter(IExecutionDataAccessorGenerator runtime)
Creates a new instance based on the given runtime.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
instrument(byte[] buffer)
Creates a instrumented version of the given class if possible.
|
byte[] |
instrument(org.objectweb.asm.ClassReader reader)
Creates a instrumented version of the given class if possible.
|
byte[] |
instrument(InputStream input)
Creates a instrumented version of the given class if possible.
|
public Instrumenter(IExecutionDataAccessorGenerator runtime)
runtime
- runtime used by the instrumented classespublic byte[] instrument(org.objectweb.asm.ClassReader reader)
reader
- definition of the class as ASM readernull
public byte[] instrument(byte[] buffer)
buffer
- definition of the classnull
public byte[] instrument(InputStream input) throws IOException
input
- stream to read class definition fromnull
IOException
- if reading data from the stream failsCopyright © 2009-2012 Mountainminds GmbH & Co. KG. All Rights Reserved.