Package net.bytebuddy.build
Class AccessControllerPlugin.Initializer.WithoutProperty
- java.lang.Object
-
- net.bytebuddy.build.AccessControllerPlugin.Initializer
-
- net.bytebuddy.build.AccessControllerPlugin.Initializer.WithoutProperty
-
- All Implemented Interfaces:
ByteCodeAppender
- Enclosing class:
- AccessControllerPlugin.Initializer
@Enhance protected static class AccessControllerPlugin.Initializer.WithoutProperty extends AccessControllerPlugin.Initializer
An initializer that always uses the access controller if it is available.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.bytebuddy.build.AccessControllerPlugin.Initializer
AccessControllerPlugin.Initializer.WithoutProperty, AccessControllerPlugin.Initializer.WithProperty
-
Nested classes/interfaces inherited from interface net.bytebuddy.implementation.bytecode.ByteCodeAppender
ByteCodeAppender.Compound, ByteCodeAppender.Simple, ByteCodeAppender.Size
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedWithoutProperty(TypeDescription instrumentedType, java.lang.String name)Creates an initializer that always uses the access controller if it is available.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intonAccessController(org.objectweb.asm.MethodVisitor methodVisitor)Invoked to determine if the access controller should be used after the class was found.-
Methods inherited from class net.bytebuddy.build.AccessControllerPlugin.Initializer
apply
-
-
-
-
Constructor Detail
-
WithoutProperty
protected WithoutProperty(TypeDescription instrumentedType, java.lang.String name)
Creates an initializer that always uses the access controller if it is available.- Parameters:
instrumentedType- The instrumented type.name- The name of the field to determine the use of access controller dispatch.
-
-
Method Detail
-
onAccessController
protected int onAccessController(org.objectweb.asm.MethodVisitor methodVisitor)
Description copied from class:AccessControllerPlugin.InitializerInvoked to determine if the access controller should be used after the class was found.- Specified by:
onAccessControllerin classAccessControllerPlugin.Initializer- Parameters:
methodVisitor- The method visitor to dispatch to.- Returns:
- The size of the stack required to implement the implemented dispatch.
-
-