|
||||||||||
| 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,
String name)
Creates a instrumented version of the given class if possible. |
void |
instrument(InputStream input,
OutputStream output,
String name)
Creates a instrumented version of the given class file. |
byte[] |
instrument(InputStream input,
String name)
Creates a instrumented version of the given class if possible. |
int |
instrumentAll(InputStream input,
OutputStream output,
String name)
Creates a instrumented version of the given resource depending on its type. |
void |
setRemoveSignatures(boolean flag)
Determines whether signatures should be removed from JAR files. |
| 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 classes| Method Detail |
|---|
public void setRemoveSignatures(boolean flag)
true.
flag - true if signatures should be removed
public byte[] instrument(byte[] buffer,
String name)
throws IOException
buffer - definition of the classname - a name used for exception messages
IOException - if the class can't be instrumented
public byte[] instrument(InputStream input,
String name)
throws IOException
InputStream is not closed by this method.
input - stream to read class definition fromname - a name used for exception messages
IOException - if reading data from the stream fails or the class can't be
instrumented
public void instrument(InputStream input,
OutputStream output,
String name)
throws IOException
InputStream and OutputStream instances are not closed by
this method.
input - stream to read class definition fromoutput - stream to write the instrumented version of the class toname - a name used for exception messages
IOException - if reading data from the stream fails or the class can't be
instrumented
public int instrumentAll(InputStream input,
OutputStream output,
String name)
throws IOException
InputStream and OutputStream instances are not closed by
this method.
input - stream to contents fromoutput - stream to write the instrumented version of the contentsname - a name used for exception messages
IOException - if reading data from the stream fails or a class can't be
instrumented
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||