public class JavassistFieldInfo extends JavassistAnnotatedInfo implements MutableFieldInfo
MutableFieldInfo.MutableFieldInfo,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected JavassistTypeInfo |
typeInfo
The type info
|
annotationHelper, annotationMap, 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 |
|---|
JavassistFieldInfo(AnnotationHelper annotationHelper,
JavassistTypeInfo typeInfo,
javassist.CtField ctField)
Create a new JavassistFieldInfo.
|
| Modifier and Type | Method and Description |
|---|---|
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) |
getAnnotation, getAnnotations, isAnnotationPresent, setupAnnotationsgetUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotationPresentcacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, hashCode, list, notEqual, toShortString, toString, toStringImplementationfinalize, getClass, notify, notifyAll, wait, wait, waitgetAnnotation, getUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotationPresent, isAnnotationPresentprotected final JavassistTypeInfo typeInfo
public JavassistFieldInfo(AnnotationHelper annotationHelper, JavassistTypeInfo typeInfo, javassist.CtField ctField)
annotationHelper - the annotation helpertypeInfo - the type infoctField - the fieldpublic int getModifiers()
ModifierInfogetModifiers in interface ModifierInfopublic boolean isPublic()
isPublic in interface ModifierInfopublic boolean isStatic()
ModifierInfoisStatic in interface ModifierInfopublic boolean isVolatile()
ModifierInfoisVolatile in interface ModifierInfopublic JavassistTypeInfo getDeclaringClass()
MemberInfogetDeclaringClass in interface MemberInfopublic Object get(Object target) throws Throwable
FieldInfopublic Object set(Object target, Object value) throws Throwable
FieldInfoprotected int getHashCode()
getHashCode in class org.jboss.util.JBossObjectpublic void toShortString(org.jboss.util.JBossStringBuilder buffer)
toShortString in interface org.jboss.util.JBossInterfacetoShortString in class org.jboss.util.JBossObjectprotected void toString(org.jboss.util.JBossStringBuilder buffer)
toString in class org.jboss.util.JBossObjectpublic AnnotationValue[] getAnnotations()
AnnotatedInfogetAnnotations in interface AnnotatedInfopublic javassist.CtField getCtField()
public void setModifier(ModifierInfo modifier)
MutableFieldInfosetModifier in interface MutableFieldInfopublic void setName(String name)
MutableFieldInfosetName in interface MutableFieldInfopublic void setType(ClassInfo type)
MutableFieldInfosetType in interface MutableFieldInfopublic void setType(String type)
MutableFieldInfosetType in interface MutableFieldInfopublic String getDescriptor()
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.