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