public enum LookupMode extends Enum<LookupMode>
ValueConversionHelper for more on the possibilities.
| Enum Constant and Description |
|---|
AUTOBOX
Indicates that looking for methods includes trying to find compatible signatures by autoboxing the specified arguments.
|
CAST_TO_INTERFACE
Indicates that looking for methods includes trying to find compatible signatures by casting the specified arguments to an implemented
interface.
|
CAST_TO_SUPER
Indicates that looking for methods includes trying to find compatible signatures by casting the specified arguments to a super type.
|
COMMON_CONVERT
Indicates that looking for methods includes trying to find compatible signatures by automatically converting the specified arguments.
|
SMART_CONVERT
Like
COMMON_CONVERT, but now takes the registered converters and continues finding a conversion path based on the previous outcomes. |
| Modifier and Type | Field and Description |
|---|---|
static Set<LookupMode> |
FULL
Defines a complete method lookup configuration that combines all possible lookup modes.
|
static Set<LookupMode> |
SIMPLE
Defines a simple method lookup configuration that goes as far as casting and autoboxing, but no actual conversions are done to the values.
|
| Modifier and Type | Method and Description |
|---|---|
static LookupMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LookupMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LookupMode AUTOBOX
public static final LookupMode CAST_TO_SUPER
public static final LookupMode CAST_TO_INTERFACE
public static final LookupMode COMMON_CONVERT
public static final LookupMode SMART_CONVERT
COMMON_CONVERT, but now takes the registered converters and continues finding a conversion path based on the previous outcomes.
Examples:
public static final Set<LookupMode> SIMPLE
public static final Set<LookupMode> FULL
public static LookupMode[] values()
for (LookupMode c : LookupMode.values()) System.out.println(c);
public static LookupMode 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 nullCopyright © 2011–2024. All rights reserved.