|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IRuntime
This interface represents a particular mechanism to collect execution information in the target VM at runtime.
Method Summary | |
---|---|
void |
collect(IExecutionDataVisitor visitor,
boolean reset)
Collects the current execution data and writes it to the given IExecutionDataVisitor object. |
int |
generateDataAccessor(long classid,
GeneratorAdapter gen)
This method generates the byte code required to obtain the coverage data structure for the class with the given id. |
void |
registerClass(long classid,
String name,
boolean[] data)
Before a particular class gets loaded, its execution data structure must be registered with the runtime through this method. |
void |
reset()
Resets all coverage information. |
void |
shutdown()
Allows the coverage runtime to cleanup internals. |
void |
startup()
Starts the coverage runtime. |
Method Detail |
---|
int generateDataAccessor(long classid, GeneratorAdapter gen)
byte[][]
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 classgen
- code output
void startup()
void shutdown()
void registerClass(long classid, String name, boolean[] data)
startup()
and shutdown()
.
classid
- identifier of the classname
- VM name of the classdata
- execution data structure for this classvoid collect(IExecutionDataVisitor visitor, boolean reset)
IExecutionDataVisitor
object. This method must only be called
between startup()
and shutdown()
.
visitor
- handler to write coverage data toreset
- if true
the current coverage information is also
clearedvoid reset()
startup()
and shutdown()
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |