public enum GenericReflection extends Enum<GenericReflection>
| Modifier and Type | Method and Description |
|---|---|
static Class<?> |
erase(Type type)
Obatin the raw type if available.
|
static Set<Type> |
getMethodReturnTypes(Type type)
Obtain the return types for method on this type
|
static Type |
getReturnType(Method method,
Type type)
Obtain the return type of a method as defined by a class or interface
|
static GenericReflection |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GenericReflection[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static GenericReflection[] values()
for (GenericReflection c : GenericReflection.values()) System.out.println(c);
public static GenericReflection 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 nullpublic static Set<Type> getMethodReturnTypes(Type type)
type - to scanpublic static Type getReturnType(Method method, Type type)
method - to lookuptype - to look for the definition.Copyright © 2022. All rights reserved.