| Modifier and Type | Field and Description |
|---|---|
| public static final Annotation[] | EMPTY_ANNOTATION_ARRAY
An empty array of type |
| public static final Class | |
| public static final Object[] | EMPTY_OBJECT_ARRAY
An empty array of type |
| public static final Type[] |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static String | |
| private static String | |
| private static String | |
| public static Map | |
| public static < the type to cast to T> T | |
| public static <T> Class | Returns: the class objectthe name of the class to load name, ClassLoader... additional classloaders to use to attempt to load the class loaders)Loads and initializes a class for the given name. |
| public static boolean | |
| public static Constructor | Returns: The constructor found, or null if no constructor is foundThe class to search clazz, Class<?>... The arguments of the constructor to search for args)Search the class hierarchy for a constructor with the given arguments. |
| public static Field | Returns: The field found, or null if no field is foundThe class to search clazz, String The name of the field to search for name)Search the class hierarchy for a field with the given name. |
| public static Method | Returns: The method found, or null if no method is foundThe class to search clazz, String The name of the method to search for name, Class<?>... The arguments of the method to search for args)Search the class hierarchy for a method with the given name and arguments. |
| public static Set | Returns: the set of all declared constructors or an empty set if there are noneThe class to search clazz)Get all the declared constructors on the class hierarchy. |
| public static Set | Returns: the set of all declared fields or an empty set if there are noneThe class to search clazz)Get all the declared fields on the class hierarchy. |
| public static Set | Returns: the set of all declared methods or an empty set if there are noneThe class to search clazz)Get all the declared methods on the class hierarchy. |
| public static Set | Returns: The set of annotations with the specified meta annotation, or an empty set if none are foundThe annotation set to search annotations, Class<? extends Annotation> The type of the meta annotation to search for metaAnnotationType)Search for annotations with the specified meta annotation type |
| public static Object | |
| public static < the type of the field's value T> T | Returns: the value of the fieldthe field to operate on field, Object the instance from which to retrieve the value instance, Class<T> the expected type of the field's value expectedType)Get the value of the field, on the specified instance, casting the value of the field to the expected type. |
| public static Class | |
| public static int | |
| public static Object | |
| public static String | Returns: The name of the property. Returns null if method wasn't JavaBean getter-styledThe getter method method)Gets the property name from a getter method. |
| public static < the type T> Class | Returns: the raw type, or null if the raw type cannot be determined.the type to extract the raw type from type)Extract the raw type, given a type. |
| public static Object | invokeMethod(Method method, Object instance, Object... args)
Invoke the specified method on the provided instance, passing any additional arguments included in this method as arguments to the specified method. |
| public static Object | invokeMethod(boolean setAccessible, Method method, Object instance, Object... args)
Invoke the specified method on the provided instance, passing any additional arguments included in this method as arguments to the specified method. |
| public static <T> T | invokeMethod(Method method, Class<T> expectedReturnType, Object instance, Object... args)
Invoke the specified method on the provided instance, passing any additional arguments included in this method as arguments to the specified method. |
| public static <T> T | Returns: the result of invoking the method, or null if the method's return type is voidflag indicating whether method should first be set as accessible setAccessible, Method the method to invoke method, Class<T> expectedReturnType, Object the instance to invoke the method instance, Object... the arguments to the method args)Invoke the method on the instance, with any arguments specified, casting the result of invoking the method to the expected return type. |
| public static boolean | |
| public static boolean | Returns: True if array, false otherwiseThe raw type to check rawType)Checks if raw type is array type |
| public static boolean | isAssignableFrom(Class<?>
the raw type of the class to check rawType1, Type[] the actual type arguements to check, or an empty array if not a parameterized type actualTypeArguments1, Class<?> the raw type of the class to check rawType2, Type[] the actual type arguements to check, or an empty array if not a parameterized type actualTypeArguments2)Check the assignability of one type to another, taking into account the actual type arguements |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | isAssignableFrom(Set<Type> types1, Set<Type> types2)
Check the assiginability of a set of flattened types. |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | Returns: True if parameterized, false otherwiseThe type to check type)Checks if type is parameterized type |
| public static boolean | |
| public static boolean | |
| public static boolean | Returns: true if the class implements serializable or is a primitiveThe class to check clazz)Check if a class is serializable. |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | Returns: True if final, false otherwiseType or member type)Checks if type or member is final |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | Returns: true if a method is found, otherwise falseThe class to search clazz, String The name of the method name)Determine if a method exists in a specified class hierarchy |
| public static <T> T | Returns: A newly allocated instance of the class.The class from where the instance should be created. fromClass)Creates a new instance of a class. |
| public static <T> T | Returns: A newly allocated instance of the class.The class that will be used to get the class loader from. type, final String The full qualified name of the class from which the instance will be created. fullQualifiedName)Creates a new instance of a class given its |
| public static Class | resolveListType(Field
the field declared as field, Object Listthe instance that should be used to obtain infer the type in case no parametrized type is found in the field. instance) |
| public static < member the accessible object type A extends AccessibleObject> A | Returns: the accessible object after the accessible flag has been alteredthe accessible object member)Set the accessibility flag on the |
| public static < member the accessible object type A extends AccessibleObject> A | Returns: the accessible object after the accessible flag has been alteredthe accessible object member)Set the accessibility flag on the |