PrivilegedAction which is necessary
for situations where a security manager is in place.
| Modifier and Type | Field and Description |
|---|---|
| private static final Log | |
| private static final Map | |
| private static final Map |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Type | |
| public static Class | |
| public static Class | Returns: the class corresponding to the typethe type to convert type)Converts the given |
| public static Type | getCollectionElementType(Type type)
Determines the type of the elements of an |
| public static Object | Returns: The indexed value ornull if value is null or not a collection or array.
null is also returned in case the index does not exist.The object from which to retrieve the indexed value. The object has to be non value, int null and
either a collection or array.The index. index)Tries to retrieve the indexed value from the specified object. |
| public static Object | Returns: The mapped value ornull if value is null or not implementing @{code Map}.The object from which to retrieve the mapped value. The object has to be non value, Object null and
must implement the @{code Map} interface.The map key. index. key)Tries to retrieve the mapped value from the specified object. |
| public static Object | |
| public static Object | |
| private static Class | Returns: the auto-boxed type of a primitive type. In caseVoid is
passed (which is considered as primitive type by
Class#isPrimitive()), Void will be returned.the primitive type primitiveType)Returns the auto-boxed type of a primitive type. |
| public static boolean | isCollection(Type type)
Indicates whether the given type represents a collection of elements or not (i.e. whether it is an
|
| public static boolean | Returns: Returns true if the type is indexable.the type to inspect. type)Indicates if the type is considered indexable (ie is a |
| public static boolean | Returns: Returnstrue if type is a iterable type, false otherwise.the type to check. type)
|
| public static boolean | |
| public static boolean | |
| public static Type | |
| public static Class | Returns: the primitive type for a auto-boxed type. In caseVoid is
passed (which is considered as primitive type by
Class#isPrimitive()), Void will be returned.the boxed type type)Returns the primitive type for a boxed type. |
| LOG | back to summary |
|---|---|
| private static final Log LOG | |
| PRIMITIVE_TO_WRAPPER_TYPES | back to summary |
|---|---|
| private static final Map<Class<?>, Class<?>> PRIMITIVE_TO_WRAPPER_TYPES | |
| WRAPPER_TO_PRIMITIVE_TYPES | back to summary |
|---|---|
| private static final Map<Class<?>, Class<?>> WRAPPER_TO_PRIMITIVE_TYPES | |
| ReflectionHelper | back to summary |
|---|---|
| private ReflectionHelper() Private constructor in order to avoid instantiation. | |
| boxedType | back to summary |
|---|---|
| public static Type boxedType(Type type) Returns the corresponding auto-boxed type if given a primitive type. Returns the given type itself otherwise. | |
| boxedType | back to summary |
|---|---|
| public static Class Returns the corresponding auto-boxed type if given a primitive type. Returns the given type itself otherwise. | |
| getClassFromType | back to summary |
|---|---|
| public static Class Converts the given | |
| getCollectionElementType | back to summary |
|---|---|
| public static Type getCollectionElementType(Type type) Determines the type of the elements of an | |
| getIndexedValue | back to summary |
|---|---|
| public static Object getIndexedValue(Object value, int index) Tries to retrieve the indexed value from the specified object.
| |
| getMappedValue | back to summary |
|---|---|
| public static Object getMappedValue(Object value, Object key) Tries to retrieve the mapped value from the specified object. | |
| getValue | back to summary |
|---|---|
| public static Object getValue(Field field, Object object) | |
| getValue | back to summary |
|---|---|
| public static Object getValue(Method method, Object object) | |
| internalBoxedType | back to summary |
|---|---|
| private static Class Returns the auto-boxed type of a primitive type.
| |
| isCollection | back to summary |
|---|---|
| public static boolean isCollection(Type type) Indicates whether the given type represents a collection of elements or not (i.e. whether it is an
| |
| isIndexable | back to summary |
|---|---|
| public static boolean isIndexable(Type type) Indicates if the type is considered indexable (ie is a
Note that it does not include
| |
| isIterable | back to summary |
|---|---|
public static boolean isIterable(Type type)
| |
| isList | back to summary |
|---|---|
public static boolean isList(Type type)
| |
| isMap | back to summary |
|---|---|
public static boolean isMap(Type type)
| |
| typeOf | back to summary |
|---|---|
public static Type typeOf(Member member)
| |
| unBoxedType | back to summary |
|---|---|
| public static Class Returns the primitive type for a boxed type.
| |