public class ClassInstrumenter extends ClassProbesVisitor
Constructor and Description |
---|
ClassInstrumenter(long id,
IExecutionDataAccessorGenerator accessorGenerator,
org.objectweb.asm.ClassVisitor cv)
Emits a instrumented version of this class to the given class visitor.
|
Modifier and Type | Method and Description |
---|---|
void |
visit(int version,
int access,
String name,
String signature,
String superName,
String[] interfaces) |
void |
visitEnd() |
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 |
visitTotalProbeCount(int count)
Reports the total number of encountered probes.
|
public ClassInstrumenter(long id, IExecutionDataAccessorGenerator accessorGenerator, org.objectweb.asm.ClassVisitor cv)
id
- unique identifier given to this classaccessorGenerator
- this generator will be used for instrumentationcv
- next delegate in the visitor chain will receive the
instrumented classpublic void visit(int version, int access, String name, String signature, String superName, String[] interfaces)
visit
in class org.objectweb.asm.ClassVisitor
public org.objectweb.asm.FieldVisitor visitField(int access, String name, String desc, String signature, Object value)
visitField
in class org.objectweb.asm.ClassVisitor
public MethodProbesVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions)
ClassProbesVisitor
MethodProbesVisitor
to handle
the probes of that method.visitMethod
in class ClassProbesVisitor
public void visitTotalProbeCount(int count)
ClassProbesVisitor
ClassVisitor.visitEnd()
. For interfaces
this method is called before the first method (the static initializer) is
emitted.visitTotalProbeCount
in class ClassProbesVisitor
count
- total number of probespublic void visitEnd()
visitEnd
in class org.objectweb.asm.ClassVisitor
Copyright © 2013. All rights reserved.