T
- Type of the class that contains this method.public interface IMember<T> extends AnnotatedElement
Modifier and Type | Field and Description |
---|---|
static String |
INTERNAL_NAME |
Modifier and Type | Method and Description |
---|---|
Class<?> |
getDeclaringClass()
Returns the Class object representing the class or interface that declares the member or
constructor represented by this Member.
|
Member |
getMember() |
int |
getModifiers()
Returns the Java language modifiers for the member or constructor represented by this Member,
as an integer.
|
String |
getName()
Returns the simple name of the underlying member or constructor represented by this Member.
|
boolean |
isAccessible()
Get the value of the accessible flag for this object.
|
void |
setAccessible(boolean flag)
Set the accessible flag for this object to the indicated boolean value.
|
getAnnotation, getAnnotations, getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotations, getDeclaredAnnotationsByType, isAnnotationPresent
static final String INTERNAL_NAME
Class<?> getDeclaringClass()
String getName()
int getModifiers()
Modifier
boolean isAccessible()
void setAccessible(boolean flag) throws SecurityException
First, if there is a security manager, its checkPermission
method is called
with a ReflectPermission("suppressAccessChecks")
permission.
A SecurityException
is raised if flag
is true
but
accessibility of this object may not be changed (for example, if this element object is a
Constructor
object for the class Class
).
A SecurityException
is raised if this object is a Constructor
object for the class java.lang.Class
, and
flag
is true.
flag
- the new value for the accessible flagSecurityException
- if the request is denied.SecurityManager.checkPermission(java.security.Permission)
,
RuntimePermission
Copyright © GigaSpaces.