|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectma.glasnost.orika.metadata.TypeFactory
public abstract class TypeFactory
TypeFactory contains various methods for obtaining a Type instance to represent various type situations.
| Field Summary | |
|---|---|
static Type<Object> |
TYPE_OF_OBJECT
The Type instance which represents the Object class |
| Method Summary | ||
|---|---|---|
static
|
componentTypeOf(T[] object)
Resolve the (element) component type for the given array. |
|
static
|
elementTypeOf(Iterable<T> object)
Resolve the nested element type for the given Iterable. |
|
static
|
limitedValueOf(Class<E> rawType,
Set<Type> recursiveBounds,
Type... actualTypeArguments)
|
|
static
|
limitedValueOf(ParameterizedType type,
Set<Type> recursiveBounds)
Return the Type for the given ParameterizedType, resolving actual type arguments where possible; uses recursiveBounds to limit the recursion. |
|
static
|
limitedValueOf(Type type,
Set<Type> recursiveBounds)
Return the Type for the given java.lang.reflect.Type, limiting the recursive depth on any type already contained in recursiveBounds. |
|
static
|
limitedValueOf(TypeVariable<?> var,
Set<Type> recursiveBounds)
Finds the Type value of the given TypeVariable, using recursiveBounds to limit the recursion. |
|
static
|
limitedValueOf(WildcardType var,
Set<Type> recursiveBounds)
Finds the Type value of the given wildcard type, using recursiveBounds to limit the recursion. |
|
static
|
resolveTypeOf(T object,
Type<?> referenceType)
Resolve the Type for the given object, using the provided referenceType to resolve the actual type arguments. |
|
static
|
resolveValueOf(Class<T> type,
Type<?> referenceType)
Resolve the Type for the given Class, using the provided referenceType to resolve the actual type arguments. |
|
static
|
resolveValueOf(ParameterizedType type,
Type<?> referenceType)
Resolve the Type for the given ParameterizedType, using the provided referenceType to resolve any unresolved actual type arguments. |
|
static
|
typeOf(T object)
Return the Type for the given object. |
|
static
|
valueOf(Class<E> rawType)
Resolves the Type value of the specified raw Class type |
|
static
|
valueOf(Class<E> rawType,
Type... actualTypeArguments)
Resolve the Type value of the given raw Class type, filling the type parameters with the provided actual type arguments |
|
static
|
valueOf(ParameterizedType type)
Return the Type for the given ParameterizedType, resolving actual type arguments where possible. |
|
static Type<?> |
valueOf(String typeDescriptor)
Constructs a nested type from a string description of that type; allows for package names to be omitted for 'java.lang' and 'java.util' classes. |
|
static
|
valueOf(Type type)
Return the Type for the given java.lang.reflect.Type, either for a ParameterizedType or a Class instance |
|
static
|
valueOf(Type<T> type)
This method declaration helps to shortcut the other methods for ParameterizedType which it extends; we just return it. |
|
static
|
valueOf(TypeVariable<?> var)
Finds the Type value of the given TypeVariable |
|
static
|
valueOf(WildcardType var)
Finds the Type value of the given wildcard type |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Type<Object> TYPE_OF_OBJECT
| Method Detail |
|---|
public static <E> Type<E> valueOf(Class<E> rawType)
rawType -
public static <E> Type<E> limitedValueOf(Class<E> rawType,
Set<Type> recursiveBounds,
Type... actualTypeArguments)
rawType - recursiveBounds - actualTypeArguments -
public static <E> Type<E> valueOf(Class<E> rawType,
Type... actualTypeArguments)
rawType - actualTypeArguments -
public static <T> Type<T> valueOf(Type<T> type)
type -
public static <T> Type<T> valueOf(ParameterizedType type)
type -
public static <T> Type<T> limitedValueOf(ParameterizedType type,
Set<Type> recursiveBounds)
type - recursiveBounds -
public static <T> Type<T> valueOf(TypeVariable<?> var)
var -
public static <T> Type<T> limitedValueOf(TypeVariable<?> var,
Set<Type> recursiveBounds)
var - recursiveBounds -
public static <T> Type<T> valueOf(WildcardType var)
var -
public static <T> Type<T> limitedValueOf(WildcardType var,
Set<Type> recursiveBounds)
var - recursiveBounds -
public static <T> Type<T> valueOf(Type type)
type -
public static <T> Type<T> limitedValueOf(Type type,
Set<Type> recursiveBounds)
type - recursiveBounds -
public static <T> Type<T> resolveValueOf(ParameterizedType type,
Type<?> referenceType)
type - referenceType -
public static <T> Type<T> resolveValueOf(Class<T> type,
Type<?> referenceType)
type - referenceType -
public static <T> Type<T> typeOf(T object)
object -
public static <T> Type<T> resolveTypeOf(T object,
Type<?> referenceType)
object - referenceType -
public static <T> Type<T> componentTypeOf(T[] object)
object -
public static <T> Type<T> elementTypeOf(Iterable<T> object)
object -
public static Type<?> valueOf(String typeDescriptor)
typeDescriptor - a string representation of the java declaration of a generic type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||