public static enum MethodCall.TerminationHandler.ForChainedInvocation extends Enum<MethodCall.TerminationHandler.ForChainedInvocation> implements MethodCall.TerminationHandler
MethodCall.TerminationHandler.ForChainedInvocation, MethodCall.TerminationHandler.ForMethodReturn
Enum Constant and Description |
---|
INSTANCE
The singleton instance.
|
Modifier and Type | Method and Description |
---|---|
StackManipulation |
resolve(MethodDescription invokedMethod,
MethodDescription interceptedMethod,
Assigner assigner,
Assigner.Typing typing)
Returns a stack manipulation that handles the method return.
|
String |
toString() |
static MethodCall.TerminationHandler.ForChainedInvocation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MethodCall.TerminationHandler.ForChainedInvocation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MethodCall.TerminationHandler.ForChainedInvocation INSTANCE
public static MethodCall.TerminationHandler.ForChainedInvocation[] values()
for (MethodCall.TerminationHandler.ForChainedInvocation c : MethodCall.TerminationHandler.ForChainedInvocation.values()) System.out.println(c);
public static MethodCall.TerminationHandler.ForChainedInvocation 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 StackManipulation resolve(MethodDescription invokedMethod, MethodDescription interceptedMethod, Assigner assigner, Assigner.Typing typing)
MethodCall.TerminationHandler
resolve
in interface MethodCall.TerminationHandler
invokedMethod
- The method that was invoked by the method call.interceptedMethod
- 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.ForChainedInvocation>
Copyright © 2014–2015. All rights reserved.