| Package | Description |
|---|---|
| org.bbottema.javareflection | |
| org.bbottema.javareflection.model |
| Modifier and Type | Method and Description |
|---|---|
static <T> Set<InvokableObject<Constructor>> |
MethodUtils.findCompatibleConstructor(Class<T> datatype,
Set<LookupMode> lookupMode,
Class<?>... signature)
Tries to find a
Constructor of a given type, with a given typelist, where types do not match due to formal types simple types. |
static @NotNull Set<InvokableObject<Method>> |
MethodUtils.findCompatibleMethod(Class<?> datatype,
String methodName,
Set<LookupMode> lookupMode,
Class<?>... signature)
Same as
getConstructor(), except for getting a Method of a classtype, using the name to indicate which method should be
located. |
static Set<InvokableObject<Method>> |
MethodUtils.findCompatibleMethod(Class<?> datatype,
String methodName,
Set<LookupMode> lookupMode,
Object... args)
Delegates to
MethodUtils.findCompatibleMethod(Class, String, Set, Class[]), with the types of the given arguments extracted using TypeUtils.collectTypes(Object[]). |
static @NotNull List<Class<?>[]> |
TypeUtils.generateCompatibleTypeLists(Set<LookupMode> lookupMode,
Class<?>... inputTypelist)
Initializes the list with type-arrays and starts generating beginning from index 0.
|
static boolean |
MethodUtils.isMethodCompatible(Method method,
Set<LookupMode> lookupMode,
Class<?>... signature)
Tests if a list of arguments is compatible with the signature of the given method, allowing for the given lookup modes.
|
static boolean |
MethodUtils.isMethodCompatible(Method method,
Set<LookupMode> lookupMode,
Object... signature)
Tests if a list of classes is compatible with the signature of the given method, allowing for the given lookup modes.
|
static boolean |
TypeUtils.isTypeListCompatible(Class<?>[] inputTypeList,
Class<?>[] targetTypeList,
Set<LookupMode> lookupMode) |
| Modifier and Type | Field and Description |
|---|---|
static Set<LookupMode> |
LookupMode.FULL
Defines a complete method lookup configuration that combines all possible lookup modes.
|
static Set<LookupMode> |
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 |
LookupMode.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LookupMode[] |
LookupMode.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Copyright © 2011–2019. All rights reserved.