public static enum Advice.OffsetMapping.Context.ForMethodEntry extends Enum<Advice.OffsetMapping.Context.ForMethodEntry> implements Advice.OffsetMapping.Context
Advice.OffsetMapping.Context.ForMethodEntry, Advice.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.OffsetMapping.Context |
of(MethodDescription instrumentedMethod)
Resolves an appropriate method entry context for the supplied instrumented method.
|
static Advice.OffsetMapping.Context.ForMethodEntry |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Advice.OffsetMapping.Context.ForMethodEntry[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Advice.OffsetMapping.Context.ForMethodEntry INITIALIZED
public static final Advice.OffsetMapping.Context.ForMethodEntry NON_INITIALIZED
public static Advice.OffsetMapping.Context.ForMethodEntry[] values()
for (Advice.OffsetMapping.Context.ForMethodEntry c : Advice.OffsetMapping.Context.ForMethodEntry.values()) System.out.println(c);
public static Advice.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.OffsetMapping.Context of(MethodDescription instrumentedMethod)
instrumentedMethod
- The instrumented method.public boolean isInitialized()
Advice.OffsetMapping.Context
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.isInitialized
in interface Advice.OffsetMapping.Context
true
if the advice is applied onto a fully initialized method.public int getPadding()
Advice.OffsetMapping.Context
getPadding
in interface Advice.OffsetMapping.Context
Copyright © 2014–2017. All rights reserved.