public static enum Advice.OffsetMapping.Sort extends Enum<Advice.OffsetMapping.Sort>
Enum Constant and Description |
---|
ENTER
Indicates that an offset is mapped for an enter advice.
|
EXIT
Indicates that an offset is mapped for an exit advice.
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
isPremature(MethodDescription methodDescription)
Checks if an advice is executed in a premature state, i.e.
|
static Advice.OffsetMapping.Sort |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Advice.OffsetMapping.Sort[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Advice.OffsetMapping.Sort ENTER
public static final Advice.OffsetMapping.Sort EXIT
public static Advice.OffsetMapping.Sort[] values()
for (Advice.OffsetMapping.Sort c : Advice.OffsetMapping.Sort.values()) System.out.println(c);
public static Advice.OffsetMapping.Sort 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 abstract boolean isPremature(MethodDescription methodDescription)
this
reference is not yet initialized and therefore not available.methodDescription
- The instrumented method.true
if the advice is executed premature for the instrumented method.Copyright © 2014–2024. All rights reserved.