IExecutionDataAccessorGenerator
public class OfflineInstrumentationAccessGenerator extends java.lang.Object implements IExecutionDataAccessorGenerator
IExecutionDataAccessorGenerator
generate a
direct dependency to the JaCoCo runtime agent to initialize the runtime and
obtain probe arrays. This generator is designed for offline instrumentation
only.Constructor | Description |
---|---|
OfflineInstrumentationAccessGenerator() |
Creates a new instance for offline instrumentation.
|
Modifier and Type | Method | Description |
---|---|---|
int |
generateDataAccessor(long classid,
java.lang.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.
|
public OfflineInstrumentationAccessGenerator()
public int generateDataAccessor(long classid, java.lang.String classname, int probecount, org.objectweb.asm.MethodVisitor mv)
IExecutionDataAccessorGenerator
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. The
generated code must not use or allocate local variables.generateDataAccessor
in interface IExecutionDataAccessorGenerator
classid
- identifier of the classclassname
- VM class nameprobecount
- probe count for this classmv
- code outputCopyright © 2018. All rights reserved.