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.ClassVisitorA class visitor that applies the outer ASM visitor for identifying declared methods.
-
-
Field Summary
Fields Modifier and Type Field Description private Implementation.ContextimplementationContextThe implementation context to use.private TypeDescriptioninstrumentedTypeThe instrumented type.private java.util.Map<java.lang.String,MethodDescription>methodsA mapping of fields by their name.private intreaderFlagsThe ASMClassReaderreader flags to consider.private TypePooltypePoolThe type pool to use.private intwriterFlagsThe ASMClassWriterreader flags to consider.
-
Constructor Summary
Constructors Modifier Constructor Description protectedDispatchingVisitor(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.MethodVisitorvisitMethod(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 ASMClassWriterreader flags to consider.
-
readerFlags
private final int readerFlags
The ASMClassReaderreader 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 ASMClassWriterflags to consider.readerFlags- The ASMClassReaderflags to consider.
-
-