public class ClassAnalyzer extends Object implements IClassProbesVisitor
| Constructor and Description |
|---|
ClassAnalyzer(long classid,
boolean[] executionData,
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.AnnotationVisitor |
visitAnnotation(String desc,
boolean visible) |
void |
visitAttribute(org.objectweb.asm.Attribute attr) |
void |
visitEnd() |
org.objectweb.asm.FieldVisitor |
visitField(int access,
String name,
String desc,
String signature,
Object value) |
void |
visitInnerClass(String name,
String outerName,
String innerName,
int access) |
IMethodProbesVisitor |
visitMethod(int access,
String name,
String desc,
String signature,
String[] exceptions) |
void |
visitOuterClass(String owner,
String name,
String desc) |
void |
visitSource(String source,
String debug) |
void |
visitTotalProbeCount(int count)
Reports the total number of encountered probes.
|
public ClassAnalyzer(long classid,
boolean[] executionData,
StringPool stringPool)
classid - id of the classexecutionData - 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 interface org.objectweb.asm.ClassVisitorpublic void visitSource(String source, String debug)
visitSource in interface org.objectweb.asm.ClassVisitorpublic IMethodProbesVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions)
visitMethod in interface IClassProbesVisitorvisitMethod in interface org.objectweb.asm.ClassVisitorpublic void visitTotalProbeCount(int count)
IClassProbesVisitorClassVisitor.visitEnd(). For interfaces
this method is called before the first method (the static initializer) is
emitted.visitTotalProbeCount in interface IClassProbesVisitorcount - total number of probespublic org.objectweb.asm.AnnotationVisitor visitAnnotation(String desc, boolean visible)
visitAnnotation in interface org.objectweb.asm.ClassVisitorpublic void visitAttribute(org.objectweb.asm.Attribute attr)
visitAttribute in interface org.objectweb.asm.ClassVisitorpublic org.objectweb.asm.FieldVisitor visitField(int access,
String name,
String desc,
String signature,
Object value)
visitField in interface org.objectweb.asm.ClassVisitorpublic void visitInnerClass(String name, String outerName, String innerName, int access)
visitInnerClass in interface org.objectweb.asm.ClassVisitorpublic void visitOuterClass(String owner, String name, String desc)
visitOuterClass in interface org.objectweb.asm.ClassVisitorpublic void visitEnd()
visitEnd in interface org.objectweb.asm.ClassVisitorCopyright © 2009-2012 Mountainminds GmbH & Co. KG. All Rights Reserved.