Class ClassProbesAdapter
java.lang.Object
org.objectweb.asm.ClassVisitor
org.jacoco.core.internal.flow.ClassProbesAdapter
- All Implemented Interfaces:
IProbeIdGenerator
A
ClassVisitor that calculates probes for every
method.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate final ClassProbesVisitorprivate static final MethodProbesVisitorprivate Stringprivate final booleanFields inherited from class org.objectweb.asm.ClassVisitor
api -
Constructor Summary
ConstructorsConstructorDescriptionClassProbesAdapter(ClassProbesVisitor cv, boolean trackFrames) Creates a new adapter that delegates to the given visitor. -
Method Summary
Modifier and TypeMethodDescriptionintnextId()Returns the next unique probe id.voidvisit(int version, int access, String name, String signature, String superName, String[] interfaces) voidvisitEnd()final org.objectweb.asm.MethodVisitorvisitMethod(int access, String name, String desc, String signature, String[] exceptions) Methods inherited from class org.objectweb.asm.ClassVisitor
getDelegate, visitAnnotation, visitAttribute, visitField, visitInnerClass, visitModule, visitNestHost, visitNestMember, visitOuterClass, visitPermittedSubclass, visitRecordComponent, visitSource, visitTypeAnnotation
-
Field Details
-
EMPTY_METHOD_PROBES_VISITOR
-
cv
-
trackFrames
private final boolean trackFrames -
counter
private int counter -
name
-
-
Constructor Details
-
ClassProbesAdapter
Creates a new adapter that delegates to the given visitor.- Parameters:
cv- instance to delegate totrackFrames- iftruestackmap frames are tracked and provided
-
-
Method Details
-
visit
-
visitMethod
-
visitEnd
public void visitEnd()- Overrides:
visitEndin classorg.objectweb.asm.ClassVisitor
-
nextId
public int nextId()Description copied from interface:IProbeIdGeneratorReturns the next unique probe id.- Specified by:
nextIdin interfaceIProbeIdGenerator- Returns:
- unique probe id
-