Enum MethodDelegationBinder.TerminationHandler.Default
- java.lang.Object
-
- java.lang.Enum<MethodDelegationBinder.TerminationHandler.Default>
-
- net.bytebuddy.implementation.bind.MethodDelegationBinder.TerminationHandler.Default
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MethodDelegationBinder.TerminationHandler.Default>
,MethodDelegationBinder.TerminationHandler
- Enclosing interface:
- MethodDelegationBinder.TerminationHandler
public static enum MethodDelegationBinder.TerminationHandler.Default extends java.lang.Enum<MethodDelegationBinder.TerminationHandler.Default> implements MethodDelegationBinder.TerminationHandler
Responsible for creating aStackManipulation
that is applied after the interception method is applied.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.implementation.bind.MethodDelegationBinder.TerminationHandler
MethodDelegationBinder.TerminationHandler.Default
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Default()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MethodDelegationBinder.TerminationHandler.Default
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MethodDelegationBinder.TerminationHandler.Default[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface net.bytebuddy.implementation.bind.MethodDelegationBinder.TerminationHandler
resolve
-
-
-
-
Enum Constant Detail
-
RETURNING
public static final MethodDelegationBinder.TerminationHandler.Default RETURNING
A termination handler that returns the delegate method's return value.
-
DROPPING
public static final MethodDelegationBinder.TerminationHandler.Default DROPPING
A termination handler that drops the delegate method's return value.
-
-
Method Detail
-
values
public static MethodDelegationBinder.TerminationHandler.Default[] 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 (MethodDelegationBinder.TerminationHandler.Default c : MethodDelegationBinder.TerminationHandler.Default.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MethodDelegationBinder.TerminationHandler.Default 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
-
-