Package net.bytebuddy.build
Class AccessControllerPlugin.AccessControlWrapper
- java.lang.Object
-
- net.bytebuddy.build.AccessControllerPlugin.AccessControlWrapper
-
- All Implemented Interfaces:
AsmVisitorWrapper.ForDeclaredMethods.MethodVisitorWrapper
- Enclosing class:
- AccessControllerPlugin
@Enhance protected static class AccessControllerPlugin.AccessControlWrapper extends java.lang.Object implements AsmVisitorWrapper.ForDeclaredMethods.MethodVisitorWrapper
An wrapper for a method that represents a method ofAccessControllerwhich is weaved.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classAccessControllerPlugin.AccessControlWrapper.PrefixingMethodVisitorA method visitor to implement a weaved method to dispatch to anjava.security.AccessController, if available.
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringnameThe name of the field.
-
Constructor Summary
Constructors Modifier Constructor Description protectedAccessControlWrapper(java.lang.String name)Creates a new access control wrapper.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.objectweb.asm.MethodVisitorwrap(TypeDescription instrumentedType, MethodDescription instrumentedMethod, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, TypePool typePool, int writerFlags, int readerFlags)Wraps a method visitor.
-
-
-
Method Detail
-
wrap
public org.objectweb.asm.MethodVisitor wrap(TypeDescription instrumentedType, MethodDescription instrumentedMethod, org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, TypePool typePool, int writerFlags, int readerFlags)
Wraps a method visitor.- Specified by:
wrapin interfaceAsmVisitorWrapper.ForDeclaredMethods.MethodVisitorWrapper- Parameters:
instrumentedType- The instrumented type.instrumentedMethod- The method that is currently being defined.methodVisitor- The original field visitor that defines the given method.implementationContext- The implementation context to use.typePool- The type pool to use.writerFlags- The ASMClassWriterreader flags to consider.readerFlags- The ASMClassReaderreader flags to consider.- Returns:
- The wrapped method visitor.
-
-