public class ClassAnalyzer extends ClassProbesVisitor
| Constructor and Description |
|---|
ClassAnalyzer(long classid,
boolean noMatch,
boolean[] probes,
StringPool stringPool)
Creates a new analyzer that builds coverage data for a class.
|
| Modifier and Type | Method and Description |
|---|---|
ClassCoverageImpl |
getCoverage()
Returns the coverage data for this class after this visitor has been
processed.
|
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(long classid,
boolean noMatch,
boolean[] probes,
StringPool stringPool)
classid - id of the classnoMatch - true if class id does not match with execution
dataprobes - execution data for this class or nullstringPool - shared pool to minimize the number of String instancespublic ClassCoverageImpl getCoverage()
public 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 © 2009-2015 Mountainminds GmbH & Co. KG. All Rights Reserved.