| Modifier and Type | Field and Description |
|---|---|
protected Field |
_field |
INTERNAL_NAME| Constructor and Description |
|---|
StandardField(Field field) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
F |
get(T obj) |
<A extends Annotation> |
getAnnotation(Class<A> annotationType) |
Annotation[] |
getAnnotations() |
Annotation[] |
getDeclaredAnnotations() |
Class<T> |
getDeclaringClass()
Returns the
Class object representing the class or interface that declares the
field represented by this Field object. |
Field |
getMember() |
int |
getModifiers()
Returns the Java language modifiers for the field represented by this
Field
object, as an integer. |
String |
getName()
Returns the name of the field represented by this
Field object. |
Class<F> |
getType()
Returns a
Class object that identifies the declared type for the field
represented by this Field object. |
int |
hashCode() |
boolean |
isAccessible()
Get the value of the accessible flag for this object.
|
boolean |
isAnnotationPresent(Class<? extends Annotation> annotationType) |
void |
set(T obj,
F value) |
void |
setAccessible(boolean flag)
Set the accessible flag for this object to the indicated boolean value.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotationsByTypeprotected final Field _field
public StandardField(Field field)
public Field getMember()
public F get(T obj) throws IllegalArgumentException, IllegalAccessException
get in interface IField<T,F>IllegalArgumentExceptionIllegalAccessExceptionpublic void set(T obj, F value) throws IllegalArgumentException, IllegalAccessException
set in interface IField<T,F>IllegalArgumentExceptionIllegalAccessExceptionpublic String getName()
IFieldField object.public Class<T> getDeclaringClass()
IFieldClass object representing the class or interface that declares the
field represented by this Field object.getDeclaringClass in interface IField<T,F>getDeclaringClass in interface IMember<T>public int getModifiers()
IFieldField
object, as an integer. The Modifier class should be used to decode the
modifiers.getModifiers in interface IField<T,F>getModifiers in interface IMember<T>Modifierpublic Class<F> getType()
IFieldClass object that identifies the declared type for the field
represented by this Field object.public <A extends Annotation> A getAnnotation(Class<A> annotationType)
getAnnotation in interface AnnotatedElementpublic Annotation[] getAnnotations()
getAnnotations in interface AnnotatedElementpublic Annotation[] getDeclaredAnnotations()
getDeclaredAnnotations in interface AnnotatedElementpublic boolean isAnnotationPresent(Class<? extends Annotation> annotationType)
isAnnotationPresent in interface AnnotatedElementpublic boolean isAccessible()
IMemberisAccessible in interface IMember<T>public void setAccessible(boolean flag)
throws SecurityException
IMemberFirst, 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.
setAccessible in interface IMember<T>flag - the new value for the accessible flagSecurityException - if the request is denied.SecurityManager.checkPermission(java.security.Permission),
RuntimePermissionCopyright © GigaSpaces.