Package net.bytebuddy.implementation
Enum Class FieldAccessor.ForSetter.TerminationHandler
java.lang.Object
java.lang.Enum<FieldAccessor.ForSetter.TerminationHandler>
net.bytebuddy.implementation.FieldAccessor.ForSetter.TerminationHandler
- All Implemented Interfaces:
Serializable
,Comparable<FieldAccessor.ForSetter.TerminationHandler>
,Constable
- Enclosing class:
- FieldAccessor.ForSetter<T>
protected static enum FieldAccessor.ForSetter.TerminationHandler
extends Enum<FieldAccessor.ForSetter.TerminationHandler>
A termination handler is responsible for handling a field accessor's return.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDoes not return from the method at all.Returnsvoid
or throws an exception if this is not the return type of the instrumented method. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract StackManipulation
resolve
(MethodDescription instrumentedMethod) Resolves the return instruction.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
-
RETURNING
Returnsvoid
or throws an exception if this is not the return type of the instrumented method. -
NON_OPERATIONAL
Does not return from the method at all.
-
-
Constructor Details
-
TerminationHandler
private TerminationHandler()
-
-
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
-
resolve
Resolves the return instruction.- Parameters:
instrumentedMethod
- The instrumented method.- Returns:
- An appropriate stack manipulation.
-