| Modifier and Type | Class and Description |
|---|---|
| public static class | ReflectionHelper.
A tuple consisting of a class and type of the class. |
| public static class | ReflectionHelper.
A tuple consisting of a concrete class, declaring class that declares a generic interface type. |
| public static class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static Class | Returns: the Class, otherwise null if the class cannot be found.the class name. name)Get the Class from the class name. |
| public static Class | Returns: the Class, otherwise null if the class cannot be found.the class name. name, ClassLoader the class loader to use, if null then the defining class loader
of this class will be utilized. cl)Get the Class from the class name. |
| public static Class | Returns: the Class, otherwise null if the class cannot be found.the class name. name)Get the Class from the class name. |
| public static Class | Returns: the Class, otherwise null if the class cannot be found.the class name. name, ClassLoader the class loader to use, if null then the defining class loader
of this class will be utilized. cl)Get the Class from the class name. |
| public static < class type. T> PrivilegedExceptionAction | Returns: privileged exception action to obtain the Class. The action could throwClassNotFoundException or return null if the class cannot be found.class name. name)Get privileged exception action to obtain Class from given class name. |
| public static < class type. T> PrivilegedExceptionAction | Returns: privileged exception action to obtain the Class. The action throwsClassNotFoundException
or returns null if the class cannot be found.class name. name, final ClassLoader class loader to use, if cl)null then the defining class loader
of the calling class will be utilized.Get privileged exception action to obtain Class from given class name. |
| private static boolean | |
| public static Method | Returns: the found public method.the class to search for a public method c, Method the method to find m)Find a method on a class given an existing method. |
| public static Class | Returns: the array class.the component class of the array c)Get Array class of component class. |
| public static ReflectionHelper. | |
| private static ReflectionHelper. | |
| private static Class | |
| public static Class | Returns: type of the class.Class whose type is searched for. inspectedClass, Class<?> Class relatively to which the search is performed. superClass)Find a type of the class given it's Superclass. |
| private static ClassLoader | Returns: the context class loader, otherwisenull if not set.Get the context class loader. |
| public static PrivilegedAction | Returns: privileged action to obtain the actual context class loader. The action could returnnull if context class loader has not been set.Get privileged action to obtain context class loader. |
| public static Class | Returns: declaring class of provided object.object for which the declared class will be returned. ao)Get declaring class of provided field, method or constructor. |
| public static Method | Returns: the method, otherwise null if the method is not present.The class to obtain the method. c)Get the static fromString(String ) method. |
| public static Class | Returns: the class of the actual type argument. If the type argument is a class then the class is returned. If the type argument is a generic array type and the generic component type is a class then class of the array is returned. if the type argument is a parameterized type and it's raw type is a class then that class is returned. If the parameterizedType is not an instance of ParameterizedType or contains more than one type argument null is returned.must be an instance of ParameterizedType
and have exactly one type argument. parameterizedType)Get the class that is the type argument of a parameterized type. |
| public static < type. T> T | Returns: new instance ofClass.Class whose instance is going to be createdErrorCollector which collects the Exceptions.Creates an instance of |
| public static < type. T> T | Returns: new instance ofClass.Class whose instance is going to be createdCreates an instance of |
| public static OsgiRegistry | Returns: anOsgiRegistry instance or null if the class cannot be instantiated (not in OSGi
environment).Returns an |
| public static Class | Returns: the parameterized class arguments, or null if the generic interface type is not a parameterized type.the declaring class pGet the parameterized class arguments for a declaring class that declares a generic interface type. |
| public static Type[] | Returns: the parameterized type arguments, or null if the generic interface type is not a parameterized type.the declaring class pGet the parameterized type arguments for a declaring class that declares a generic interface type. |
| public static Constructor | Returns: the constructor, otherwise null if the constructor is not present.The class to obtain the constructor. c)Get the constructor that has a single parameter of String. |
| private static ReflectionHelper. | |
| private static ReflectionHelper. | |
| public static ReflectionHelper. | |
| private static Type | |
| private static String | |
| public static Method | Returns: the method, otherwise null if the method is not present.The class to obtain the method. c)Get the static valueOf(String ) method. |
| public static String | Returns: the string representation of the method and instance.the object whose class implements o, Method m.the method. m)Create a string representation of a method and an instance whose class implements the method. |
| public static String | Returns: the string representation of the object.the object. o)Create a string representation of an object. |
| public static ReflectionHelper. | Returns: the resolved Java class and type, otherwise null if the type variable could not be resolvedthe concrete class from which all type variables are resolved c, Class<T> the declaring class where the type variable was defined dc, TypeVariable<D extends GenericDeclaration> the type variable tv)Given a type variable resolve the Java class of that variable. |
| private static ReflectionHelper. | resolveTypeVariable(Class<T> c, Class<T> dc, TypeVariable<D extends GenericDeclaration> tv, Map<TypeVariable<D extends GenericDeclaration>, Type> map)
|
| private static ReflectionHelper. | resolveTypeVariable(ParameterizedType pt, Class<T> c, Class<T> dc, TypeVariable<D extends GenericDeclaration> tv, Map<TypeVariable<D extends GenericDeclaration>, Type> map)
|
| public static void |
| ReflectionHelper | back to summary |
|---|---|
| public ReflectionHelper() | |
| classForName | back to summary |
|---|---|
| public static Class Get the Class from the class name. The context class loader will be utilized if accessible and non-null. Otherwise the defining class loader of this class will be utilized. | |
| classForName | back to summary |
|---|---|
| public static Class Get the Class from the class name.
| |
| classForNameWithException | back to summary |
|---|---|
| public static Class Get the Class from the class name. The context class loader will be utilized if accessible and non-null. Otherwise the defining class loader of this class will be utilized.
| |
| classForNameWithException | back to summary |
|---|---|
| public static Class Get the Class from the class name.
| |
| classForNameWithExceptionPEA | back to summary |
|---|---|
| public static <T> PrivilegedExceptionAction Get privileged exception action to obtain Class from given class name. If run using security manager, the returned privileged exception action must be invoked within a doPrivileged block. The actual context class loader will be utilized if accessible and non-null. Otherwise the defining class loader of the calling class will be utilized.
| |
| classForNameWithExceptionPEA | back to summary |
|---|---|
| public static <T> PrivilegedExceptionAction Get privileged exception action to obtain Class from given class name. If run using security manager, the returned privileged exception action must be invoked within a doPrivileged block.
| |
| compareParameterTypes | back to summary |
|---|---|
| private static boolean compareParameterTypes(Type[] ts, Type[] _ts) | |
| findMethodOnClass | back to summary |
|---|---|
| public static Method findMethodOnClass(Class<T> c, Method m) Find a method on a class given an existing method. If there exists a public method on the class that has the same name and parameters as the existing method then that public method is returned.
Otherwise, if there exists a public method on the class that has
the same name and the same number of parameters as the existing method,
and each generic parameter type, in order, of the public method is equal
to the generic parameter type, in the same order, of the existing method
or is an instance of | |
| getArrayClass | back to summary |
|---|---|
| public static Class Get Array class of component class. | |
| getClass | back to summary |
|---|---|
| public static ReflectionHelper. Find the declaring class that implements or extends an interface.
| |
| getClass | back to summary |
|---|---|
| private static ReflectionHelper. | |
| getClassOfType | back to summary |
|---|---|
| private static Class | |
| getClassType | back to summary |
|---|---|
| public static Class Find a type of the class given it's Superclass. | |
| getContextClassLoader | back to summary |
|---|---|
| private static ClassLoader getContextClassLoader() Get the context class loader.
| |
| getContextClassLoaderPA | back to summary |
|---|---|
| public static PrivilegedAction Get privileged action to obtain context class loader. If run using security manager, the returned privileged action must be invoked within a doPrivileged block.
| |
| getDeclaringClass | back to summary |
|---|---|
| public static Class Get declaring class of provided field, method or constructor.
| |
| getFromStringStringMethod | back to summary |
|---|---|
| public static Method getFromStringStringMethod(Class<T> c) Get the static fromString(String ) method.
| |
| getGenericClass | back to summary |
|---|---|
| public static Class Get the class that is the type argument of a parameterized type.
| |
| getInstance | back to summary |
|---|---|
| public static <T> T getInstance(Class<T> c, ErrorCollector collector) Creates an instance of
| |
| getInstance | back to summary |
|---|---|
| public static <T> T getInstance(Class<T> c) throws IllegalAccessException, InstantiationException Creates an instance of
| |
| getOsgiRegistryInstance | back to summary |
|---|---|
| public static OsgiRegistry getOsgiRegistryInstance() Returns an
| |
| getParameterizedClassArguments | back to summary |
|---|---|
| public static Class Get the parameterized class arguments for a declaring class that declares a generic interface type.
| |
| getParameterizedTypeArguments | back to summary |
|---|---|
| public static Type[] getParameterizedTypeArguments(ReflectionHelper. Get the parameterized type arguments for a declaring class that declares a generic interface type.
| |
| getStringConstructor | back to summary |
|---|---|
| public static Constructor Get the constructor that has a single parameter of String.
| |
| getType | back to summary |
|---|---|
| private static ReflectionHelper. | |
| getType | back to summary |
|---|---|
| private static ReflectionHelper. | |
| getTypeArgumentAndClass | back to summary |
|---|---|
| public static ReflectionHelper. | |
| getTypeArgumentOfParameterizedType | back to summary |
|---|---|
| private static Type getTypeArgumentOfParameterizedType(Type parameterizedType) | |
| getTypeName | back to summary |
|---|---|
| private static String getTypeName(Class<T> type) | |
| getValueOfStringMethod | back to summary |
|---|---|
| public static Method getValueOfStringMethod(Class<T> c) Get the static valueOf(String ) method.
| |
| methodInstanceToString | back to summary |
|---|---|
| public static String methodInstanceToString(Object o, Method m) Create a string representation of a method and an instance whose class implements the method.
Returns a string consisting of the name of the class of which the object
is an instance, the at-sign character '
| |
| objectToString | back to summary |
|---|---|
| public static String objectToString(Object o) Create a string representation of an object.
Returns a string consisting of the name of the class of which the
object is an instance, the at-sign character ' o.getClass().getName() + '@' + Integer.toHexString(o.hashCode()) | |
| resolveTypeVariable | back to summary |
|---|---|
| public static ReflectionHelper. Given a type variable resolve the Java class of that variable.
| |
| resolveTypeVariable | back to summary |
|---|---|
| private static ReflectionHelper. | |
| resolveTypeVariable | back to summary |
|---|---|
| private static ReflectionHelper. | |
| setAccessibleMethod | back to summary |
|---|---|
| public static void setAccessibleMethod(final Method m) Set a method to be accessible.
| |
| Modifier and Type | Field and Description |
|---|---|
| public final Class | c
The class. |
| public final Type | t
The type of the class. |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| c | back to summary |
|---|---|
| public final Class<T> c The class. | |
| t | back to summary |
|---|---|
| public final Type t The type of the class. | |
| ClassTypePair | back to summary |
|---|---|
| public ClassTypePair(Class<T> c) | |
| ClassTypePair | back to summary |
|---|---|
| public ClassTypePair(Class<T> c, Type t) | |
| Modifier and Type | Field and Description |
|---|---|
| public final Class | |
| public final Class | |
| public final Type |
| Access | Constructor and Description |
|---|---|
| private |
| concreteClass | back to summary |
|---|---|
| public final Class<T> concreteClass | |
| declaringClass | back to summary |
|---|---|
| public final Class<T> declaringClass | |
| genericInterface | back to summary |
|---|---|
| public final Type genericInterface | |
| DeclaringClassInterfacePair | back to summary |
|---|---|
| private DeclaringClassInterfacePair(Class<T> concreteClass, Class<T> declaringClass, Type genericInteface) | |
| Access | Constructor and Description |
|---|---|
| public |
| TypeClassPair | back to summary |
|---|---|
| public TypeClassPair(Type t, Class<T> c) | |