public static enum Advice.OffsetMapping.Context.ForMethodExit extends Enum<Advice.OffsetMapping.Context.ForMethodExit> implements Advice.OffsetMapping.Context
Advice.OffsetMapping.Context.ForMethodEntry, Advice.OffsetMapping.Context.ForMethodExit
Enum Constant and Description |
---|
DOUBLE
A method exit with a double slot padding.
|
SINGLE
A method exit with a single slot padding.
|
ZERO
A method exit with a zero sized padding.
|
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. |
protected static Advice.OffsetMapping.Context |
of(TypeDefinition typeDescription)
Resolves an appropriate method exit context for the supplied entry method type.
|
static Advice.OffsetMapping.Context.ForMethodExit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Advice.OffsetMapping.Context.ForMethodExit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Advice.OffsetMapping.Context.ForMethodExit ZERO
public static final Advice.OffsetMapping.Context.ForMethodExit SINGLE
public static final Advice.OffsetMapping.Context.ForMethodExit DOUBLE
public static Advice.OffsetMapping.Context.ForMethodExit[] values()
for (Advice.OffsetMapping.Context.ForMethodExit c : Advice.OffsetMapping.Context.ForMethodExit.values()) System.out.println(c);
public static Advice.OffsetMapping.Context.ForMethodExit 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(TypeDefinition typeDescription)
typeDescription
- The type that is returned by the enter 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–2018. All rights reserved.