public abstract class GenericCollectionTypeResolver
extends java.lang.Object
Title: GenericCollectionTypeResolver.java
Description:
bboss workgroup
Copyright (c) 2008
| 构造器和说明 |
|---|
GenericCollectionTypeResolver() |
| 限定符和类型 | 方法和说明 |
|---|---|
static java.lang.Class |
getCollectionFieldType(java.lang.reflect.Field collectionField)
Determine the generic element type of the given Collection field.
|
static java.lang.Class |
getCollectionFieldType(java.lang.reflect.Field collectionField,
int nestingLevel)
Determine the generic element type of the given Collection field.
|
static java.lang.Class |
getCollectionParameterType(MethodParameter methodParam)
Determine the generic element type of the given Collection parameter.
|
static java.lang.Class |
getCollectionReturnType(java.lang.reflect.Method method)
Determine the generic element type of the given Collection return type.
|
static java.lang.Class |
getCollectionReturnType(java.lang.reflect.Method method,
int nestingLevel)
Determine the generic element type of the given Collection return type.
|
static java.lang.Class |
getCollectionType(java.lang.Class collectionClass)
Determine the generic element type of the given Collection class
(if it declares one through a generic superclass or generic interface).
|
static java.lang.Class |
getMapKeyFieldType(java.lang.reflect.Field mapField)
Determine the generic key type of the given Map field.
|
static java.lang.Class |
getMapKeyFieldType(java.lang.reflect.Field mapField,
int nestingLevel)
Determine the generic key type of the given Map field.
|
static java.lang.Class |
getMapKeyParameterType(MethodParameter methodParam)
Determine the generic key type of the given Map parameter.
|
static java.lang.Class |
getMapKeyReturnType(java.lang.reflect.Method method)
Determine the generic key type of the given Map return type.
|
static java.lang.Class |
getMapKeyReturnType(java.lang.reflect.Method method,
int nestingLevel)
Determine the generic key type of the given Map return type.
|
static java.lang.Class |
getMapKeyType(java.lang.Class mapClass)
Determine the generic key type of the given Map class
(if it declares one through a generic superclass or generic interface).
|
static java.lang.Class |
getMapValueFieldType(java.lang.reflect.Field mapField)
Determine the generic value type of the given Map field.
|
static java.lang.Class |
getMapValueFieldType(java.lang.reflect.Field mapField,
int nestingLevel)
Determine the generic value type of the given Map field.
|
static java.lang.Class |
getMapValueParameterType(MethodParameter methodParam)
Determine the generic value type of the given Map parameter.
|
static java.lang.Class |
getMapValueReturnType(java.lang.reflect.Method method)
Determine the generic value type of the given Map return type.
|
static java.lang.Class |
getMapValueReturnType(java.lang.reflect.Method method,
int nestingLevel)
Determine the generic value type of the given Map return type.
|
static java.lang.Class |
getMapValueType(java.lang.Class mapClass)
Determine the generic value type of the given Map class
(if it declares one through a generic superclass or generic interface).
|
public static java.lang.Class getCollectionType(java.lang.Class collectionClass)
collectionClass - the collection class to introspectnull if nonepublic static java.lang.Class getMapKeyType(java.lang.Class mapClass)
mapClass - the map class to introspectnull if nonepublic static java.lang.Class getMapValueType(java.lang.Class mapClass)
mapClass - the map class to introspectnull if nonepublic static java.lang.Class getCollectionFieldType(java.lang.reflect.Field collectionField)
collectionField - the collection field to introspectnull if nonepublic static java.lang.Class getCollectionFieldType(java.lang.reflect.Field collectionField,
int nestingLevel)
collectionField - the collection field to introspectnestingLevel - the nesting level of the target type
(typically 1; e.g. in case of a List of Lists, 1 would indicate the
nested List, whereas 2 would indicate the element of the nested List)null if nonepublic static java.lang.Class getMapKeyFieldType(java.lang.reflect.Field mapField)
mapField - the map field to introspectnull if nonepublic static java.lang.Class getMapKeyFieldType(java.lang.reflect.Field mapField,
int nestingLevel)
mapField - the map field to introspectnestingLevel - the nesting level of the target type
(typically 1; e.g. in case of a List of Lists, 1 would indicate the
nested List, whereas 2 would indicate the element of the nested List)null if nonepublic static java.lang.Class getMapValueFieldType(java.lang.reflect.Field mapField)
mapField - the map field to introspectnull if nonepublic static java.lang.Class getMapValueFieldType(java.lang.reflect.Field mapField,
int nestingLevel)
mapField - the map field to introspectnestingLevel - the nesting level of the target type
(typically 1; e.g. in case of a List of Lists, 1 would indicate the
nested List, whereas 2 would indicate the element of the nested List)null if nonepublic static java.lang.Class getCollectionParameterType(MethodParameter methodParam)
methodParam - the method parameter specificationnull if nonepublic static java.lang.Class getMapKeyParameterType(MethodParameter methodParam)
methodParam - the method parameter specificationnull if nonepublic static java.lang.Class getMapValueParameterType(MethodParameter methodParam)
methodParam - the method parameter specificationnull if nonepublic static java.lang.Class getCollectionReturnType(java.lang.reflect.Method method)
method - the method to check the return type fornull if nonepublic static java.lang.Class getCollectionReturnType(java.lang.reflect.Method method,
int nestingLevel)
If the specified nesting level is higher than 1, the element type of a nested Collection/Map will be analyzed.
method - the method to check the return type fornestingLevel - the nesting level of the target type
(typically 1; e.g. in case of a List of Lists, 1 would indicate the
nested List, whereas 2 would indicate the element of the nested List)null if nonepublic static java.lang.Class getMapKeyReturnType(java.lang.reflect.Method method)
method - the method to check the return type fornull if nonepublic static java.lang.Class getMapKeyReturnType(java.lang.reflect.Method method,
int nestingLevel)
method - the method to check the return type fornestingLevel - the nesting level of the target type
(typically 1; e.g. in case of a List of Lists, 1 would indicate the
nested List, whereas 2 would indicate the element of the nested List)null if nonepublic static java.lang.Class getMapValueReturnType(java.lang.reflect.Method method)
method - the method to check the return type fornull if nonepublic static java.lang.Class getMapValueReturnType(java.lang.reflect.Method method,
int nestingLevel)
method - the method to check the return type fornestingLevel - the nesting level of the target type
(typically 1; e.g. in case of a List of Lists, 1 would indicate the
nested List, whereas 2 would indicate the element of the nested List)null if none