protected static enum CachedReturnPlugin.AdviceResolver extends Enum<CachedReturnPlugin.AdviceResolver>
Advice
that caches a method's return type.Modifier and Type | Class and Description |
---|---|
protected static class |
CachedReturnPlugin.AdviceResolver.ExitAdviceByteCodeAppender
A byte code appender for the exit advice.
|
Enum Constant and Description |
---|
BOOLEAN
A resolver for a
boolean type. |
BYTE
A resolver for a
byte type. |
CHARACTER
A resolver for a
char type. |
DOUBLE
A resolver for a
double type. |
FLOAT
A resolver for a
float type. |
INTEGER
A resolver for a
int type. |
LONG
A resolver for a
long type. |
REFERENCE
A resolver for a reference type.
|
SHORT
A resolver for a
short type. |
Modifier and Type | Method and Description |
---|---|
protected static CachedReturnPlugin.AdviceResolver |
of(TypeDefinition typeDefinition)
Creates an advice resolver for a given type definition.
|
protected Advice |
toAdvice(String name)
Resolve advice for a given field name.
|
static CachedReturnPlugin.AdviceResolver |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CachedReturnPlugin.AdviceResolver[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CachedReturnPlugin.AdviceResolver BOOLEAN
boolean
type.public static final CachedReturnPlugin.AdviceResolver BYTE
byte
type.public static final CachedReturnPlugin.AdviceResolver SHORT
short
type.public static final CachedReturnPlugin.AdviceResolver CHARACTER
char
type.public static final CachedReturnPlugin.AdviceResolver INTEGER
int
type.public static final CachedReturnPlugin.AdviceResolver LONG
long
type.public static final CachedReturnPlugin.AdviceResolver FLOAT
float
type.public static final CachedReturnPlugin.AdviceResolver DOUBLE
double
type.public static final CachedReturnPlugin.AdviceResolver REFERENCE
public static CachedReturnPlugin.AdviceResolver[] values()
for (CachedReturnPlugin.AdviceResolver c : CachedReturnPlugin.AdviceResolver.values()) System.out.println(c);
public static CachedReturnPlugin.AdviceResolver 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 CachedReturnPlugin.AdviceResolver of(TypeDefinition typeDefinition)
typeDefinition
- The type definition for which advice is to be created.Copyright © 2014–2025. All rights reserved.