public class Parameters
extends java.lang.Object
Parameters
is a class for the identification of types/classes of
a generic parameter.Constructor and Description |
---|
Parameters() |
Modifier and Type | Method and Description |
---|---|
protected static java.util.Collection<java.lang.Class<?>> |
getAllClasses(java.lang.Class<?> clazz) |
static java.lang.Class<?> |
getClass(java.lang.reflect.Type type)
Returns the class of a type.
|
protected static java.util.Collection<java.lang.reflect.ParameterizedType> |
getParameterizedTypes(java.util.Collection<java.lang.Class<?>> classes) |
static java.lang.reflect.Type |
getType(java.lang.Class<?> clazz,
java.lang.Object object,
java.lang.String variable)
Returns the type of the generic of the interface or class of an class for
an object.
|
protected static java.lang.reflect.Type |
getType(java.lang.Class<?> clazz,
java.lang.String variable,
java.util.Map<java.lang.reflect.Type,java.lang.reflect.ParameterizedType> map) |
protected static java.util.Map<java.lang.reflect.Type,java.lang.reflect.ParameterizedType> |
getTypes(java.lang.Class<?> clazz) |
public static java.lang.Class<?> getClass(java.lang.reflect.Type type)
type
- the typepublic static java.lang.reflect.Type getType(java.lang.Class<?> clazz, java.lang.Object object, java.lang.String variable)
clazz
- the interface with the undefined genericobject
- the current implementation of the interfacevariable
- the identifierprotected static java.lang.reflect.Type getType(java.lang.Class<?> clazz, java.lang.String variable, java.util.Map<java.lang.reflect.Type,java.lang.reflect.ParameterizedType> map)
protected static java.util.Map<java.lang.reflect.Type,java.lang.reflect.ParameterizedType> getTypes(java.lang.Class<?> clazz)
protected static java.util.Collection<java.lang.Class<?>> getAllClasses(java.lang.Class<?> clazz)
protected static java.util.Collection<java.lang.reflect.ParameterizedType> getParameterizedTypes(java.util.Collection<java.lang.Class<?>> classes)