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, annotationsArray
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 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, setupAnnotations
getUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotationPresent
cacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, getHashCode, list, notEqual, toShortString, toShortString, toString, toStringImplementation
finalize, getClass, notify, notifyAll, wait, wait, wait
getAnnotation, getAnnotations, getUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotationPresent, isAnnotationPresent
protected 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()
MemberInfo
getDeclaringClass
in interface MemberInfo
public int getModifiers()
ModifierInfo
getModifiers
in interface ModifierInfo
public boolean isStatic()
ModifierInfo
isStatic
in interface ModifierInfo
public boolean isPublic()
ModifierInfo
isPublic
in interface ModifierInfo
public boolean isVolatile()
ModifierInfo
isVolatile
in interface ModifierInfo
public Object get(Object target) throws Throwable
FieldInfo
public Object set(Object target, Object value) throws Throwable
FieldInfo
protected void toString(org.jboss.util.JBossStringBuilder buffer)
toString
in class org.jboss.util.JBossObject
public int hashCode()
hashCode
in class org.jboss.util.JBossObject
protected void calculateHash()
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All rights reserved.