|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jacoco.core.runtime.AbstractRuntime
org.jacoco.core.runtime.LoggerRuntime
public class LoggerRuntime
This IRuntime
implementation uses the Java logging API to report
coverage data. The advantage is, that the instrumented classes do not get
dependencies to other classes than the JRE library itself.
The implementation uses a dedicated log channel. Instrumented classes call
Logger.log(Level, String, Object[])
with the class identifier in the
first slot of the parameter array. The runtime implements a Handler
for this channel that puts the probe data structure into the first slot of
the parameter array.
Field Summary |
---|
Fields inherited from class org.jacoco.core.runtime.AbstractRuntime |
---|
store |
Constructor Summary | |
---|---|
LoggerRuntime()
Creates a new runtime. |
Method Summary | |
---|---|
int |
generateDataAccessor(long classid,
MethodVisitor mv)
This method generates the byte code required to obtain the coverage data structure for the class with the given id. |
void |
shutdown()
Allows the coverage runtime to cleanup internals. |
void |
startup()
Starts the coverage runtime. |
Methods inherited from class org.jacoco.core.runtime.AbstractRuntime |
---|
collect, registerClass, reset |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LoggerRuntime()
Method Detail |
---|
public int generateDataAccessor(long classid, MethodVisitor mv)
IRuntime
boolean[]
instance to the
operand stack. Except this result object the generated code must not make
any assumptions about the structure of the embedding method or class.
classid
- identifier of the classmv
- code output
public void startup()
IRuntime
public void shutdown()
IRuntime
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |