Package net.bytebuddy.asm
Enum Class Advice.Dispatcher.RelocationHandler.Disabled
java.lang.Object
java.lang.Enum<Advice.Dispatcher.RelocationHandler.Disabled>
net.bytebuddy.asm.Advice.Dispatcher.RelocationHandler.Disabled
- All Implemented Interfaces:
Serializable
,Comparable<Advice.Dispatcher.RelocationHandler.Disabled>
,Constable
,Advice.Dispatcher.RelocationHandler
,Advice.Dispatcher.RelocationHandler.Bound
- Enclosing interface:
Advice.Dispatcher.RelocationHandler
public static enum Advice.Dispatcher.RelocationHandler.Disabled
extends Enum<Advice.Dispatcher.RelocationHandler.Disabled>
implements Advice.Dispatcher.RelocationHandler, Advice.Dispatcher.RelocationHandler.Bound
A disabled relocation handler that does never trigger a relocation.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface net.bytebuddy.asm.Advice.Dispatcher.RelocationHandler
Advice.Dispatcher.RelocationHandler.Bound, Advice.Dispatcher.RelocationHandler.Disabled, Advice.Dispatcher.RelocationHandler.ForType, Advice.Dispatcher.RelocationHandler.ForValue, Advice.Dispatcher.RelocationHandler.Relocation
-
Enum Constant Summary
Enum Constants -
Field Summary
Fields inherited from interface net.bytebuddy.asm.Advice.Dispatcher.RelocationHandler.Bound
NO_REQUIRED_SIZE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
apply
(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, int offset) Applies this relocation handler.bind
(MethodDescription instrumentedMethod, Advice.Dispatcher.RelocationHandler.Relocation relocation) Binds this relocation handler to a relocation dispatcher.Returns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
The singleton instance.
-
-
Constructor Details
-
Disabled
private Disabled()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
bind
public Advice.Dispatcher.RelocationHandler.Bound bind(MethodDescription instrumentedMethod, Advice.Dispatcher.RelocationHandler.Relocation relocation) Binds this relocation handler to a relocation dispatcher.- Specified by:
bind
in interfaceAdvice.Dispatcher.RelocationHandler
- Parameters:
instrumentedMethod
- The instrumented method.relocation
- The relocation to apply.- Returns:
- A bound relocation handler.
-
apply
public int apply(org.objectweb.asm.MethodVisitor methodVisitor, Implementation.Context implementationContext, int offset) Applies this relocation handler.- Specified by:
apply
in interfaceAdvice.Dispatcher.RelocationHandler.Bound
- Parameters:
methodVisitor
- The method visitor to use.implementationContext
- The implementation context to use.offset
- The offset of the relevant value.- Returns:
- The minimal required stack size to apply this relocation handler.
-