protected static enum SuperMethodCall.Appender.TerminationHandler extends Enum<SuperMethodCall.Appender.TerminationHandler>
| Enum Constant and Description |
|---|
DROPPING
A termination handler that simply pops the value of the super method invocation off the stack.
|
RETURNING
A termination handler that returns the value of the super method invocation.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract StackManipulation |
of(MethodDescription methodDescription)
Creates a stack manipulation that represents this handler's behavior.
|
String |
toString() |
static SuperMethodCall.Appender.TerminationHandler |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SuperMethodCall.Appender.TerminationHandler[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SuperMethodCall.Appender.TerminationHandler RETURNING
public static final SuperMethodCall.Appender.TerminationHandler DROPPING
public static SuperMethodCall.Appender.TerminationHandler[] values()
for (SuperMethodCall.Appender.TerminationHandler c : SuperMethodCall.Appender.TerminationHandler.values()) System.out.println(c);
public static SuperMethodCall.Appender.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 of(MethodDescription methodDescription)
methodDescription - The method for which this handler is supposed to create a stack
manipulation for.public String toString()
toString in class Enum<SuperMethodCall.Appender.TerminationHandler>Copyright © 2014–2016. All rights reserved.