|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jacoco.core.internal.analysis.ClassAnalyzer
public class ClassAnalyzer
Analyzes the structure of a class.
| Constructor Summary | |
|---|---|
ClassAnalyzer(long classid,
boolean[] executionData,
StringPool stringPool)
Creates a new analyzer that builds coverage data for a class. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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 instances| Method Detail |
|---|
public 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 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 probes
public 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.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.ClassVisitorpublic void visitEnd()
visitEnd in interface org.objectweb.asm.ClassVisitor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||