org.opt4j.core.start
Class Parameters
java.lang.Object
org.opt4j.core.start.Parameters
public class Parameters
- extends java.lang.Object
The Parameters is a class for the identification of types/classes of
a generic parameter.
|
Method Summary |
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Parameters
public Parameters()
getClass
public static java.lang.Class<?> getClass(java.lang.reflect.Type type)
- Returns the class of a type.
- Parameters:
type - the type
- Returns:
- the class
getType
public 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.
- Parameters:
clazz - the interface with the undefined genericobject - the current implementation of the interfacevariable - the identifier
- Returns:
- the implemented type of the generic
getType
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)
getTypes
protected static java.util.Map<java.lang.reflect.Type,java.lang.reflect.ParameterizedType> getTypes(java.lang.Class<?> clazz)
getAllClasses
protected static java.util.Collection<java.lang.Class<?>> getAllClasses(java.lang.Class<?> clazz)
getParameterizedTypes
protected static java.util.Collection<java.lang.reflect.ParameterizedType> getParameterizedTypes(java.util.Collection<java.lang.Class<?>> classes)