|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jacoco.core.instr.Instrumenter
public class Instrumenter
Several APIs to instrument Java class definitions for coverage tracing.
Constructor Summary | |
---|---|
Instrumenter(IExecutionDataAccessorGenerator runtime)
Creates a new instance based on the given runtime. |
Method Summary | |
---|---|
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. |
void |
instrument(InputStream input,
OutputStream output)
Creates a instrumented version of the given class file. |
int |
instrumentAll(InputStream input,
OutputStream output)
Creates a instrumented version of the given resource depending on its type. |
int |
instrumentArchive(InputStream input,
OutputStream output)
Creates a instrumented version of the given archive, i.e. with all class files contained in this archive instrumented. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Instrumenter(IExecutionDataAccessorGenerator runtime)
runtime
- runtime used by the instrumented classesMethod Detail |
---|
public byte[] instrument(org.objectweb.asm.ClassReader reader)
reader
- definition of the class as ASM reader
public byte[] instrument(byte[] buffer)
buffer
- definition of the class
public byte[] instrument(InputStream input) throws IOException
input
- stream to read class definition from
IOException
- if reading data from the stream failspublic void instrument(InputStream input, OutputStream output) throws IOException
input
- stream to read class definition fromoutput
- stream to write the instrumented version of the class to
IOException
- if reading data from the stream failspublic int instrumentArchive(InputStream input, OutputStream output) throws IOException
input
- stream to read archive fromoutput
- stream to write the instrumented version of the class to
IOException
- if reading data from the stream failspublic int instrumentAll(InputStream input, OutputStream output) throws IOException
input
- stream to contents fromoutput
- stream to write the instrumented version of the contents
IOException
- if reading data from the stream fails
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |