Interface IMember<T>
- Type Parameters:
T- Type of the class that contains this method.
- All Superinterfaces:
AnnotatedElement
- All Known Subinterfaces:
IField<T,,F> IGetterMethod<T>,IMethod<T>,IProcedure<T>,ISetterMethod<T>
- All Known Implementing Classes:
AbstractGetterMethod,AbstractMethod,AbstractSetterMethod,StandardField,StandardGetterMethod,StandardMethod,StandardProcedure,StandardSetterMethod
Provides an abstraction over a member reflection.
- Since:
- 6.6
- Author:
- Guy
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionClass<?>Returns the Class object representing the class or interface that declares the member or constructor represented by this Member.intReturns the Java language modifiers for the member or constructor represented by this Member, as an integer.getName()Returns the simple name of the underlying member or constructor represented by this Member.booleanGet the value of the accessible flag for this object.voidsetAccessible(boolean flag) Set the accessible flag for this object to the indicated boolean value.Methods inherited from interface java.lang.reflect.AnnotatedElement
getAnnotation, getAnnotations, getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotations, getDeclaredAnnotationsByType, isAnnotationPresent
-
Field Details
-
INTERNAL_NAME
-
-
Method Details
-
getMember
Member getMember()- Returns:
- underline reflection based
Member
-
getDeclaringClass
Class<?> getDeclaringClass()Returns the Class object representing the class or interface that declares the member or constructor represented by this Member.- Returns:
- an object representing the declaring class of the underlying member
-
getName
String getName()Returns the simple name of the underlying member or constructor represented by this Member.- Returns:
- the simple name of the underlying member
-
getModifiers
int getModifiers()Returns the Java language modifiers for the member or constructor represented by this Member, as an integer. The Modifier class should be used to decode the modifiers in the integer.- Returns:
- the Java language modifiers for the underlying member
- See Also:
-
isAccessible
boolean isAccessible()Get the value of the accessible flag for this object.- Returns:
- the value of the object's accessible flag
-
setAccessible
Set the accessible flag for this object to the indicated boolean value. A value of true indicates that the reflected object should suppress Java language access checking when it is used. A value of false indicates that the reflected object should enforce Java language access checks.First, if there is a security manager, its
checkPermissionmethod is called with aReflectPermission("suppressAccessChecks")permission.A
SecurityExceptionis raised ifflagistruebut accessibility of this object may not be changed (for example, if this element object is aConstructorobject for the classClass).A
SecurityExceptionis raised if this object is aConstructorobject for the classjava.lang.Class, andflagis true.- Parameters:
flag- the new value for the accessible flag- Throws:
SecurityException- if the request is denied.- See Also:
-