public class BytecodeFieldInfo extends BytecodeAnnotatedInfo implements FieldInfo
MutableFieldInfo
.MutableFieldInfo
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected BytecodeTypeInfo |
typeInfo
The type info
|
annotationHelper, 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 |
---|
BytecodeFieldInfo(AnnotationHelper annotationHelper,
BytecodeTypeInfo typeInfo,
FieldBytes fieldBytes)
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
|
BytecodeTypeInfo |
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 |
toShortString(org.jboss.util.JBossStringBuilder buffer) |
protected void |
toString(org.jboss.util.JBossStringBuilder buffer) |
getAnnotation, getAnnotations, isAnnotationPresent, setupAnnotations
getUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotationPresent
cacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, hashCode, list, notEqual, toShortString, toString, toStringImplementation
finalize, getClass, notify, notifyAll, wait, wait, wait
getAnnotation, getUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotationPresent, isAnnotationPresent
protected final BytecodeTypeInfo typeInfo
public BytecodeFieldInfo(AnnotationHelper annotationHelper, BytecodeTypeInfo typeInfo, FieldBytes fieldBytes)
annotationHelper
- the annotation helpertypeInfo
- the type infoctField
- the fieldpublic 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 BytecodeTypeInfo getDeclaringClass()
MemberInfo
getDeclaringClass
in interface MemberInfo
public Object get(Object target) throws Throwable
FieldInfo
public Object set(Object target, Object value) throws Throwable
FieldInfo
protected int getHashCode()
getHashCode
in class org.jboss.util.JBossObject
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 String getDescriptor()
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.