public class FieldInfoImpl extends AnnotationHolder implements FieldInfo
| Modifier and Type | Field and Description |
|---|---|
protected ClassInfo |
declaringClass
The declaring class
|
protected int |
hash
The hash code
|
protected int |
modifiers
The field modifier
|
protected String |
name
The field name
|
protected TypeInfo |
type
The field type
|
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 |
|---|
FieldInfoImpl()
Create a new field info
|
FieldInfoImpl(AnnotationValue[] annotations,
String name,
TypeInfo type,
int modifiers,
ClassInfo declaring)
Create a new FieldInfo.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
calculateHash()
Calculate the hash code
|
boolean |
equals(Object obj) |
Object |
get(Object target)
Get the value of the field
|
ClassInfo |
getDeclaringClass()
Get the declaring class
|
int |
getModifiers()
Get the modifiers
|
String |
getName()
Get the name
|
TypeInfo |
getType()
Get the field type
|
int |
hashCode() |
boolean |
isPublic()
Whether it is public
|
boolean |
isStatic()
Whether it is static
|
boolean |
isVolatile()
Whether it is volatile
|
Object |
set(Object target,
Object value)
Set the value of the field
|
protected void |
toString(org.jboss.util.JBossStringBuilder buffer) |
getAnnotation, 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 String name
protected TypeInfo type
protected int modifiers
protected ClassInfo declaringClass
protected int hash
public FieldInfoImpl()
public FieldInfoImpl(AnnotationValue[] annotations, String name, TypeInfo type, int modifiers, ClassInfo declaring)
annotations - the annotationsname - the nametype - the field typemodifiers - the field modifiersdeclaring - the declaring classpublic ClassInfo getDeclaringClass()
MemberInfogetDeclaringClass in interface MemberInfopublic int getModifiers()
ModifierInfogetModifiers in interface ModifierInfopublic boolean isStatic()
ModifierInfoisStatic in interface ModifierInfopublic boolean isPublic()
ModifierInfoisPublic in interface ModifierInfopublic boolean isVolatile()
ModifierInfoisVolatile in interface ModifierInfopublic Object get(Object target) throws Throwable
FieldInfopublic Object set(Object target, Object value) throws Throwable
FieldInfoprotected void toString(org.jboss.util.JBossStringBuilder buffer)
toString in class org.jboss.util.JBossObjectpublic int hashCode()
hashCode in class org.jboss.util.JBossObjectprotected void calculateHash()
Copyright © 2016 JBoss by Red Hat. All rights reserved.