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
FieldsModifier and TypeFieldDescriptionprivate final Implementation.Context
The implementation context to use.private final TypeDescription
The instrumented type.private final Map<String,
MethodDescription> A mapping of fields by their name.private final int
The ASMClassReader
reader flags to consider.private final TypePool
The type pool to use.private final int
The ASMClassWriter
reader flags to consider.Fields inherited from class org.objectweb.asm.ClassVisitor
api, cv
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
DispatchingVisitor
(org.objectweb.asm.ClassVisitor classVisitor, TypeDescription instrumentedType, Implementation.Context implementationContext, TypePool typePool, Map<String, MethodDescription> methods, int writerFlags, int readerFlags) Creates a new dispatching visitor. -
Method Summary
Modifier and TypeMethodDescriptionorg.objectweb.asm.MethodVisitor
visitMethod
(int modifiers, String internalName, String descriptor, String signature, String[] exceptions) Methods inherited from class org.objectweb.asm.ClassVisitor
visit, visitAnnotation, visitAttribute, visitEnd, visitField, visitInnerClass, visitModule, visitNestHost, visitNestMember, visitOuterClass, visitPermittedSubclass, visitRecordComponent, visitSource, visitTypeAnnotation
-
Field Details
-
instrumentedType
The instrumented type. -
implementationContext
The implementation context to use. -
typePool
The type pool to use. -
writerFlags
private final int writerFlagsThe ASMClassWriter
reader flags to consider. -
readerFlags
private final int readerFlagsThe ASMClassReader
reader flags to consider. -
methods
A mapping of fields by their name.
-
-
Constructor Details
-
DispatchingVisitor
protected DispatchingVisitor(org.objectweb.asm.ClassVisitor classVisitor, TypeDescription instrumentedType, Implementation.Context implementationContext, TypePool typePool, Map<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.
-
-
Method Details
-
visitMethod
@MaybeNull public org.objectweb.asm.MethodVisitor visitMethod(int modifiers, String internalName, String descriptor, @MaybeNull String signature, @MaybeNull String[] exceptions) - Overrides:
visitMethod
in classorg.objectweb.asm.ClassVisitor
-