public static enum TargetMethodAnnotationDrivenBinder.TerminationHandler extends Enum<TargetMethodAnnotationDrivenBinder.TerminationHandler>
StackManipulation
that is applied after the interception method is applied.Enum Constant and Description |
---|
DROPPING
A termination handler that drops the delegate method's return value.
|
RETURNING
A termination handler that returns the delegate method's return value.
|
Modifier and Type | Method and Description |
---|---|
protected abstract StackManipulation |
resolve(Assigner assigner,
MethodDescription source,
MethodDescription target)
Creates a stack manipulation that is to be applied after the method return.
|
String |
toString() |
static TargetMethodAnnotationDrivenBinder.TerminationHandler |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TargetMethodAnnotationDrivenBinder.TerminationHandler[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TargetMethodAnnotationDrivenBinder.TerminationHandler RETURNING
public static final TargetMethodAnnotationDrivenBinder.TerminationHandler DROPPING
public static TargetMethodAnnotationDrivenBinder.TerminationHandler[] values()
for (TargetMethodAnnotationDrivenBinder.TerminationHandler c : TargetMethodAnnotationDrivenBinder.TerminationHandler.values()) System.out.println(c);
public static TargetMethodAnnotationDrivenBinder.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(Assigner assigner, MethodDescription source, MethodDescription target)
assigner
- The supplied assigner.source
- The source method that is bound to the target
method.target
- The target method that is subject to be bound by the source
method.public String toString()
toString
in class Enum<TargetMethodAnnotationDrivenBinder.TerminationHandler>
Copyright © 2014–2016. All rights reserved.