|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jacoco.core.instr.BlockClassAdapter
public abstract class BlockClassAdapter
A ClassVisitor
that drives IBlockMethodVisitor
for each
non-abstract method.
Constructor Summary | |
---|---|
BlockClassAdapter()
|
Method Summary | |
---|---|
protected int |
getProbeCount()
Returns the total number of probes of the processed class. |
int |
nextId()
Returns the next unique probe id. |
protected abstract MethodVisitor |
visitAbstractMethod(int access,
String name,
String desc,
String signature,
String[] exceptions)
This method is called for every abstract method. |
MethodVisitor |
visitMethod(int access,
String name,
String desc,
String signature,
String[] exceptions)
|
protected abstract IBlockMethodVisitor |
visitNonAbstractMethod(int access,
String name,
String desc,
String signature,
String[] exceptions)
This method is called for every non-abstract method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.objectweb.asm.ClassVisitor |
---|
visit, visitAnnotation, visitAttribute, visitEnd, visitField, visitInnerClass, visitOuterClass, visitSource |
Constructor Detail |
---|
public BlockClassAdapter()
Method Detail |
---|
public final MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions)
visitMethod
in interface ClassVisitor
protected abstract IBlockMethodVisitor visitNonAbstractMethod(int access, String name, String desc, String signature, String[] exceptions)
access
- the method's access flags (see Opcodes
). This
parameter also indicates if the method is synthetic and/or
deprecated.name
- the method's name.desc
- the method's descriptor (see Type
).signature
- the method's signature. May be null if the method
parameters, return type and exceptions do not use generic
types.exceptions
- the internal names of the method's exception classes (see
getInternalName
). May be
null.
protected abstract MethodVisitor visitAbstractMethod(int access, String name, String desc, String signature, String[] exceptions)
access
- the method's access flags (see Opcodes
). This
parameter also indicates if the method is synthetic and/or
deprecated.name
- the method's name.desc
- the method's descriptor (see Type
).signature
- the method's signature. May be null if the method
parameters, return type and exceptions do not use generic
types.exceptions
- the internal names of the method's exception classes (see
getInternalName
). May be
null.
protected final int getProbeCount()
public int nextId()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |