org.jacoco.core.internal.instr
Class ClassInstrumenter
java.lang.Object
org.objectweb.asm.ClassAdapter
org.jacoco.core.internal.instr.ClassInstrumenter
- All Implemented Interfaces:
- IClassProbesVisitor, org.objectweb.asm.ClassVisitor
public class ClassInstrumenter
- extends org.objectweb.asm.ClassAdapter
- implements IClassProbesVisitor
Adapter that instruments a class for coverage tracing.
| Fields inherited from class org.objectweb.asm.ClassAdapter |
cv |
|
Method Summary |
void |
visit(int version,
int access,
String name,
String signature,
String superName,
String[] interfaces)
|
void |
visitEnd()
|
org.objectweb.asm.FieldVisitor |
visitField(int access,
String name,
String desc,
String signature,
Object value)
|
IMethodProbesVisitor |
visitMethod(int access,
String name,
String desc,
String signature,
String[] exceptions)
|
void |
visitTotalProbeCount(int count)
Reports the total number of encountered probes. |
| Methods inherited from class org.objectweb.asm.ClassAdapter |
visitAnnotation, visitAttribute, visitInnerClass, visitOuterClass, visitSource |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.objectweb.asm.ClassVisitor |
visitAnnotation, visitAttribute, visitInnerClass, visitOuterClass, visitSource |
ClassInstrumenter
public ClassInstrumenter(long id,
IExecutionDataAccessorGenerator accessorGenerator,
org.objectweb.asm.ClassVisitor cv)
- Emits a instrumented version of this class to the given class visitor.
- Parameters:
id - unique identifier given to this classaccessorGenerator - this generator will be used for instrumentationcv - next delegate in the visitor chain will receive the
instrumented class
visit
public void visit(int version,
int access,
String name,
String signature,
String superName,
String[] interfaces)
- Specified by:
visit in interface org.objectweb.asm.ClassVisitor- Overrides:
visit in class org.objectweb.asm.ClassAdapter
visitField
public org.objectweb.asm.FieldVisitor visitField(int access,
String name,
String desc,
String signature,
Object value)
- Specified by:
visitField in interface org.objectweb.asm.ClassVisitor- Overrides:
visitField in class org.objectweb.asm.ClassAdapter
visitMethod
public IMethodProbesVisitor visitMethod(int access,
String name,
String desc,
String signature,
String[] exceptions)
- Specified by:
visitMethod in interface IClassProbesVisitor- Specified by:
visitMethod in interface org.objectweb.asm.ClassVisitor- Overrides:
visitMethod in class org.objectweb.asm.ClassAdapter
visitTotalProbeCount
public void visitTotalProbeCount(int count)
- Description copied from interface:
IClassProbesVisitor
- Reports the total number of encountered probes. For classes this method
is called just before
ClassVisitor.visitEnd(). For interfaces
this method is called before the first method (the static initializer) is
emitted.
- Specified by:
visitTotalProbeCount in interface IClassProbesVisitor
- Parameters:
count - total number of probes
visitEnd
public void visitEnd()
- Specified by:
visitEnd in interface org.objectweb.asm.ClassVisitor- Overrides:
visitEnd in class org.objectweb.asm.ClassAdapter
Copyright © 2009-2012 Mountainminds GmbH & Co. KG. All Rights Reserved.