public class ClassAnalyzer extends ClassProbesVisitor
| Constructor and Description |
|---|
ClassAnalyzer(ClassCoverageImpl coverage,
boolean[] probes,
StringPool stringPool)
Creates a new analyzer that builds coverage data for a class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
visit(int version,
int access,
String name,
String signature,
String superName,
String[] interfaces) |
org.objectweb.asm.FieldVisitor |
visitField(int access,
String name,
String desc,
String signature,
Object value) |
MethodProbesVisitor |
visitMethod(int access,
String name,
String desc,
String signature,
String[] exceptions)
When visiting a method we need a
MethodProbesVisitor to handle
the probes of that method. |
void |
visitSource(String source,
String debug) |
void |
visitTotalProbeCount(int count)
Reports the total number of encountered probes.
|
public ClassAnalyzer(ClassCoverageImpl coverage, boolean[] probes, StringPool stringPool)
coverage - coverage node for the analyzed class dataprobes - execution data for this class or nullstringPool - shared pool to minimize the number of String instancespublic void visit(int version,
int access,
String name,
String signature,
String superName,
String[] interfaces)
visit in class org.objectweb.asm.ClassVisitorpublic void visitSource(String source, String debug)
visitSource in class org.objectweb.asm.ClassVisitorpublic MethodProbesVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions)
ClassProbesVisitorMethodProbesVisitor to handle
the probes of that method.visitMethod in class ClassProbesVisitorpublic org.objectweb.asm.FieldVisitor visitField(int access,
String name,
String desc,
String signature,
Object value)
visitField in class org.objectweb.asm.ClassVisitorpublic void visitTotalProbeCount(int count)
ClassProbesVisitorClassVisitor.visitEnd(). For interfaces
this method is called before the first method (the static initializer) is
emitted.visitTotalProbeCount in class ClassProbesVisitorcount - total number of probesCopyright © 2024. All rights reserved.