Class ProbeCounter
java.lang.Object
org.objectweb.asm.ClassVisitor
org.jacoco.core.internal.flow.ClassProbesVisitor
org.jacoco.core.internal.instr.ProbeCounter
Internal class to remember the total number of probes required for a class.
-
Field Summary
FieldsFields inherited from class org.objectweb.asm.ClassVisitor
api, cv -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) intgetCount()(package private) booleanvisitMethod(int access, String name, String desc, String signature, String[] exceptions) When visiting a method we need aMethodProbesVisitorto handle the probes of that method.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
-
Field Details
-
count
private int count -
methods
private boolean methods
-
-
Constructor Details
-
ProbeCounter
ProbeCounter()
-
-
Method Details
-
visitMethod
public MethodProbesVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) Description copied from class:ClassProbesVisitorWhen visiting a method we need aMethodProbesVisitorto handle the probes of that method.- Specified by:
visitMethodin classClassProbesVisitor
-
visitTotalProbeCount
public void visitTotalProbeCount(int count) Description copied from class:ClassProbesVisitorReports the total number of encountered probes. This method is called just beforeClassVisitor.visitEnd()- Specified by:
visitTotalProbeCountin classClassProbesVisitor- Parameters:
count- total number of probes
-
getCount
int getCount() -
hasMethods
boolean hasMethods()- Returns:
trueif the class has non-abstract methods other than a static initializer
-