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, wait
getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotationsByType
protected final Field _field
public StandardField(Field field)
public Field getMember()
public F get(T obj) throws IllegalArgumentException, IllegalAccessException
get
in interface IField<T,F>
IllegalArgumentException
IllegalAccessException
public void set(T obj, F value) throws IllegalArgumentException, IllegalAccessException
set
in interface IField<T,F>
IllegalArgumentException
IllegalAccessException
public String getName()
IField
Field
object.public Class<T> getDeclaringClass()
IField
Class
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()
IField
Field
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>
Modifier
public Class<F> getType()
IField
Class
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 AnnotatedElement
public Annotation[] getAnnotations()
getAnnotations
in interface AnnotatedElement
public Annotation[] getDeclaredAnnotations()
getDeclaredAnnotations
in interface AnnotatedElement
public boolean isAnnotationPresent(Class<? extends Annotation> annotationType)
isAnnotationPresent
in interface AnnotatedElement
public boolean isAccessible()
IMember
isAccessible
in interface IMember<T>
public void setAccessible(boolean flag) throws SecurityException
IMember
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.
setAccessible
in interface IMember<T>
flag
- the new value for the accessible flagSecurityException
- if the request is denied.SecurityManager.checkPermission(java.security.Permission)
,
RuntimePermission
Copyright © GigaSpaces.