Package net.bytebuddy.implementation
Enum Class MethodCall.TerminationHandler.Simple
java.lang.Object
java.lang.Enum<MethodCall.TerminationHandler.Simple>
net.bytebuddy.implementation.MethodCall.TerminationHandler.Simple
- All Implemented Interfaces:
Serializable
,Comparable<MethodCall.TerminationHandler.Simple>
,Constable
,MethodCall.TerminationHandler
,MethodCall.TerminationHandler.Factory
- Enclosing interface:
- MethodCall.TerminationHandler
public static enum MethodCall.TerminationHandler.Simple
extends Enum<MethodCall.TerminationHandler.Simple>
implements MethodCall.TerminationHandler, MethodCall.TerminationHandler.Factory
Simple termination handler implementations.
-
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.implementation.MethodCall.TerminationHandler
MethodCall.TerminationHandler.Factory, MethodCall.TerminationHandler.FieldSetting, MethodCall.TerminationHandler.Simple
-
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmake
(TypeDescription instrumentedType) Creates a termination handler for a given instrumented type.prepare()
Returns a preparing stack manipulation to apply prior to the method call.Returns the enum constant of this class with the specified name.static MethodCall.TerminationHandler.Simple[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface net.bytebuddy.implementation.MethodCall.TerminationHandler
toStackManipulation
-
Enum Constant Details
-
RETURNING
A termination handler that returns the invoked method's return value. -
DROPPING
A termination handler that drops the invoked method's return value. -
IGNORING
A termination handler that does not apply any change.
-
-
Constructor Details
-
Simple
private Simple()
-
-
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
-
make
Creates a termination handler for a given instrumented type.- Specified by:
make
in interfaceMethodCall.TerminationHandler.Factory
- Parameters:
instrumentedType
- The instrumented type.- Returns:
- A termination handler to apply for the instrumented type.
-
prepare
Returns a preparing stack manipulation to apply prior to the method call.- Specified by:
prepare
in interfaceMethodCall.TerminationHandler
- Returns:
- The stack manipulation to apply prior to the method call.
-