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 null
stringPool
- 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.ClassVisitor
public void visitSource(String source, String debug)
visitSource
in interface org.objectweb.asm.ClassVisitor
public IMethodProbesVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions)
visitMethod
in interface IClassProbesVisitor
visitMethod
in interface org.objectweb.asm.ClassVisitor
public void visitTotalProbeCount(int count)
IClassProbesVisitor
ClassVisitor.visitEnd()
. For interfaces
this method is called before the first method (the static initializer) is
emitted.visitTotalProbeCount
in interface IClassProbesVisitor
count
- total number of probespublic org.objectweb.asm.AnnotationVisitor visitAnnotation(String desc, boolean visible)
visitAnnotation
in interface org.objectweb.asm.ClassVisitor
public void visitAttribute(org.objectweb.asm.Attribute attr)
visitAttribute
in interface org.objectweb.asm.ClassVisitor
public org.objectweb.asm.FieldVisitor visitField(int access, String name, String desc, String signature, Object value)
visitField
in interface org.objectweb.asm.ClassVisitor
public void visitInnerClass(String name, String outerName, String innerName, int access)
visitInnerClass
in interface org.objectweb.asm.ClassVisitor
public void visitOuterClass(String owner, String name, String desc)
visitOuterClass
in interface org.objectweb.asm.ClassVisitor
public void visitEnd()
visitEnd
in interface org.objectweb.asm.ClassVisitor
Copyright © 2009-2012 Mountainminds GmbH & Co. KG. All Rights Reserved.