public class Introspector
extends java.lang.Object
| Constructor and Description |
|---|
Introspector(java.lang.String[] projectPaths)
Creates the introspector that accesses the classes contained in the specified paths.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkClass(java.lang.reflect.Field field,
java.lang.Class<?> fieldClass,
boolean allowWrapper)
Returns whether the type of the field is the specified class.
|
boolean |
checkClass(java.lang.reflect.Parameter parameter,
java.lang.Class<?> clazz,
boolean allowWrapper)
Returns whether the type of the parameter is the specified class.
|
boolean |
checkClassExists(java.lang.String className)
Returns whether the class can be accessed by the class loader.
|
boolean |
checkDeclaredConstructor(java.lang.Class<?> clazz,
java.lang.Class<?>[] paramClasses,
boolean allowWrappers)
Returns whether the class declares a constructor with the specified parameter classes.
|
boolean |
checkDeclaredField(java.lang.Class<?> clazz,
java.lang.String fieldName)
Returns whether the class declares a field with the specified name.
|
boolean |
checkDeclaredField(java.lang.Class<?> clazz,
java.lang.String fieldName,
java.lang.Class<?> fieldClass,
boolean allowWrapper)
Returns whether the class declares a field with the specified name.
|
boolean |
checkDeclaredField(java.lang.Class<?> clazz,
java.lang.String fieldName,
java.lang.reflect.TypeVariable<?> fieldGenericType)
Returns whether the class declares a field with the specified name.
|
boolean |
checkDeclaredMethod(java.lang.Class<?> clazz,
java.lang.String methodName,
java.lang.Class<?>[] paramClasses,
boolean allowWrappers)
Returns whether the class declares a method with the specified name and parameter classes.
|
boolean |
checkDeclaredMethod(java.lang.Class<?> clazz,
java.lang.String methodName,
java.lang.Class<?>[] paramClasses,
java.lang.Class<?> returnClass,
boolean allowWrappers)
Returns whether the class declares a method with the specified name and parameter classes.
|
boolean |
checkDeclaredMethod(java.lang.Class<?> clazz,
java.lang.String methodName,
java.lang.Class<?>[] paramClasses,
java.lang.reflect.TypeVariable<?> returnGenericType,
boolean allowWrappers)
Returns whether the class declares a method with the specified name and parameter classes.
|
boolean |
checkGenericType(java.lang.reflect.Field field)
Returns whether the type of the field is a generic type.
|
boolean |
checkGenericType(java.lang.reflect.Field field,
int index)
Returns whether the type of the field at the specified position is a generic type.
|
boolean |
checkGenericType(java.lang.reflect.Field field,
int[] indices)
Returns whether the type of the field at the specified position is a generic type.
|
boolean |
checkGenericType(java.lang.reflect.Field field,
int[] indices,
java.lang.reflect.TypeVariable<?> genericType)
Returns whether the type of the field at the specified position is the specified generic type.
|
boolean |
checkGenericType(java.lang.reflect.Field field,
int index,
java.lang.reflect.TypeVariable<?> genericType)
Returns whether the type of the field at the specified position is the specified generic type.
|
boolean |
checkGenericType(java.lang.reflect.Field field,
java.lang.reflect.TypeVariable<?> genericType)
Returns whether the type of the field is the specified generic type.
|
boolean |
checkGenericType(java.lang.reflect.Parameter parameter)
Returns whether the type of the parameter is a generic type.
|
boolean |
checkGenericType(java.lang.reflect.Parameter parameter,
int index)
Returns whether the type of the parameter at the specified position is a generic type.
|
boolean |
checkGenericType(java.lang.reflect.Parameter parameter,
int[] indices)
Returns whether the type of the parameter at the specified position is a generic type.
|
boolean |
checkGenericType(java.lang.reflect.Parameter parameter,
int[] indices,
java.lang.reflect.TypeVariable<?> genericType)
Returns whether the type of the parameter at the specified position is the specified generic type.
|
boolean |
checkGenericType(java.lang.reflect.Parameter parameter,
int index,
java.lang.reflect.TypeVariable<?> genericType)
Returns whether the type of the parameter at the specified position is the specified generic type.
|
boolean |
checkGenericType(java.lang.reflect.Parameter parameter,
java.lang.reflect.TypeVariable<?> genericType)
Returns whether the type of the parameter is the specified generic type.
|
boolean |
checkImplements(java.lang.Class<?> clazz,
java.lang.Class<?> interfaceClass)
Returns whether the class implements the specified interface.
|
boolean |
checkParameter(java.lang.reflect.Executable executable,
java.lang.String parameterName)
Returns whether the executable declares a parameter with the specified name.
|
boolean |
checkParameter(java.lang.reflect.Executable executable,
java.lang.String parameterName,
java.lang.Class<?> parameterClass,
boolean allowWrapper)
Returns whether the executable declares a parameter with the specified name.
|
boolean |
checkParameter(java.lang.reflect.Executable executable,
java.lang.String parameterName,
java.lang.reflect.TypeVariable<?> parameterGenericType)
Returns whether the executable declares a parameter with the specified name.
|
boolean |
checkReturnClass(java.lang.reflect.Method method,
java.lang.Class<?> clazz,
boolean allowWrapper)
Returns whether the type that represents the return type of the method is the specified class.
|
boolean |
checkReturnGenericType(java.lang.reflect.Method method)
Returns whether the type that represents the return type of the method is a generic type.
|
boolean |
checkReturnGenericType(java.lang.reflect.Method method,
int index)
Returns whether the type that represents the return type of the method at the specified position is a generic type.
|
boolean |
checkReturnGenericType(java.lang.reflect.Method method,
int[] indices)
Returns whether the type that represents the return type of the method at the specified position is a generic type.
|
boolean |
checkReturnGenericType(java.lang.reflect.Method method,
int[] indices,
java.lang.reflect.TypeVariable<?> genericType)
Returns whether the type that represents the return type of the method at the specified position is the specified generic type.
|
boolean |
checkReturnGenericType(java.lang.reflect.Method method,
int index,
java.lang.reflect.TypeVariable<?> genericType)
Returns whether the type that represents the return type of the method at the specified position is the specified generic type.
|
boolean |
checkReturnGenericType(java.lang.reflect.Method method,
java.lang.reflect.TypeVariable<?> genericType)
Returns whether the type that represents the return type of the method is the specified generic type.
|
boolean |
checkSameClasses(java.lang.Class<?> clazz1,
java.lang.Class<?> clazz2)
Returns whether class1 and class2 are the same classes.
|
boolean |
checkSameClasses(java.lang.Class<?> clazz1,
java.lang.Class<?> clazz2,
boolean allowWrappers)
Returns whether class1 and class2 are the same class.
|
boolean |
checkSameGenericTypes(java.lang.reflect.TypeVariable<?> genericType1,
java.lang.reflect.TypeVariable<?> genericType2)
Returns whether type1 and type2 are the same generic type.
|
boolean |
checkSuperclass(java.lang.Class<?> clazz,
java.lang.Class<?> superclass)
Returns whether the class extends the specified superclass.
|
boolean |
checkType(java.lang.reflect.Field field,
java.lang.reflect.TypeVariable<?> genericType)
Returns whether the type of the field is the specified generic type.
|
java.lang.reflect.Type[] |
getActualTypeArguments(java.lang.reflect.ParameterizedType parameterizedType)
Returns the actual type arguments of the parameterized type.
|
java.lang.reflect.Type[] |
getBounds(java.lang.reflect.TypeVariable<?> typeVariable)
Returns the type of the upper bound(s) of the specified type variable.
|
java.lang.Class<?> |
getClass(java.lang.reflect.Field field)
Returns the class of the field.
|
java.lang.Class<?> |
getClass(java.lang.reflect.Parameter parameter)
Returns the class of the parameter.
|
java.lang.Class<?> |
getClass(java.lang.String className)
Returns the class from the class loader whose name is the specified one.
|
java.lang.Class<?>[] |
getClasses()
Returns all the classes from the project that are visible by the class loader.
|
java.lang.Class<?>[] |
getClasses(java.lang.Class<?> clazz)
Returns the public classes and interfaces that are members of the specified class (this includes inherited ones).
|
java.lang.Class<?> |
getComponentClass(java.lang.Class<?> clazz)
Returns the class that represents the elements of the specified array class.
|
java.lang.reflect.Type |
getComponentType(java.lang.reflect.GenericArrayType genericArrayType)
Returns the type of the components of the array.
|
java.lang.reflect.Constructor<?> |
getConstructor(java.lang.Class<?> clazz,
java.lang.Class<?>... paramClasses)
Returns the public constructor with the specified parameter classes that is member of the class (this excludes inherited ones).
|
java.lang.reflect.Constructor<?>[] |
getConstructors(java.lang.Class<?> clazz)
Returns the public constructors that are members of the class (this excludes inherited ones).
|
java.lang.Class<?> |
getCurrentClass(java.lang.Class<?> clazz)
Returns the class related to the specified class
that is being used by the current class loader.
|
java.lang.Class<?>[] |
getCurrentClasses(java.lang.Class<?>[] classes)
Returns the classes related to the specified classes
that are being used by the current class loader.
|
java.lang.reflect.Constructor<?> |
getCurrentConstructor(java.lang.reflect.Constructor<?> constructor)
Returns the constructor related to the specified constructor
that is being used by the current class loader.
|
java.lang.reflect.Executable |
getCurrentExecutable(java.lang.reflect.Executable executable)
Returns the executable related to the specified executable
that is being used by the current class loader.
|
java.lang.reflect.Field |
getCurrentField(java.lang.reflect.Field field)
Returns the field related to the specified field
that is being used by the current class loader.
|
java.lang.reflect.Method |
getCurrentMethod(java.lang.reflect.Method method)
Returns the method related to the specified method
that is being used by the current class loader.
|
java.lang.reflect.Parameter |
getCurrentParameter(java.lang.reflect.Parameter parameter)
Returns the parameter related to the specified parameter
that is being used by the current class loader.
|
java.lang.Class<?>[] |
getDeclaredClasses(java.lang.Class<?> clazz)
Returns the classes and interfaces that are declared by the specified class (this excludes inherited ones).
|
java.lang.reflect.Constructor<?> |
getDeclaredConstructor(java.lang.Class<?> clazz,
java.lang.Class<?>... paramClasses)
Returns the constructor with the specified parameter classes that is declared by the class (this excludes inherited ones).
|
java.lang.reflect.Constructor<?> |
getDeclaredConstructor(java.lang.Class<?> clazz,
java.lang.Class<?>[] paramClasses,
boolean allowWrappers)
Returns the constructor with the specified parameter classes that is declared by the class.
|
int |
getDeclaredConstructorCount(java.lang.Class<?> clazz)
Returns the number of constructors that are declared by the class.
|
java.lang.reflect.Constructor<?>[] |
getDeclaredConstructors(java.lang.Class<?> clazz)
Returns the constructors that are declared by the class (this excludes inherited ones).
|
java.lang.reflect.Field |
getDeclaredField(java.lang.Class<?> clazz,
java.lang.String fieldName)
Returns the field with the specified name that is declared by the class (this excludes inherited ones).
|
java.lang.reflect.Field |
getDeclaredField(java.lang.Class<?> clazz,
java.lang.String fieldName,
java.lang.Class<?> fieldClass,
boolean allowWrapper)
Returns the field with the specified name that is declared by the class.
|
java.lang.reflect.Field |
getDeclaredField(java.lang.Class<?> clazz,
java.lang.String fieldName,
java.lang.reflect.TypeVariable<?> fieldGenericType)
Returns the field with the specified name that is declared by the class.
|
int |
getDeclaredFieldCount(java.lang.Class<?> clazz)
Returns the number of fields that are declared by the class.
|
java.lang.reflect.Field[] |
getDeclaredFields(java.lang.Class<?> clazz)
Returns the fields that are declared by the class (this excludes inherited ones).
|
java.lang.reflect.Method |
getDeclaredMethod(java.lang.Class<?> clazz,
java.lang.String methodName,
java.lang.Class<?>... paramClasses)
Returns the method with the specified name and parameter classes that is declared by the class (this excludes inherited ones).
|
java.lang.reflect.Method |
getDeclaredMethod(java.lang.Class<?> clazz,
java.lang.String methodName,
java.lang.Class<?>[] paramClasses,
boolean allowWrappers)
Returns the method with the specified name and parameter classes that is declared by the class.
|
java.lang.reflect.Method |
getDeclaredMethod(java.lang.Class<?> clazz,
java.lang.String methodName,
java.lang.Class<?>[] paramClasses,
java.lang.Class<?> returnClass,
boolean allowWrappers)
Returns the method with the specified name, parameter classes and return class that is declared by the class.
|
java.lang.reflect.Method |
getDeclaredMethod(java.lang.Class<?> clazz,
java.lang.String methodName,
java.lang.Class<?>[] paramClasses,
java.lang.reflect.TypeVariable<?> returnGenericType,
boolean allowWrappers)
Returns the method with the specified name, parameter classes and return generic type that is declared by the class.
|
int |
getDeclaredMethodCount(java.lang.Class<?> clazz)
Returns the number of methods that are declared by the class.
|
java.lang.reflect.Method[] |
getDeclaredMethods(java.lang.Class<?> clazz)
Returns the methods that are declared by the class (this excludes inherited ones).
|
java.lang.Class<?> |
getDeclaringClass(java.lang.Class<?> clazz)
Returns the class that declares the specified class.
|
java.lang.Class<?> |
getDeclaringClass(java.lang.reflect.Executable executable)
Returns the class that declares the executable.
|
java.lang.Class<?> |
getDeclaringClass(java.lang.reflect.Field field)
Returns the class that declares the field.
|
java.lang.reflect.Executable |
getDeclaringExecutable(java.lang.reflect.Parameter parameter)
Returns the executable that declares the parameter.
|
java.lang.Class<?> |
getEnclosingClass(java.lang.Class<?> clazz)
Returns the class that encloses the specified class.
|
java.lang.reflect.Constructor<?> |
getEnclosingConstructor(java.lang.Class<?> clazz)
Returns the constructor that encloses the class.
|
java.lang.reflect.Method |
getEnclosingMethod(java.lang.Class<?> clazz)
Returns the method that encloses the class.
|
<T> T[] |
getEnumConstants(java.lang.Class<T> clazz)
Returns the elements that are declared by the enumerate class.
|
java.lang.Class<?>[] |
getExceptionClasses(java.lang.reflect.Executable executable)
Returns the classes of the exceptions that are declared to be thrown by the executable.
|
java.lang.reflect.Type[] |
getExceptionTypes(java.lang.reflect.Executable executable)
Returns the type of the exceptions that are declared to be thrown by the executable.
|
java.lang.reflect.Field |
getField(java.lang.Class<?> clazz,
java.lang.String fieldName)
Returns the public field with the specified name that is member of the class (this includes inherited ones).
|
java.lang.reflect.Field[] |
getFields(java.lang.Class<?> clazz)
Returns the public fields that are members of the class (this includes inherited ones).
|
java.lang.reflect.TypeVariable<?> |
getGenericType(java.lang.reflect.Type type,
int[] indices)
Returns the generic type of the specified type at the specified position.
|
int |
getGenericTypeParameterCount(java.lang.Class<?> clazz)
Returns the number of generic type parameters of the class.
|
java.lang.reflect.TypeVariable<?>[] |
getGenericTypeParameters(java.lang.Class<?> clazz)
Returns the generic type parameters of the class.
|
java.lang.reflect.TypeVariable<?>[] |
getGenericTypeParameters(java.lang.reflect.Executable executable)
Returns the generic type parameters of the executable.
|
java.lang.reflect.TypeVariable<?>[] |
getGenericTypes(java.lang.reflect.Type[] types)
Returns the generic types of the specified types.
|
int |
getInterfaceCount(java.lang.Class<?> clazz)
Returns the number of interfaces that are implemented by the class.
|
java.lang.Class<?>[] |
getInterfaces(java.lang.Class<?> clazz)
Returns the interfaces implemented by the class.
|
java.lang.reflect.Type[] |
getInterfacesTypes(java.lang.Class<?> clazz)
Returns the type of the interfaces that are implemented by class.
|
java.lang.reflect.Type[] |
getLowerBounds(java.lang.reflect.WildcardType wildcardType)
Returns the type of the lower bound(s) of the specified wildcard type.
|
java.lang.reflect.Method |
getMethod(java.lang.Class<?> clazz,
java.lang.String methodName,
java.lang.Class<?>... paramClasses)
Returns the public method with the specified name and parameter classes that is member of the class (this includes inherited ones).
|
java.lang.reflect.Method[] |
getMethods(java.lang.Class<?> clazz)
Returns the public methods that are members of the class (this includes inherited ones).
|
int |
getModifiers(java.lang.Class<?> clazz)
Returns the modifiers of the class.
|
int |
getModifiers(java.lang.reflect.Executable executable)
Returns the modifiers of the executable.
|
int |
getModifiers(java.lang.reflect.Field field)
Returns the modifiers of the field.
|
int |
getModifiers(java.lang.reflect.Parameter parameter)
Returns the modifiers of the parameter.
|
java.lang.String |
getName(java.lang.Class<?> clazz)
Returns the name of the class.
|
java.lang.String |
getName(java.lang.reflect.Field field)
Returns the name of the field.
|
java.lang.String |
getName(java.lang.reflect.Method method)
Returns the name of the method.
|
java.lang.String |
getName(java.lang.reflect.Parameter parameter)
Returns the name of the parameter.
|
java.lang.String |
getName(java.lang.reflect.Type type)
Returns a String describing the type.
|
java.lang.String |
getName(java.lang.reflect.TypeVariable<?> genericType)
Returns the name of the generic type.
|
java.lang.reflect.Type |
getOwnerType(java.lang.reflect.ParameterizedType parameterizedType)
Returns the type that the specified parameterized type is member of.
|
java.lang.Package |
getPackage(java.lang.Class<?> clazz)
Returns the package of the class.
|
java.lang.reflect.Parameter |
getParameter(java.lang.reflect.Executable executable,
java.lang.String parameterName)
Returns the parameter with the specified name that is declared by the executable.
|
java.lang.reflect.Parameter |
getParameter(java.lang.reflect.Executable executable,
java.lang.String parameterName,
java.lang.Class<?> parameterClass,
boolean allowWrapper)
Returns the parameter with the specified name that is declared by the executable.
|
java.lang.reflect.Parameter |
getParameter(java.lang.reflect.Executable executable,
java.lang.String parameterName,
java.lang.reflect.TypeVariable<?> parameterGenericType)
Returns the parameter with the specified name that is declared by the executable.
|
java.lang.Class<?>[] |
getParameterClasses(java.lang.reflect.Executable executable)
Returns the classes of the parameters that takes the executable.
|
int |
getParameterCount(java.lang.reflect.Executable executable)
Returns the number of parameters of the executable.
|
java.lang.reflect.Parameter[] |
getParameters(java.lang.reflect.Executable executable)
Returns the parameters that the executable takes.
|
java.lang.reflect.Type[] |
getParameterTypes(java.lang.reflect.Executable executable)
Returns the type of the parameters of the executable.
|
java.lang.Class<?> |
getPrimitiveClass(java.lang.Class<?> clazz)
Returns the primitive class of the specified class.
|
java.lang.reflect.Type |
getRawType(java.lang.reflect.ParameterizedType parameterizedType)
Returns the type that represents the class or interface that declared this type.
|
java.lang.Class<?> |
getReturnClass(java.lang.reflect.Method method)
Returns the return class of the method.
|
java.lang.reflect.Type |
getReturnType(java.lang.reflect.Method method)
Returns the return type of the method.
|
java.lang.Class<?> |
getSuperclass(java.lang.Class<?> clazz)
Returns the superclass of the specified class.
|
java.lang.reflect.Type |
getSuperclassType(java.lang.Class<?> clazz)
Returns the type of the superclass of the specified class.
|
java.lang.Class<?>[] |
getTopClasses()
Returns the classes from the project that are visible by the class loader and are top level classes.
|
java.lang.reflect.Type |
getType(java.lang.reflect.Field field)
Returns the type of the field.
|
java.lang.reflect.Type |
getType(java.lang.reflect.Parameter parameter)
Returns the type of the parameter.
|
java.lang.reflect.Type[] |
getUpperBounds(java.lang.reflect.WildcardType wildcardType)
Returns the type of the upper bound(s) of the specified wildcard type.
|
java.lang.Class<?> |
getWrapperClass(java.lang.Class<?> clazz)
Returns the wrapper class of the specified class.
|
boolean |
isAbstract(java.lang.Class<?> clazz)
Returns whether the class is abstract.
|
boolean |
isAbstract(java.lang.reflect.Method method)
Returns whether the method is abstract.
|
boolean |
isAnonymous(java.lang.Class<?> clazz)
Returns whether the class is anonymous.
|
boolean |
isArray(java.lang.Class<?> clazz)
Returns whether the class is an array class.
|
boolean |
isAssignableFrom(java.lang.Class<?> clazz,
java.lang.Class<?> clazz2)
Returns whether the objects of the second class can be assigned to a variable of the first class.
|
boolean |
isBridge(java.lang.reflect.Method method)
Returns whether the method is a bridge method.
|
boolean |
isDefault(java.lang.reflect.Method method)
Returns whether the method is a default method.
|
boolean |
isEnum(java.lang.Class<?> clazz)
Returns whether the class is an enumerate.
|
boolean |
isEnum(java.lang.reflect.Field field)
Returns whether the field represents an element of an enumerate.
|
boolean |
isFinal(java.lang.Class<?> clazz)
Returns whether the class is final.
|
boolean |
isFinal(java.lang.reflect.Field field)
Returns whether the field is final.
|
boolean |
isFinal(java.lang.reflect.Method method)
Returns whether the method is final.
|
boolean |
isFinal(java.lang.reflect.Parameter parameter)
Returns whether the parameter is final.
|
boolean |
isImplicit(java.lang.reflect.Parameter parameter)
Returns whether the parameter is implicit.
|
boolean |
isInterface(java.lang.Class<?> clazz)
Returns whether the class is an interface.
|
boolean |
isLocalClass(java.lang.Class<?> clazz)
Returns whether the class is a local class.
|
boolean |
isMemberClass(java.lang.Class<?> clazz)
Returns whether the class is a member class.
|
boolean |
isNamePresent(java.lang.reflect.Parameter parameter)
Returns whether the parameter is name present.
|
boolean |
isNative(java.lang.reflect.Method method)
Returns whether the method is native.
|
boolean |
isPackaged(java.lang.Class<?> clazz)
Returns whether the class does not specify a modifier that determines its visibility.
|
boolean |
isPackaged(java.lang.reflect.Executable executable)
Returns whether the executable does not specify a modifier that determines its visibility.
|
boolean |
isPackaged(java.lang.reflect.Field field)
Returns whether the field does not specify a modifier that determines its visibility.
|
boolean |
isPrimitive(java.lang.Class<?> clazz)
Returns whether the class is a primitive class.
|
boolean |
isPrivate(java.lang.Class<?> clazz)
Returns whether the class is private.
|
boolean |
isPrivate(java.lang.reflect.Executable executable)
Returns whether the executable is private.
|
boolean |
isPrivate(java.lang.reflect.Field field)
Returns whether the field is private.
|
boolean |
isProtected(java.lang.Class<?> clazz)
Returns whether the class is protected.
|
boolean |
isProtected(java.lang.reflect.Executable executable)
Returns whether the executable is protected.
|
boolean |
isProtected(java.lang.reflect.Field field)
Returns whether the field is protected.
|
boolean |
isPublic(java.lang.Class<?> clazz)
Returns whether the class is public.
|
boolean |
isPublic(java.lang.reflect.Executable executable)
Returns whether the executable is public.
|
boolean |
isPublic(java.lang.reflect.Field field)
Returns whether the field is public.
|
boolean |
isStatic(java.lang.reflect.Field field)
Returns whether the field is static.
|
boolean |
isStatic(java.lang.reflect.Method method)
Returns whether the method is static.
|
boolean |
isStrict(java.lang.Class<?> clazz)
Returns whether the class is strict.
|
boolean |
isStrict(java.lang.reflect.Method method)
Returns whether the method is strict.
|
boolean |
isSynchronized(java.lang.reflect.Method method)
Returns whether the method is synchronized.
|
boolean |
isSynthetic(java.lang.Class<?> clazz)
Returns whether the class is a synthetic class.
|
boolean |
isSynthetic(java.lang.reflect.Executable executable)
Returns whether the executable is synthetic.
|
boolean |
isSynthetic(java.lang.reflect.Field field)
Returns whether the field is synthetic.
|
boolean |
isSynthetic(java.lang.reflect.Parameter parameter)
Returns whether the parameter is synthetic.
|
boolean |
isTransient(java.lang.reflect.Field field)
Returns whether the field is transient.
|
boolean |
isVarArgs(java.lang.reflect.Executable executable)
Returns whether the executable is declared to take a variable argument list.
|
boolean |
isVarArgs(java.lang.reflect.Parameter parameter)
Returns whether the parameter represents a variable argument list.
|
boolean |
isVolatile(java.lang.reflect.Field field)
Returns whether the field is volatile.
|
void |
refresh()
Refresh the introspector in order to access the current classes of the project.
|
public Introspector(java.lang.String[] projectPaths)
projectPaths - the paths in which the classes are locatedpublic void refresh()
public java.lang.Class<?>[] getCurrentClasses(java.lang.Class<?>[] classes)
classes - the list of classes to be recoveredpublic java.lang.Class<?> getCurrentClass(java.lang.Class<?> clazz)
clazz - the class to be recoveredpublic java.lang.Class<?>[] getClasses()
public java.lang.Class<?>[] getTopClasses()
public java.lang.Class<?> getClass(java.lang.String className)
className - the name of the class to be loadedpublic java.lang.Class<?> getWrapperClass(java.lang.Class<?> clazz)
clazz - the class whose wrapper class should be obtainedpublic java.lang.Class<?> getPrimitiveClass(java.lang.Class<?> clazz)
clazz - the class whose primitive class should be obtainedpublic int getInterfaceCount(java.lang.Class<?> clazz)
clazz - the class whose number of interfaces should be obtainedpublic int getDeclaredFieldCount(java.lang.Class<?> clazz)
clazz - the class where the number of fields should be obtainedpublic int getDeclaredMethodCount(java.lang.Class<?> clazz)
clazz - the class where the number of methods should be obtainedpublic int getDeclaredConstructorCount(java.lang.Class<?> clazz)
clazz - the class where the number of constructors should be obtainedpublic int getGenericTypeParameterCount(java.lang.Class<?> clazz)
clazz - the class where the number of generic type parameters should be obtainedpublic boolean checkSameClasses(java.lang.Class<?> clazz1,
java.lang.Class<?> clazz2)
clazz1 - a classclazz2 - another class to be compared with clazz1public boolean checkSameClasses(java.lang.Class<?> clazz1,
java.lang.Class<?> clazz2,
boolean allowWrappers)
clazz1 - a classclazz2 - another class to be compared with clazz1allowWrappers - a wrapper can be considered to be its respective primitive classpublic boolean checkClassExists(java.lang.String className)
className - the name of a class to be searchedpublic boolean checkSuperclass(java.lang.Class<?> clazz,
java.lang.Class<?> superclass)
clazz - a classsuperclass - another class whose relationship with clazz is going to be determinedpublic boolean checkImplements(java.lang.Class<?> clazz,
java.lang.Class<?> interfaceClass)
clazz - a classinterfaceClass - another class whose relationship with clazz is going to be determinedpublic boolean isPublic(java.lang.Class<?> clazz)
clazz - the class to be analysedpublic boolean isPrivate(java.lang.Class<?> clazz)
clazz - the class to be analysedpublic boolean isProtected(java.lang.Class<?> clazz)
clazz - the class to be analysedpublic boolean isPackaged(java.lang.Class<?> clazz)
clazz - the class to be analysedpublic boolean isAbstract(java.lang.Class<?> clazz)
clazz - the class to be analysedpublic boolean isFinal(java.lang.Class<?> clazz)
clazz - the class to be analysedpublic boolean isInterface(java.lang.Class<?> clazz)
clazz - the class to be analysedpublic boolean isStrict(java.lang.Class<?> clazz)
clazz - the class to be analysedpublic java.lang.reflect.TypeVariable<?> getGenericType(java.lang.reflect.Type type,
int[] indices)
P<Q, <R, S>, T> where P, Q, R, S, and T are generic types, then [] = P, [0] = Q, [1, 0] = R, [1, 1] = S, and 2 = T.
If the type at the position is not a generic type, then null is returned.type - the type where the type variable is extracted fromindices - the position in which the type variable ispublic java.lang.reflect.TypeVariable<?>[] getGenericTypes(java.lang.reflect.Type[] types)
types - the types where the type variables are extracted frompublic boolean checkSameGenericTypes(java.lang.reflect.TypeVariable<?> genericType1,
java.lang.reflect.TypeVariable<?> genericType2)
genericType1 - a generic typegenericType2 - another generic type to be compared with genericType1public java.lang.reflect.Field getCurrentField(java.lang.reflect.Field field)
field - the field to be recoveredpublic java.lang.reflect.Field getDeclaredField(java.lang.Class<?> clazz,
java.lang.String fieldName,
java.lang.reflect.TypeVariable<?> fieldGenericType)
clazz - the class where the field is searchedfieldName - the name of the field that will be searched inside the classfieldGenericType - the generic type that the field must havepublic java.lang.reflect.Field getDeclaredField(java.lang.Class<?> clazz,
java.lang.String fieldName,
java.lang.Class<?> fieldClass,
boolean allowWrapper)
clazz - the class where the field is searchedfieldName - the name of the field that will be searched inside the classfieldClass - the class that the field must haveallowWrapper - a wrapper can be considered to be its respective primitive classpublic boolean checkDeclaredField(java.lang.Class<?> clazz,
java.lang.String fieldName,
java.lang.reflect.TypeVariable<?> fieldGenericType)
clazz - the class where the field is searchedfieldName - the name of the field that will be searched inside the classfieldGenericType - the generic type that the field must havepublic boolean checkDeclaredField(java.lang.Class<?> clazz,
java.lang.String fieldName,
java.lang.Class<?> fieldClass,
boolean allowWrapper)
clazz - the class where the field is searchedfieldName - the name of the field that will be searched inside the classfieldClass - the class that the field must haveallowWrapper - a wrapper can be considered to be its respective primitive classpublic boolean checkDeclaredField(java.lang.Class<?> clazz,
java.lang.String fieldName)
clazz - the class where the field is searchedfieldName - the name of the field that will be searched inside the classpublic boolean checkType(java.lang.reflect.Field field,
java.lang.reflect.TypeVariable<?> genericType)
field - the field whose type is going to be checkedgenericType - the generic type the type of the field should bepublic boolean checkClass(java.lang.reflect.Field field,
java.lang.Class<?> fieldClass,
boolean allowWrapper)
field - the field whose type is going to be checkedfieldClass - the class the type of the field should beallowWrapper - a wrapper can be considered to be its respective primitive classpublic boolean checkGenericType(java.lang.reflect.Field field)
field - the field whose type is going to be checkedpublic boolean checkGenericType(java.lang.reflect.Field field,
int index)
P<Q, R, S> where P, Q, R, and S are generic types, then 0 = Q, 1 = R, and 2 = S.field - the field whose type is going to be checkedindex - the position in which the type variable ispublic boolean checkGenericType(java.lang.reflect.Field field,
int[] indices)
P<Q, <R, S>, T> where P, Q, R, S, and T are generic types, then [] = P, [0] = Q, [1, 0] = R, [1, 1] = S, and 2 = T.field - the field whose type is going to be checkedindices - the position in which the type variable ispublic boolean checkGenericType(java.lang.reflect.Field field,
java.lang.reflect.TypeVariable<?> genericType)
field - the field whose type is going to be checkedgenericType - the generic type the type of the field should bepublic boolean checkGenericType(java.lang.reflect.Field field,
int index,
java.lang.reflect.TypeVariable<?> genericType)
P<Q, R, S> where P, Q, R, and S are generic types, then 0 = Q, 1 = R, and 2 = S.field - the field whose type is going to be checkedindex - the position in which the type variable isgenericType - the generic type the type of the field should bepublic boolean checkGenericType(java.lang.reflect.Field field,
int[] indices,
java.lang.reflect.TypeVariable<?> genericType)
P<Q, <R, S>, T> where P, Q, R, S, and T are generic types, then [] = P, [0] = Q, [1, 0] = R, [1, 1] = S, and 2 = T.field - the field whose type is going to be checkedindices - the position in which the type variable isgenericType - the generic type the type of the field should bepublic boolean isPublic(java.lang.reflect.Field field)
field - the field to be analysedpublic boolean isPrivate(java.lang.reflect.Field field)
field - the field to be analysedpublic boolean isProtected(java.lang.reflect.Field field)
field - the field to be analysedpublic boolean isPackaged(java.lang.reflect.Field field)
field - the field to be analysedpublic boolean isFinal(java.lang.reflect.Field field)
field - the field to be analysedpublic boolean isStatic(java.lang.reflect.Field field)
field - the field to be analysedpublic boolean isTransient(java.lang.reflect.Field field)
field - the field to be analysedpublic boolean isVolatile(java.lang.reflect.Field field)
field - the field to be analysedpublic java.lang.reflect.Executable getCurrentExecutable(java.lang.reflect.Executable executable)
executable - the executable to be recoveredpublic boolean isPublic(java.lang.reflect.Executable executable)
executable - the executable to be analysedpublic boolean isPrivate(java.lang.reflect.Executable executable)
executable - the executable to be analysedpublic boolean isProtected(java.lang.reflect.Executable executable)
executable - the executable to be analysedpublic boolean isPackaged(java.lang.reflect.Executable executable)
executable - the executable to be analysedpublic java.lang.reflect.Constructor<?> getCurrentConstructor(java.lang.reflect.Constructor<?> constructor)
constructor - the constructor to be recoveredpublic java.lang.reflect.Constructor<?> getDeclaredConstructor(java.lang.Class<?> clazz,
java.lang.Class<?>[] paramClasses,
boolean allowWrappers)
clazz - the class where the constructor is searchedparamClasses - the classes of the parameters that the constructor of the class must haveallowWrappers - a wrapper can be considered to be its respective primitive classpublic boolean checkDeclaredConstructor(java.lang.Class<?> clazz,
java.lang.Class<?>[] paramClasses,
boolean allowWrappers)
clazz - the class where the constructor is searchedparamClasses - the classes of the parameters that the constructor must haveallowWrappers - a wrapper can be considered to be its respective primitive classpublic java.lang.reflect.Method getCurrentMethod(java.lang.reflect.Method method)
method - the method to be recoveredpublic java.lang.reflect.Method getDeclaredMethod(java.lang.Class<?> clazz,
java.lang.String methodName,
java.lang.Class<?>[] paramClasses,
java.lang.reflect.TypeVariable<?> returnGenericType,
boolean allowWrappers)
clazz - the class where the method is searchedmethodName - the name of the method that will be searched inside the classparamClasses - the classes of the parameters that the method must havereturnGenericType - the generic type that the return type must haveallowWrappers - a wrapper can be considered to be its respective primitive classpublic java.lang.reflect.Method getDeclaredMethod(java.lang.Class<?> clazz,
java.lang.String methodName,
java.lang.Class<?>[] paramClasses,
java.lang.Class<?> returnClass,
boolean allowWrappers)
clazz - the class where the method is searchedmethodName - the name of the method that will be searched inside the classparamClasses - the classes of the parameters that the method must havereturnClass - the class that the return variable must haveallowWrappers - a wrapper can be considered to be its respective primitive classpublic java.lang.reflect.Method getDeclaredMethod(java.lang.Class<?> clazz,
java.lang.String methodName,
java.lang.Class<?>[] paramClasses,
boolean allowWrappers)
clazz - the class where the method is searchedmethodName - the name of the method that will be searched inside the classparamClasses - the type of the parameters that must have the methodallowWrappers - a wrapper can be considered to be its respective primitive classpublic boolean checkDeclaredMethod(java.lang.Class<?> clazz,
java.lang.String methodName,
java.lang.Class<?>[] paramClasses,
java.lang.reflect.TypeVariable<?> returnGenericType,
boolean allowWrappers)
clazz - the class where the method is searchedmethodName - the name of a method that will be searched inside the classparamClasses - the type of the parameters that the method must havereturnGenericType - the generic type that the return type must haveallowWrappers - a wrapper can be considered to be its respective primitive classpublic boolean checkDeclaredMethod(java.lang.Class<?> clazz,
java.lang.String methodName,
java.lang.Class<?>[] paramClasses,
java.lang.Class<?> returnClass,
boolean allowWrappers)
clazz - the class where the method is searchedmethodName - the name of the method that will be searched inside the classparamClasses - the type of the parameters that the method must havereturnClass - the class that the return type must haveallowWrappers - a wrapper can be considered to be its respective primitive classpublic boolean checkDeclaredMethod(java.lang.Class<?> clazz,
java.lang.String methodName,
java.lang.Class<?>[] paramClasses,
boolean allowWrappers)
clazz - the class where the method is searchedmethodName - the name of the method that will be searched inside the classparamClasses - the classes of the parameters that the method must haveallowWrappers - a wrapper can be considered to be its respective primitive classpublic boolean checkReturnClass(java.lang.reflect.Method method,
java.lang.Class<?> clazz,
boolean allowWrapper)
method - the method whose type is going to be checkedclazz - the class the return type of the method should beallowWrapper - a wrapper can be considered to be its respective primitive classpublic boolean checkReturnGenericType(java.lang.reflect.Method method)
method - the method whose type is going to be checkedpublic boolean checkReturnGenericType(java.lang.reflect.Method method,
int index)
P<Q, R, S> where P, Q, R, and S are generic types, then 0 = Q, 1 = R, and 2 = S.method - the method whose type is going to be checkedindex - the position in which the type variable ispublic boolean checkReturnGenericType(java.lang.reflect.Method method,
int[] indices)
P<Q, <R, S>, T> where P, Q, R, S, and T are generic types, then [] = P, [0] = Q, [1, 0] = R, [1, 1] = S, and 2 = T.method - the method whose type is going to be checkedindices - the position in which the type variable ispublic boolean checkReturnGenericType(java.lang.reflect.Method method,
java.lang.reflect.TypeVariable<?> genericType)
method - the method whose type is going to be checkedgenericType - the generic type the return type of the method should bepublic boolean checkReturnGenericType(java.lang.reflect.Method method,
int index,
java.lang.reflect.TypeVariable<?> genericType)
P<Q, R, S> where P, Q, R, and S are generic types, then 0 = Q, 1 = R, and 2 = S.method - the method whose type is going to be checkedindex - the position in which the type variable isgenericType - the generic type the return type of the method should bepublic boolean checkReturnGenericType(java.lang.reflect.Method method,
int[] indices,
java.lang.reflect.TypeVariable<?> genericType)
P<Q, <R, S>, T> where P, Q, R, S, and T are generic types, then [] = P, [0] = Q, [1, 0] = R, [1, 1] = S, and 2 = T.method - the method whose type is going to be checkedindices - the position in which the type variable isgenericType - the generic type the return type of the method should bepublic boolean isAbstract(java.lang.reflect.Method method)
method - the method to be analysedpublic boolean isFinal(java.lang.reflect.Method method)
method - the method to be analysedpublic boolean isNative(java.lang.reflect.Method method)
method - the method to be analysedpublic boolean isStatic(java.lang.reflect.Method method)
method - the method to be analysedpublic boolean isStrict(java.lang.reflect.Method method)
method - the method to be analysedpublic boolean isSynchronized(java.lang.reflect.Method method)
method - the method to be analysedpublic java.lang.reflect.Parameter getCurrentParameter(java.lang.reflect.Parameter parameter)
parameter - the parameter to be recoveredpublic java.lang.reflect.Parameter getParameter(java.lang.reflect.Executable executable,
java.lang.String parameterName,
java.lang.reflect.TypeVariable<?> parameterGenericType)
executable - the executable where the parameter is searchedparameterName - the name of the parameter that will be searched inside the executableparameterGenericType - the generic type that the parameter must havepublic java.lang.reflect.Parameter getParameter(java.lang.reflect.Executable executable,
java.lang.String parameterName,
java.lang.Class<?> parameterClass,
boolean allowWrapper)
executable - the executable where the parameter is searchedparameterName - the name of the parameter that will be searched inside the executableparameterClass - the class that the parameter must haveallowWrapper - a wrapper can be considered to be its respective primitive classpublic java.lang.reflect.Parameter getParameter(java.lang.reflect.Executable executable,
java.lang.String parameterName)
executable - the executable where the parameter is searchedparameterName - the name of the parameter that will be searched inside the executablepublic boolean checkParameter(java.lang.reflect.Executable executable,
java.lang.String parameterName,
java.lang.reflect.TypeVariable<?> parameterGenericType)
executable - the executable where the parameter is searchedparameterName - the name of the parameter that will be searched inside the executableparameterGenericType - the generic type that the parameter must havepublic boolean checkParameter(java.lang.reflect.Executable executable,
java.lang.String parameterName,
java.lang.Class<?> parameterClass,
boolean allowWrapper)
executable - the executable where the parameter is searchedparameterName - the name of the parameter that will be searched inside the executableparameterClass - the class that the parameter must haveallowWrapper - a wrapper can be considered to be its respective primitive classpublic boolean checkParameter(java.lang.reflect.Executable executable,
java.lang.String parameterName)
executable - the executable where the parameter is searchedparameterName - the name of the parameter that will be searched inside the executablepublic boolean checkClass(java.lang.reflect.Parameter parameter,
java.lang.Class<?> clazz,
boolean allowWrapper)
parameter - the parameter whose type is going to be checkedclazz - the class the type of the parameter should beallowWrapper - a wrapper can be considered to be its respective primitive classpublic boolean checkGenericType(java.lang.reflect.Parameter parameter)
parameter - the parameter whose type is going to be checkedpublic boolean checkGenericType(java.lang.reflect.Parameter parameter,
int index)
P<Q, R, S> where P, Q, R, and S are generic types, then 0 = Q, 1 = R, and 2 = S.parameter - the parameter whose type is going to be checkedindex - the position in which the type variable ispublic boolean checkGenericType(java.lang.reflect.Parameter parameter,
int[] indices)
P<Q, <R, S>, T> where P, Q, R, S, and T are generic types, then [] = P, [0] = Q, [1, 0] = R, [1, 1] = S, and 2 = T.parameter - the parameter whose type is going to be checkedindices - the position in which the type variable ispublic boolean checkGenericType(java.lang.reflect.Parameter parameter,
java.lang.reflect.TypeVariable<?> genericType)
parameter - the parameter whose type is going to be checkedgenericType - the generic type the type of the parameter should bepublic boolean checkGenericType(java.lang.reflect.Parameter parameter,
int index,
java.lang.reflect.TypeVariable<?> genericType)
P<Q, R, S> where P, Q, R, and S are generic types, then 0 = Q, 1 = R, and 2 = S.parameter - the parameter whose type is going to be checkedindex - the position in which the type variable isgenericType - the generic type the type of the parameter should bepublic boolean checkGenericType(java.lang.reflect.Parameter parameter,
int[] indices,
java.lang.reflect.TypeVariable<?> genericType)
P<Q, <R, S>, T> where P, Q, R, S, and T are generic types, then [] = P, [0] = Q, [1, 0] = R, [1, 1] = S, and 2 = T.parameter - the parameter whose type is going to be checkedindices - the position in which the type variable isgenericType - the generic type the type of the parameter should bepublic boolean isFinal(java.lang.reflect.Parameter parameter)
parameter - the parameter to be analysedpublic java.lang.reflect.Type getSuperclassType(java.lang.Class<?> clazz)
clazz - a classClass.getGenericSuperclass()public java.lang.reflect.Type[] getInterfacesTypes(java.lang.Class<?> clazz)
clazz - a classClass.getGenericInterfaces()public java.lang.reflect.Type getType(java.lang.reflect.Field field)
field - a fieldField.getGenericType()public java.lang.reflect.Type[] getExceptionTypes(java.lang.reflect.Executable executable)
executable - an executableExecutable.getGenericExceptionTypes()public java.lang.reflect.Type[] getParameterTypes(java.lang.reflect.Executable executable)
executable - an executableExecutable.getGenericParameterTypes()public java.lang.reflect.Type getReturnType(java.lang.reflect.Method method)
method - a methodMethod.getGenericReturnType()public java.lang.reflect.Type getType(java.lang.reflect.Parameter parameter)
parameter - a parameterParameter.getParameterizedType()public java.lang.reflect.Type getComponentType(java.lang.reflect.GenericArrayType genericArrayType)
genericArrayType - a genericArrayTypeGenericArrayType.getGenericComponentType()public java.lang.reflect.Type[] getActualTypeArguments(java.lang.reflect.ParameterizedType parameterizedType)
parameterizedType - a parameterizedTypeParameterizedType.getActualTypeArguments()public java.lang.reflect.Type getRawType(java.lang.reflect.ParameterizedType parameterizedType)
parameterizedType - a parameterizedTypeParameterizedType.getRawType()public java.lang.reflect.Type getOwnerType(java.lang.reflect.ParameterizedType parameterizedType)
O.I<S> then O is returned.parameterizedType - a parameterizedTypeParameterizedType.getOwnerType()public java.lang.reflect.Type[] getBounds(java.lang.reflect.TypeVariable<?> typeVariable)
typeVariable - a typeVariableTypeVariable.getBounds()public java.lang.reflect.Type[] getUpperBounds(java.lang.reflect.WildcardType wildcardType)
wildcardType - a wildcard typeWildcardType.getUpperBounds()public java.lang.reflect.Type[] getLowerBounds(java.lang.reflect.WildcardType wildcardType)
wildcardType - a wildcard typeWildcardType.getLowerBounds()public java.lang.String getName(java.lang.reflect.Type type)
type - a typeType.getTypeName()public java.lang.Class<?> getSuperclass(java.lang.Class<?> clazz)
clazz - a classClass.getSuperclass()public java.lang.Class<?>[] getInterfaces(java.lang.Class<?> clazz)
clazz - a classClass.getInterfaces()public java.lang.Class<?> getEnclosingClass(java.lang.Class<?> clazz)
clazz - a classClass.getEnclosingClass()public java.lang.Class<?>[] getClasses(java.lang.Class<?> clazz)
clazz - a classClass.getClasses()public java.lang.Class<?> getDeclaringClass(java.lang.Class<?> clazz)
clazz - a classClass.getDeclaringClass()public java.lang.Class<?>[] getDeclaredClasses(java.lang.Class<?> clazz)
clazz - a classClass.getDeclaredClasses()public java.lang.Class<?> getComponentClass(java.lang.Class<?> clazz)
clazz - a classClass.getComponentType()public java.lang.Class<?> getClass(java.lang.reflect.Field field)
field - a fieldField.getType()public java.lang.Class<?> getDeclaringClass(java.lang.reflect.Field field)
field - a fieldField.getDeclaringClass()public java.lang.Class<?> getDeclaringClass(java.lang.reflect.Executable executable)
executable - an executableExecutable.getDeclaringClass()public java.lang.Class<?>[] getExceptionClasses(java.lang.reflect.Executable executable)
executable - an executableExecutable.getExceptionTypes()public java.lang.Class<?>[] getParameterClasses(java.lang.reflect.Executable executable)
executable - an executableExecutable.getParameterTypes()public java.lang.Class<?> getReturnClass(java.lang.reflect.Method method)
method - a methodMethod.getReturnType()public java.lang.Class<?> getClass(java.lang.reflect.Parameter parameter)
parameter - a parameterParameter.getType()public java.lang.String getName(java.lang.Class<?> clazz)
clazz - a classClass.getName()public int getModifiers(java.lang.Class<?> clazz)
clazz - a classClass.getModifiers()public java.lang.Package getPackage(java.lang.Class<?> clazz)
clazz - a classClass.getPackage()public boolean isAnonymous(java.lang.Class<?> clazz)
clazz - a classClass.isAnonymousClass()public boolean isArray(java.lang.Class<?> clazz)
clazz - a classClass.isArray()public boolean isEnum(java.lang.Class<?> clazz)
clazz - a classClass.isEnum()public boolean isLocalClass(java.lang.Class<?> clazz)
clazz - a classClass.isLocalClass()public boolean isMemberClass(java.lang.Class<?> clazz)
clazz - a classClass.isMemberClass()public boolean isPrimitive(java.lang.Class<?> clazz)
clazz - a classClass.isPrimitive()public boolean isSynthetic(java.lang.Class<?> clazz)
clazz - a classClass.isSynthetic()public boolean isAssignableFrom(java.lang.Class<?> clazz,
java.lang.Class<?> clazz2)
clazz - a classclazz2 - a classClass.isAssignableFrom(Class)public <T> T[] getEnumConstants(java.lang.Class<T> clazz)
T - the type of the enumerate classclazz - a classClass.getEnumConstants()public java.lang.reflect.TypeVariable<?>[] getGenericTypeParameters(java.lang.Class<?> clazz)
class MyClass<T, S>, then T and S are returned.
If the class does not declare any generic parameter type, then an array of length 0 is returned.clazz - a classClass.getTypeParameters()public java.lang.reflect.TypeVariable<?>[] getGenericTypeParameters(java.lang.reflect.Executable executable)
public <T, S> void myMethod(T arg1, S arg2), then T and S are returned.
If the executable does not declare any generic parameter type, then an array of length 0 is returned.executable - an executableExecutable.getTypeParameters()public java.lang.String getName(java.lang.reflect.TypeVariable<?> genericType)
genericType - a generic typeTypeVariable.getName()public java.lang.reflect.Field getField(java.lang.Class<?> clazz,
java.lang.String fieldName)
clazz - a classfieldName - the name of the field that will be searched inside the classClass.getField(String)public java.lang.reflect.Field[] getFields(java.lang.Class<?> clazz)
clazz - a classClass.getFields()public java.lang.reflect.Field getDeclaredField(java.lang.Class<?> clazz,
java.lang.String fieldName)
clazz - a classfieldName - the name of the field that will be searched inside the classClass.getDeclaredField(String)public java.lang.reflect.Field[] getDeclaredFields(java.lang.Class<?> clazz)
clazz - a classClass.getDeclaredFields()public java.lang.String getName(java.lang.reflect.Field field)
field - a fieldField.getName()public int getModifiers(java.lang.reflect.Field field)
field - a fieldField.getModifiers()public boolean isEnum(java.lang.reflect.Field field)
field - a fieldField.isEnumConstant()public boolean isSynthetic(java.lang.reflect.Field field)
field - a fieldField.isSynthetic()public java.lang.reflect.Executable getDeclaringExecutable(java.lang.reflect.Parameter parameter)
parameter - a parameterParameter.getDeclaringExecutable()public int getParameterCount(java.lang.reflect.Executable executable)
executable - an executableExecutable.getParameterCount()public int getModifiers(java.lang.reflect.Executable executable)
executable - an executableExecutable.getModifiers()public boolean isSynthetic(java.lang.reflect.Executable executable)
executable - an executableExecutable.isSynthetic()public boolean isVarArgs(java.lang.reflect.Executable executable)
executable - an executableExecutable.isVarArgs()public java.lang.reflect.Constructor<?> getEnclosingConstructor(java.lang.Class<?> clazz)
clazz - a classClass.getEnclosingClass()public java.lang.reflect.Constructor<?> getConstructor(java.lang.Class<?> clazz,
java.lang.Class<?>... paramClasses)
clazz - a classparamClasses - the parameter classes the constructor that will be searched inside the class must takeClass.getConstructor(Class...)public java.lang.reflect.Constructor<?>[] getConstructors(java.lang.Class<?> clazz)
clazz - a classClass.getConstructors()public java.lang.reflect.Constructor<?> getDeclaredConstructor(java.lang.Class<?> clazz,
java.lang.Class<?>... paramClasses)
clazz - a classparamClasses - the parameter classes the constructor that will be searched inside the class must takeClass.getDeclaredConstructor(Class...)public java.lang.reflect.Constructor<?>[] getDeclaredConstructors(java.lang.Class<?> clazz)
clazz - a classClass.getDeclaredConstructors()public java.lang.reflect.Method getEnclosingMethod(java.lang.Class<?> clazz)
clazz - a classClass.getEnclosingMethod()public java.lang.reflect.Method getMethod(java.lang.Class<?> clazz,
java.lang.String methodName,
java.lang.Class<?>... paramClasses)
clazz - a classmethodName - the name of the method that will be searched inside the classparamClasses - the parameter classes the method that will be searched inside the class must takeClass.getMethod(String, Class...)public java.lang.reflect.Method[] getMethods(java.lang.Class<?> clazz)
clazz - a classClass.getConstructors()public java.lang.reflect.Method getDeclaredMethod(java.lang.Class<?> clazz,
java.lang.String methodName,
java.lang.Class<?>... paramClasses)
clazz - a classmethodName - the name of the method that will be searched inside the classparamClasses - the parameter classes the method that will be searched inside the class must takeClass.getDeclaredMethod(String, Class...)public java.lang.reflect.Method[] getDeclaredMethods(java.lang.Class<?> clazz)
clazz - a classClass.getDeclaredMethods()public java.lang.String getName(java.lang.reflect.Method method)
method - a methodMethod.getName()public boolean isBridge(java.lang.reflect.Method method)
method - a methodMethod.isBridge()public boolean isDefault(java.lang.reflect.Method method)
method - a methodMethod.isDefault()public java.lang.reflect.Parameter[] getParameters(java.lang.reflect.Executable executable)
executable - an executableExecutable.getParameters()public java.lang.String getName(java.lang.reflect.Parameter parameter)
parameter - a parameterParameter.getName()public int getModifiers(java.lang.reflect.Parameter parameter)
parameter - a parameterParameter.getModifiers()public boolean isImplicit(java.lang.reflect.Parameter parameter)
parameter - a parameterParameter.isImplicit()public boolean isNamePresent(java.lang.reflect.Parameter parameter)
parameter - a parameterParameter.isNamePresent()public boolean isSynthetic(java.lang.reflect.Parameter parameter)
parameter - a parameterParameter.isSynthetic()public boolean isVarArgs(java.lang.reflect.Parameter parameter)
parameter - a parameterParameter.isVarArgs()