protected static enum InvokeDynamic.TerminationHandler extends Enum<InvokeDynamic.TerminationHandler>
InvokeDynamic
.Enum Constant and Description |
---|
DROPPING
A termination handler that drops the bound method's return value.
|
RETURNING
A termination handler that returns the bound method's return value.
|
Modifier and Type | Method and Description |
---|---|
protected abstract StackManipulation |
resolve(MethodDescription interceptedMethod,
TypeDescription returnType,
Assigner assigner,
Assigner.Typing typing)
Returns a stack manipulation that handles the method return.
|
static InvokeDynamic.TerminationHandler |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static InvokeDynamic.TerminationHandler[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InvokeDynamic.TerminationHandler RETURNING
public static final InvokeDynamic.TerminationHandler DROPPING
public static InvokeDynamic.TerminationHandler[] values()
for (InvokeDynamic.TerminationHandler c : InvokeDynamic.TerminationHandler.values()) System.out.println(c);
public static InvokeDynamic.TerminationHandler 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 nullprotected abstract StackManipulation resolve(MethodDescription interceptedMethod, TypeDescription returnType, Assigner assigner, Assigner.Typing typing)
interceptedMethod
- The method being intercepted.returnType
- The return type of the instrumented method.assigner
- The assigner to use.typing
- Indicates if dynamic type castings should be attempted for incompatible assignments.Copyright © 2014–2022. All rights reserved.