public class URLStreamHandlerRuntime extends AbstractRuntime
IRuntime implementation registers a special
URLStreamHandler to process coverage data. The handler is not
actually used for opening a URL, but to get access to the runtime object.data| Constructor and Description |
|---|
URLStreamHandlerRuntime()
Creates a new runtime.
|
| Modifier and Type | Method and Description |
|---|---|
int |
generateDataAccessor(long classid,
String classname,
int probecount,
org.objectweb.asm.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(RuntimeData data)
Subclasses must call this method when overwriting it.
|
createRandomIdpublic void startup(RuntimeData data) throws Exception
AbstractRuntimestartup in interface IRuntimestartup in class AbstractRuntimedata - the execution data for this runtimeException - any internal problem during startuppublic void shutdown()
IRuntimepublic int generateDataAccessor(long classid,
String classname,
int probecount,
org.objectweb.asm.MethodVisitor mv)
IExecutionDataAccessorGeneratorboolean[] 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. The
generated code must not use or allocate local variables.classid - identifier of the classclassname - VM class nameprobecount - probe count for this classmv - code outputCopyright © 2009-2015 Mountainminds GmbH & Co. KG. All Rights Reserved.