Package net.bytebuddy.asm
Enum Advice.Dispatcher.RelocationHandler.Disabled
- java.lang.Object
-
- java.lang.Enum<Advice.Dispatcher.RelocationHandler.Disabled>
-
- net.bytebuddy.asm.Advice.Dispatcher.RelocationHandler.Disabled
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Advice.Dispatcher.RelocationHandler.Disabled>
,Advice.Dispatcher.RelocationHandler
,Advice.Dispatcher.RelocationHandler.Bound
- Enclosing interface:
- Advice.Dispatcher.RelocationHandler
public static enum Advice.Dispatcher.RelocationHandler.Disabled extends java.lang.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 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 Enum Constant Description INSTANCE
The singleton instance.
-
Field Summary
-
Fields inherited from interface net.bytebuddy.asm.Advice.Dispatcher.RelocationHandler.Bound
NO_REQUIRED_SIZE
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Disabled()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
apply(org.objectweb.asm.MethodVisitor methodVisitor, int offset)
Applies this relocation handler.Advice.Dispatcher.RelocationHandler.Bound
bind(MethodDescription instrumentedMethod, Advice.Dispatcher.RelocationHandler.Relocation relocation)
Binds this relocation handler to a relocation dispatcher.static Advice.Dispatcher.RelocationHandler.Disabled
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Advice.Dispatcher.RelocationHandler.Disabled[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final Advice.Dispatcher.RelocationHandler.Disabled INSTANCE
The singleton instance.
-
-
Method Detail
-
values
public static Advice.Dispatcher.RelocationHandler.Disabled[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Advice.Dispatcher.RelocationHandler.Disabled c : Advice.Dispatcher.RelocationHandler.Disabled.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Advice.Dispatcher.RelocationHandler.Disabled valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- 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, int offset)
Applies this relocation handler.- Specified by:
apply
in interfaceAdvice.Dispatcher.RelocationHandler.Bound
- Parameters:
methodVisitor
- The method visitor to use.offset
- The offset of the relevant value.- Returns:
- The minimal required stack size to apply this relocation handler.
-
-