Class StandardField<T,F>
java.lang.Object
com.gigaspaces.internal.reflection.standard.StandardField<T,F>
- Type Parameters:
T- Type of the class that contains this field typeF- Field type.
- All Implemented Interfaces:
IField<T,,F> IMember<T>,AnnotatedElement
A wrapper over the
Field class.- Author:
- Guy
-
Field Summary
FieldsFields inherited from interface com.gigaspaces.internal.reflection.IField
INTERNAL_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean<A extends Annotation>
AgetAnnotation(Class<A> annotationType) Returns theClassobject representing the class or interface that declares the field represented by thisFieldobject.intReturns the Java language modifiers for the field represented by thisFieldobject, as an integer.getName()Returns the name of the field represented by thisFieldobject.getType()Returns aClassobject that identifies the declared type for the field represented by thisFieldobject.inthashCode()booleanGet the value of the accessible flag for this object.booleanisAnnotationPresent(Class<? extends Annotation> annotationType) voidvoidsetAccessible(boolean flag) Set the accessible flag for this object to the indicated boolean value.toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.reflect.AnnotatedElement
getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotationsByType
-
Field Details
-
_field
-
-
Constructor Details
-
StandardField
-
-
Method Details
-
getMember
-
get
- Specified by:
getin interfaceIField<T,F> - Throws:
IllegalArgumentExceptionIllegalAccessException
-
set
- Specified by:
setin interfaceIField<T,F> - Throws:
IllegalArgumentExceptionIllegalAccessException
-
getName
Description copied from interface:IFieldReturns the name of the field represented by thisFieldobject. -
getDeclaringClass
Description copied from interface:IFieldReturns theClassobject representing the class or interface that declares the field represented by thisFieldobject.- Specified by:
getDeclaringClassin interfaceIField<T,F> - Specified by:
getDeclaringClassin interfaceIMember<T>- Returns:
- an object representing the declaring class of the underlying member
-
getModifiers
public int getModifiers()Description copied from interface:IFieldReturns the Java language modifiers for the field represented by thisFieldobject, as an integer. TheModifierclass should be used to decode the modifiers.- Specified by:
getModifiersin interfaceIField<T,F> - Specified by:
getModifiersin interfaceIMember<T>- Returns:
- the Java language modifiers for the underlying member
- See Also:
-
getType
Description copied from interface:IFieldReturns aClassobject that identifies the declared type for the field represented by thisFieldobject. -
equals
-
hashCode
public int hashCode() -
toString
-
getAnnotation
- Specified by:
getAnnotationin interfaceAnnotatedElement
-
getAnnotations
- Specified by:
getAnnotationsin interfaceAnnotatedElement
-
getDeclaredAnnotations
- Specified by:
getDeclaredAnnotationsin interfaceAnnotatedElement
-
isAnnotationPresent
- Specified by:
isAnnotationPresentin interfaceAnnotatedElement
-
isAccessible
public boolean isAccessible()Description copied from interface:IMemberGet the value of the accessible flag for this object.- Specified by:
isAccessiblein interfaceIMember<T>- Returns:
- the value of the object's accessible flag
-
setAccessible
Description copied from interface:IMemberSet 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.- Specified by:
setAccessiblein interfaceIMember<T>- Parameters:
flag- the new value for the accessible flag- Throws:
SecurityException- if the request is denied.- See Also:
-