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, visitSource
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 interface org.objectweb.asm.ClassVisitor
visit
in class org.objectweb.asm.ClassAdapter
public org.objectweb.asm.FieldVisitor visitField(int access, String name, String desc, String signature, Object value)
visitField
in interface org.objectweb.asm.ClassVisitor
visitField
in class org.objectweb.asm.ClassAdapter
public IMethodProbesVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions)
visitMethod
in interface IClassProbesVisitor
visitMethod
in interface org.objectweb.asm.ClassVisitor
visitMethod
in class org.objectweb.asm.ClassAdapter
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 void visitEnd()
visitEnd
in interface org.objectweb.asm.ClassVisitor
visitEnd
in class org.objectweb.asm.ClassAdapter
Copyright © 2009-2012 Mountainminds GmbH & Co. KG. All Rights Reserved.