protected class AsmVisitorWrapper.ForDeclaredMethods.DispatchingVisitor
extends org.objectweb.asm.ClassVisitor
Modifier and Type | Field and Description |
---|---|
private Implementation.Context |
implementationContext
The implementation context to use.
|
private TypeDescription |
instrumentedType
The instrumented type.
|
private java.util.Map<java.lang.String,MethodDescription> |
methods
A mapping of fields by their name.
|
private int |
readerFlags
The ASM
ClassReader reader flags to consider. |
private TypePool |
typePool
The type pool to use.
|
private int |
writerFlags
The ASM
ClassWriter reader flags to consider. |
Modifier | Constructor and Description |
---|---|
protected |
DispatchingVisitor(org.objectweb.asm.ClassVisitor classVisitor,
TypeDescription instrumentedType,
Implementation.Context implementationContext,
TypePool typePool,
java.util.Map<java.lang.String,MethodDescription> methods,
int writerFlags,
int readerFlags)
Creates a new dispatching visitor.
|
Modifier and Type | Method and Description |
---|---|
org.objectweb.asm.MethodVisitor |
visitMethod(int modifiers,
java.lang.String internalName,
java.lang.String descriptor,
java.lang.String signature,
java.lang.String[] exceptions) |
private final TypeDescription instrumentedType
private final Implementation.Context implementationContext
private final TypePool typePool
private final int writerFlags
ClassWriter
reader flags to consider.private final int readerFlags
ClassReader
reader flags to consider.private final java.util.Map<java.lang.String,MethodDescription> methods
protected DispatchingVisitor(org.objectweb.asm.ClassVisitor classVisitor, TypeDescription instrumentedType, Implementation.Context implementationContext, TypePool typePool, java.util.Map<java.lang.String,MethodDescription> methods, int writerFlags, int readerFlags)
classVisitor
- The underlying class visitor.instrumentedType
- The instrumented type.implementationContext
- The implementation context to use.typePool
- The type pool to use.methods
- The methods that are declared by the instrumented type or virtually inherited.writerFlags
- The ASM ClassWriter
flags to consider.readerFlags
- The ASM ClassReader
flags to consider.