Class ClassProbesVisitor
java.lang.Object
org.objectweb.asm.ClassVisitor
org.jacoco.core.internal.flow.ClassProbesVisitor
- Direct Known Subclasses:
ClassAnalyzer, ClassInstrumenter, ProbeCounter
public abstract class ClassProbesVisitor
extends org.objectweb.asm.ClassVisitor
A
ClassVisitor with additional methods to get probe insertion
information for each method-
Field Summary
Fields inherited from class org.objectweb.asm.ClassVisitor
api, cv -
Constructor Summary
ConstructorsConstructorDescriptionNew visitor instance without delegate visitor.ClassProbesVisitor(org.objectweb.asm.ClassVisitor cv) New visitor instance that delegates to the given visitor. -
Method Summary
Modifier and TypeMethodDescriptionabstract MethodProbesVisitorvisitMethod(int access, String name, String desc, String signature, String[] exceptions) When visiting a method we need aMethodProbesVisitorto handle the probes of that method.abstract voidvisitTotalProbeCount(int count) Reports the total number of encountered probes.Methods inherited from class org.objectweb.asm.ClassVisitor
getDelegate, visit, visitAnnotation, visitAttribute, visitEnd, visitField, visitInnerClass, visitModule, visitNestHost, visitNestMember, visitOuterClass, visitPermittedSubclass, visitRecordComponent, visitSource, visitTypeAnnotation
-
Constructor Details
-
ClassProbesVisitor
public ClassProbesVisitor()New visitor instance without delegate visitor. -
ClassProbesVisitor
public ClassProbesVisitor(org.objectweb.asm.ClassVisitor cv) New visitor instance that delegates to the given visitor.- Parameters:
cv- optional next visitor in chain
-
-
Method Details
-
visitMethod
public abstract MethodProbesVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) When visiting a method we need aMethodProbesVisitorto handle the probes of that method.- Overrides:
visitMethodin classorg.objectweb.asm.ClassVisitor
-
visitTotalProbeCount
public abstract void visitTotalProbeCount(int count) Reports the total number of encountered probes. This method is called just beforeClassVisitor.visitEnd()- Parameters:
count- total number of probes
-