|
JBoss Reflection 2.2.1.SP1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.util.JBossObject
org.jboss.reflect.plugins.AbstractAnnotatedInfo
org.jboss.reflect.plugins.AnnotationHolder
org.jboss.reflect.plugins.FieldInfoImpl
org.jboss.reflect.plugins.introspection.ReflectFieldInfoImpl
public class ReflectFieldInfoImpl
A field info
Field Summary | |
---|---|
protected Field |
field
The field, this only gets initialized after get(), set() or getField() has been called to save memory |
Fields inherited from class org.jboss.reflect.plugins.FieldInfoImpl |
---|
declaringClass, hash, modifiers, name, type |
Fields inherited from class org.jboss.reflect.plugins.AnnotationHolder |
---|
annotationMap, annotationsArray |
Fields inherited from class org.jboss.util.JBossObject |
---|
hashCode, log, toString |
Fields inherited from interface org.jboss.reflect.spi.ModifierInfo |
---|
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 Summary | |
---|---|
ReflectFieldInfoImpl()
Create a new field info |
|
ReflectFieldInfoImpl(AnnotationValue[] annotations,
String name,
TypeInfo type,
int modifiers,
ClassInfo declaring)
Create a new FieldInfo. |
Method Summary | |
---|---|
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 |
Methods inherited from class org.jboss.reflect.plugins.FieldInfoImpl |
---|
calculateHash, equals, getDeclaringClass, getModifiers, getName, getType, hashCode, isPublic, isStatic, isVolatile, toString |
Methods inherited from class org.jboss.reflect.plugins.AnnotationHolder |
---|
getAnnotation, getAnnotations, isAnnotationPresent, setupAnnotations |
Methods inherited from class org.jboss.reflect.plugins.AbstractAnnotatedInfo |
---|
getUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotationPresent |
Methods inherited from class org.jboss.util.JBossObject |
---|
cacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, getHashCode, list, notEqual, toShortString, toShortString, toString, toStringImplementation |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.jboss.reflect.spi.AnnotatedInfo |
---|
getAnnotation, getAnnotations, getUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotationPresent, isAnnotationPresent |
Methods inherited from interface org.jboss.util.JBossInterface |
---|
clone, toShortString, toShortString |
Field Detail |
---|
protected transient volatile Field field
Constructor Detail |
---|
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 classMethod Detail |
---|
public 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 target
Throwable
- for any errorpublic Object set(Object target, Object value) throws Throwable
FieldInfo
set
in interface FieldInfo
set
in class FieldInfoImpl
target
- the targetvalue
- the value
Throwable
- for any error
|
JBoss Reflection 2.2.1.SP1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |