Package net.bytebuddy.asm
Class AsmVisitorWrapper.ForDeclaredMethods.DispatchingVisitor
- java.lang.Object
-
- org.objectweb.asm.ClassVisitor
-
- net.bytebuddy.asm.AsmVisitorWrapper.ForDeclaredMethods.DispatchingVisitor
-
- Enclosing class:
- AsmVisitorWrapper.ForDeclaredMethods
protected class AsmVisitorWrapper.ForDeclaredMethods.DispatchingVisitor extends org.objectweb.asm.ClassVisitor
A class visitor that applies the outer ASM visitor for identifying declared methods.
-
-
Field Summary
Fields Modifier and Type Field 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 ASMClassReader
reader flags to consider.private TypePool
typePool
The type pool to use.private int
writerFlags
The ASMClassWriter
reader flags to consider.
-
Constructor Summary
Constructors Modifier Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.objectweb.asm.MethodVisitor
visitMethod(int modifiers, java.lang.String internalName, java.lang.String descriptor, java.lang.String signature, java.lang.String[] exceptions)
-
-
-
Field Detail
-
instrumentedType
private final TypeDescription instrumentedType
The instrumented type.
-
implementationContext
private final Implementation.Context implementationContext
The implementation context to use.
-
typePool
private final TypePool typePool
The type pool to use.
-
writerFlags
private final int writerFlags
The ASMClassWriter
reader flags to consider.
-
readerFlags
private final int readerFlags
The ASMClassReader
reader flags to consider.
-
methods
private final java.util.Map<java.lang.String,MethodDescription> methods
A mapping of fields by their name.
-
-
Constructor Detail
-
DispatchingVisitor
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.- Parameters:
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 ASMClassWriter
flags to consider.readerFlags
- The ASMClassReader
flags to consider.
-
-