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 ofAccessController
which is weaved.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
AccessControllerPlugin.AccessControlWrapper.PrefixingMethodVisitor
A 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.String
name
The name of the field.
-
Constructor Summary
Constructors Modifier Constructor Description protected
AccessControlWrapper(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.MethodVisitor
wrap(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:
wrap
in 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 ASMClassWriter
reader flags to consider.readerFlags
- The ASMClassReader
reader flags to consider.- Returns:
- The wrapped method visitor.
-
-