public static enum MethodCall.TerminationHandler.Simple extends Enum<MethodCall.TerminationHandler.Simple> implements MethodCall.TerminationHandler, MethodCall.TerminationHandler.Factory
MethodCall.TerminationHandler.Factory, MethodCall.TerminationHandler.FieldSetting, MethodCall.TerminationHandler.Simple
Enum Constant and Description |
---|
DROPPING
A termination handler that drops the invoked method's return value.
|
IGNORING
A termination handler that does not apply any change.
|
RETURNING
A termination handler that returns the invoked method's return value.
|
Modifier and Type | Method and Description |
---|---|
MethodCall.TerminationHandler |
make(TypeDescription instrumentedType)
Creates a termination handler for a given instrumented type.
|
StackManipulation |
prepare()
Returns a preparing stack manipulation to apply prior to the method call.
|
static MethodCall.TerminationHandler.Simple |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MethodCall.TerminationHandler.Simple[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
toStackManipulation
public static final MethodCall.TerminationHandler.Simple RETURNING
public static final MethodCall.TerminationHandler.Simple DROPPING
public static final MethodCall.TerminationHandler.Simple IGNORING
public static MethodCall.TerminationHandler.Simple[] values()
for (MethodCall.TerminationHandler.Simple c : MethodCall.TerminationHandler.Simple.values()) System.out.println(c);
public static MethodCall.TerminationHandler.Simple valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic MethodCall.TerminationHandler make(TypeDescription instrumentedType)
make
in interface MethodCall.TerminationHandler.Factory
instrumentedType
- The instrumented type.public StackManipulation prepare()
prepare
in interface MethodCall.TerminationHandler
Copyright © 2014–2020. All rights reserved.