public class ReflectFieldInfoImpl extends FieldInfoImpl
Modifier and Type | Field and Description |
---|---|
protected Field |
field
The field
|
declaringClass, hash, modifiers, name, type
annotationMap, annotationsArray
ABSTRACT, CONSTANT, FINAL, PACKAGE, PACKAGE_ABSTRACT, PACKAGE_CONSTANT, PACKAGE_STATIC, PRIVATE, PRIVATE_CONSTANT, PRIVATE_STATIC, PROTECTED, PROTECTED_ABSTRACT, PROTECTED_CONSTANT, PROTECTED_STATIC, PUBLIC, PUBLIC_ABSTRACT, PUBLIC_CONSTANT, PUBLIC_STATIC, STATIC
Constructor and Description |
---|
ReflectFieldInfoImpl()
Create a new field info
|
ReflectFieldInfoImpl(AnnotationValue[] annotations,
String name,
TypeInfo type,
int modifiers,
ClassInfo declaring)
Create a new FieldInfo.
|
Modifier and Type | Method and Description |
---|---|
protected void |
accessCheck()
Check access permission.
|
protected void |
accessCheck(boolean isPublic)
Check access permission.
|
Object |
get(Object target)
Get the value of the field
|
Field |
getField()
Get the field
|
Object |
set(Object target,
Object value)
Set the value of the field
|
void |
setField(Field field)
Set the field
|
calculateHash, equals, getDeclaringClass, getModifiers, getName, getType, hashCode, isPublic, isStatic, isVolatile, toString
getAnnotation, getAnnotations, isAnnotationPresent, setupAnnotations
getUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotationPresent
cacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, getHashCode, list, notEqual, toShortString, toShortString, toString, toStringImplementation
finalize, getClass, notify, notifyAll, wait, wait, wait
getAnnotation, getAnnotations, getUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotationPresent, isAnnotationPresent
protected transient Field field
public ReflectFieldInfoImpl()
public ReflectFieldInfoImpl(AnnotationValue[] annotations, String name, TypeInfo type, int modifiers, ClassInfo declaring)
annotations
- the annotationsname
- the nametype
- the field typemodifiers
- the field modifiersdeclaring
- the declaring classpublic void setField(Field field)
field
- the fieldpublic Field getField()
protected final void accessCheck()
protected final void accessCheck(boolean isPublic)
isPublic
- whether the field is publicpublic Object get(Object target) throws Throwable
FieldInfo
get
in interface FieldInfo
get
in class FieldInfoImpl
target
- the targetThrowable
- for any errorpublic Object set(Object target, Object value) throws Throwable
FieldInfo
set
in interface FieldInfo
set
in class FieldInfoImpl
target
- the targetvalue
- the valueThrowable
- for any errorCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.