|
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.javassist.JavassistAnnotatedInfo
org.jboss.reflect.plugins.javassist.JavassistFieldInfo
public class JavassistFieldInfo
FieldInfo that relies on Javassist to answer reflective queries and to access
the represented field.
This class also relies on Javassist to perform the instrumentation operations defined in
MutableFieldInfo
.
MutableFieldInfo
,
Serialized FormField Summary | |
---|---|
protected JavassistTypeInfo |
typeInfo
The type info |
Fields inherited from class org.jboss.reflect.plugins.javassist.JavassistAnnotatedInfo |
---|
annotationHelper, 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 | |
---|---|
JavassistFieldInfo(AnnotationHelper annotationHelper,
JavassistTypeInfo typeInfo,
javassist.CtField ctField)
Create a new JavassistFieldInfo. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
Object |
get(Object target)
Get the value of the field |
AnnotationValue[] |
getAnnotations()
Get the annotations |
javassist.CtField |
getCtField()
|
JavassistTypeInfo |
getDeclaringClass()
Get the declaring class |
String |
getDescriptor()
|
protected int |
getHashCode()
|
int |
getModifiers()
Get the modifiers |
String |
getName()
Get the name |
TypeInfo |
getType()
Get the field type |
boolean |
isPublic()
|
boolean |
isStatic()
Whether it is static |
boolean |
isVolatile()
Whether it is volatile |
Object |
set(Object target,
Object value)
Set the value of the field |
void |
setModifier(ModifierInfo modifier)
Field modifier |
void |
setName(String name)
Name of the field |
void |
setType(ClassInfo type)
Field type |
void |
setType(String type)
Field type |
void |
toShortString(org.jboss.util.JBossStringBuilder buffer)
|
protected void |
toString(org.jboss.util.JBossStringBuilder buffer)
|
Methods inherited from class org.jboss.reflect.plugins.javassist.JavassistAnnotatedInfo |
---|
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, hashCode, list, notEqual, 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, getUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotationPresent, isAnnotationPresent |
Methods inherited from interface org.jboss.util.JBossInterface |
---|
clone, toShortString |
Field Detail |
---|
protected final JavassistTypeInfo typeInfo
Constructor Detail |
---|
public JavassistFieldInfo(AnnotationHelper annotationHelper, JavassistTypeInfo typeInfo, javassist.CtField ctField)
annotationHelper
- the annotation helpertypeInfo
- the type infoctField
- the fieldMethod Detail |
---|
public String getName()
FieldInfo
getName
in interface FieldInfo
public int getModifiers()
ModifierInfo
getModifiers
in interface ModifierInfo
public boolean isPublic()
isPublic
in interface ModifierInfo
public boolean isStatic()
ModifierInfo
isStatic
in interface ModifierInfo
public boolean isVolatile()
ModifierInfo
isVolatile
in interface ModifierInfo
public JavassistTypeInfo getDeclaringClass()
MemberInfo
getDeclaringClass
in interface MemberInfo
public TypeInfo getType()
FieldInfo
getType
in interface FieldInfo
public Object get(Object target) throws Throwable
FieldInfo
get
in interface FieldInfo
target
- the target
Throwable
- for any errorpublic Object set(Object target, Object value) throws Throwable
FieldInfo
set
in interface FieldInfo
target
- the targetvalue
- the value
Throwable
- for any errorprotected int getHashCode()
getHashCode
in class org.jboss.util.JBossObject
public boolean equals(Object obj)
equals
in class Object
public void toShortString(org.jboss.util.JBossStringBuilder buffer)
toShortString
in interface org.jboss.util.JBossInterface
toShortString
in class org.jboss.util.JBossObject
protected void toString(org.jboss.util.JBossStringBuilder buffer)
toString
in class org.jboss.util.JBossObject
public AnnotationValue[] getAnnotations()
AnnotatedInfo
getAnnotations
in interface AnnotatedInfo
public javassist.CtField getCtField()
public void setModifier(ModifierInfo modifier)
MutableFieldInfo
setModifier
in interface MutableFieldInfo
public void setName(String name)
MutableFieldInfo
setName
in interface MutableFieldInfo
public void setType(ClassInfo type)
MutableFieldInfo
setType
in interface MutableFieldInfo
public void setType(String type)
MutableFieldInfo
setType
in interface MutableFieldInfo
public String getDescriptor()
|
JBoss Reflection 2.2.1.SP1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |