protected static enum FieldAccessor.ForSetter.TerminationHandler extends Enum<FieldAccessor.ForSetter.TerminationHandler>
Enum Constant and Description |
---|
NON_OPERATIONAL
Does not return from the method at all.
|
RETURNING
Returns
void or throws an exception if this is not the return type of the instrumented method. |
Modifier and Type | Method and Description |
---|---|
protected abstract StackManipulation |
resolve(MethodDescription instrumentedMethod)
Resolves the return instruction.
|
static FieldAccessor.ForSetter.TerminationHandler |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FieldAccessor.ForSetter.TerminationHandler[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FieldAccessor.ForSetter.TerminationHandler RETURNING
void
or throws an exception if this is not the return type of the instrumented method.public static final FieldAccessor.ForSetter.TerminationHandler NON_OPERATIONAL
public static FieldAccessor.ForSetter.TerminationHandler[] values()
for (FieldAccessor.ForSetter.TerminationHandler c : FieldAccessor.ForSetter.TerminationHandler.values()) System.out.println(c);
public static FieldAccessor.ForSetter.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 instrumentedMethod)
instrumentedMethod
- The instrumented method.Copyright © 2014–2022. All rights reserved.