protected static enum Forwarding.TerminationHandler extends Enum<Forwarding.TerminationHandler>
| Enum Constant and Description |
|---|
DROPPING
A termination handler that drops the forwarded method's return value.
|
RETURNING
A termination handler that returns the forwarded method's return value.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract StackManipulation |
resolve(TypeDefinition returnType)
Resolves a stack manipulation for handling the forwarded method's return value.
|
String |
toString() |
static Forwarding.TerminationHandler |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Forwarding.TerminationHandler[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Forwarding.TerminationHandler DROPPING
public static final Forwarding.TerminationHandler RETURNING
public static Forwarding.TerminationHandler[] values()
for (Forwarding.TerminationHandler c : Forwarding.TerminationHandler.values()) System.out.println(c);
public static Forwarding.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(TypeDefinition returnType)
returnType - The return type.public String toString()
toString in class Enum<Forwarding.TerminationHandler>Copyright © 2014–2016. All rights reserved.