public class ClassInstrumenter extends org.objectweb.asm.ClassAdapter implements IClassProbesVisitor
| 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) |
IMethodProbesVisitor |
visitMethod(int access,
String name,
String desc,
String signature,
String[] exceptions) |
void |
visitTotalProbeCount(int count)
Reports the total number of encountered probes.
|
visitAnnotation, visitAttribute, visitInnerClass, visitOuterClass, visitSourcepublic 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 interface org.objectweb.asm.ClassVisitorvisit in class org.objectweb.asm.ClassAdapterpublic org.objectweb.asm.FieldVisitor visitField(int access,
String name,
String desc,
String signature,
Object value)
visitField in interface org.objectweb.asm.ClassVisitorvisitField in class org.objectweb.asm.ClassAdapterpublic IMethodProbesVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions)
visitMethod in interface IClassProbesVisitorvisitMethod in interface org.objectweb.asm.ClassVisitorvisitMethod in class org.objectweb.asm.ClassAdapterpublic 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 void visitEnd()
visitEnd in interface org.objectweb.asm.ClassVisitorvisitEnd in class org.objectweb.asm.ClassAdapterCopyright © 2009-2012 Mountainminds GmbH & Co. KG. All Rights Reserved.