Package org.jacoco.core.internal.flow
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.ClassVisitorAClassVisitorwith additional methods to get probe insertion information for each method
-
-
Constructor Summary
Constructors Constructor Description ClassProbesVisitor()New visitor instance without delegate visitor.ClassProbesVisitor(org.objectweb.asm.ClassVisitor cv)New visitor instance that delegates to the given visitor.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract MethodProbesVisitorvisitMethod(int access, java.lang.String name, java.lang.String desc, java.lang.String signature, java.lang.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.
-
-
-
Method Detail
-
visitMethod
public abstract MethodProbesVisitor visitMethod(int access, java.lang.String name, java.lang.String desc, java.lang.String signature, java.lang.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
-
-