public static enum Advice.Dispatcher.OffsetMapping.Context.ForMethodEntry extends Enum<Advice.Dispatcher.OffsetMapping.Context.ForMethodEntry> implements Advice.Dispatcher.OffsetMapping.Context
Advice.Dispatcher.OffsetMapping.Context.ForMethodEntry, Advice.Dispatcher.OffsetMapping.Context.ForMethodExit| Enum Constant and Description |
|---|
INITIALIZED
Describes a context for a method entry that is not a constructor.
|
NON_INITIALIZED
Describes a context for a method entry that is a constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getPadding()
Returns the padding before writing additional values that this context applies.
|
boolean |
isInitialized()
Returns
true if the advice is applied on a fully initialized instance, i.e. describes if the this
instance is available or still uninitialized during calling the advice. |
protected static Advice.Dispatcher.OffsetMapping.Context |
of(MethodDescription instrumentedMethod)
Resolves an appropriate method entry context for the supplied instrumented method.
|
static Advice.Dispatcher.OffsetMapping.Context.ForMethodEntry |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Advice.Dispatcher.OffsetMapping.Context.ForMethodEntry[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Advice.Dispatcher.OffsetMapping.Context.ForMethodEntry INITIALIZED
public static final Advice.Dispatcher.OffsetMapping.Context.ForMethodEntry NON_INITIALIZED
public static Advice.Dispatcher.OffsetMapping.Context.ForMethodEntry[] values()
for (Advice.Dispatcher.OffsetMapping.Context.ForMethodEntry c : Advice.Dispatcher.OffsetMapping.Context.ForMethodEntry.values()) System.out.println(c);
public static Advice.Dispatcher.OffsetMapping.Context.ForMethodEntry 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 static Advice.Dispatcher.OffsetMapping.Context of(MethodDescription instrumentedMethod)
instrumentedMethod - The instrumented method.public boolean isInitialized()
Advice.Dispatcher.OffsetMapping.Contexttrue if the advice is applied on a fully initialized instance, i.e. describes if the this
instance is available or still uninitialized during calling the advice.isInitialized in interface Advice.Dispatcher.OffsetMapping.Contexttrue if the advice is applied onto a fully initialized method.public int getPadding()
Advice.Dispatcher.OffsetMapping.ContextgetPadding in interface Advice.Dispatcher.OffsetMapping.ContextCopyright © 2014–2017. All rights reserved.