public class FieldInfo extends FieldDescriptor implements XField
| Modifier and Type | Class and Description |
|---|---|
static class |
FieldInfo.Builder |
| Modifier and Type | Field and Description |
|---|---|
static FieldInfo[] |
EMPTY_ARRAY |
| Modifier and Type | Method and Description |
|---|---|
void |
addAnnotation(AnnotationValue annotationValue)
Destructively add an annotation.
|
int |
compareTo(ComparableField rhs) |
static FieldInfo |
createUnresolvedFieldInfo(java.lang.String className,
java.lang.String name,
java.lang.String signature,
boolean isStatic)
Create a FieldInfo object to represent an unresolved field.
|
int |
getAccessFlags()
Get the entity's access flags.
|
AnnotationValue |
getAnnotation(ClassDescriptor desc) |
java.util.Collection<ClassDescriptor> |
getAnnotationDescriptors() |
java.util.Collection<AnnotationValue> |
getAnnotations() |
java.lang.String |
getClassName()
Get the full (dotted) name of the class (if the object represents a
class) or the class the entity is defined in (if a field or method).
|
AnnotatedObject |
getContainingScope() |
java.lang.annotation.ElementType |
getElementType() |
FieldDescriptor |
getFieldDescriptor() |
int |
getNumParams() |
java.lang.String |
getPackageName()
Get the (dotted) name of the package in which the entity is defined.
|
java.lang.String |
getSourceSignature()
Get the signature representing the field/method's type, including generic
type
|
boolean |
isDeprecated()
Is the entity deprecated?
|
boolean |
isFinal()
Is the entity final?
|
boolean |
isNative() |
boolean |
isPrivate()
Is the entity private?
|
boolean |
isProtected()
Is the entity protected?
|
boolean |
isPublic()
Is the entity public?
|
boolean |
isReferenceType()
Is the type of the field a reference type?
|
boolean |
isResolved()
Did we find a declaration of this entity?
|
boolean |
isSynchronized() |
boolean |
isSynthetic()
Is the entity synthetic?
|
boolean |
isVolatile()
Is this a volatile field?
|
equals, toStringcompareTo, compareTo, getClassDescriptor, getName, getNameSigHashCode, getNameSigHashCode, getSignature, getSlashedClassName, hashCode, haveEqualFields, isStaticclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetName, getSignaturegetClassDescriptor, isStaticgetClassDescriptor, isStaticgetClassDescriptorpublic static final FieldInfo[] EMPTY_ARRAY
public int getNumParams()
public boolean isNative()
public boolean isSynchronized()
public boolean isDeprecated()
AccessibleEntityisDeprecated in interface AccessibleEntity@DottedClassName public java.lang.String getClassName()
ClassMembergetClassName in interface ClassMember@DottedClassName public java.lang.String getPackageName()
ClassMembergetPackageName in interface ClassMemberpublic java.lang.String getSourceSignature()
ClassMembergetSourceSignature in interface ClassMemberpublic int compareTo(ComparableField rhs)
compareTo in interface java.lang.Comparable<ComparableField>compareTo in class FieldDescriptorpublic int getAccessFlags()
AccessibleEntitygetAccessFlags in interface AccessibleEntitypublic boolean isFinal()
AccessibleEntityisFinal in interface AccessibleEntitypublic boolean isPrivate()
AccessibleEntityisPrivate in interface AccessibleEntitypublic boolean isProtected()
AccessibleEntityisProtected in interface AccessibleEntitypublic boolean isPublic()
AccessibleEntityisPublic in interface AccessibleEntitypublic boolean isResolved()
ClassMemberisResolved in interface ClassMemberpublic boolean isReferenceType()
XFieldisReferenceType in interface XFieldpublic boolean isVolatile()
XFieldisVolatile in interface XFieldpublic boolean isSynthetic()
AccessibleEntityisSynthetic in interface AccessibleEntityisSynthetic in interface AnnotatedObjectpublic java.util.Collection<ClassDescriptor> getAnnotationDescriptors()
getAnnotationDescriptors in interface AnnotatedObjectpublic AnnotationValue getAnnotation(ClassDescriptor desc)
getAnnotation in interface AnnotatedObjectpublic java.util.Collection<AnnotationValue> getAnnotations()
getAnnotations in interface AnnotatedObjectpublic void addAnnotation(AnnotationValue annotationValue)
annotationValue - an AnnotationValue representing a field annotationpublic FieldDescriptor getFieldDescriptor()
getFieldDescriptor in interface XFieldpublic static FieldInfo createUnresolvedFieldInfo(java.lang.String className, java.lang.String name, java.lang.String signature, boolean isStatic)
className - name of class containing the fieldname - name of fieldsignature - field signatureisStatic - true if field is static, false otherwisepublic java.lang.annotation.ElementType getElementType()
getElementType in interface AnnotatedObject@CheckForNull public AnnotatedObject getContainingScope()
getContainingScope in interface AnnotatedObjectFindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.