public class ReflectFieldInfoImpl extends FieldInfoImpl
| Modifier and Type | Field and Description |
|---|---|
protected Field |
field
The field
|
declaringClass, hash, modifiers, name, typeannotationMap, annotationsArrayABSTRACT, 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, toStringgetAnnotation, getAnnotations, isAnnotationPresent, setupAnnotationsgetUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotationPresentcacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, getHashCode, list, notEqual, toShortString, toShortString, toString, toStringImplementationfinalize, getClass, notify, notifyAll, wait, wait, waitgetAnnotation, getAnnotations, getUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotationPresent, isAnnotationPresentprotected 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
FieldInfoget in interface FieldInfoget in class FieldInfoImpltarget - the targetThrowable - for any errorpublic Object set(Object target, Object value) throws Throwable
FieldInfoset in interface FieldInfoset in class FieldInfoImpltarget - the targetvalue - the valueThrowable - for any errorCopyright © 2013 JBoss, a division of Red Hat, Inc.. All rights reserved.