edu.umd.cs.findbugs.ba
Class AbstractField

java.lang.Object
  extended by edu.umd.cs.findbugs.ba.AbstractField
All Implemented Interfaces:
XField, java.lang.Comparable<XField>
Direct Known Subclasses:
InstanceField, StaticField

public abstract class AbstractField
extends java.lang.Object
implements XField


Field Summary
private  int accessFlags
           
private  int cachedHashCode
           
private  java.lang.String className
           
private  java.lang.String fieldName
           
private  java.lang.String fieldSig
           
 
Constructor Summary
protected AbstractField(java.lang.String className, java.lang.String fieldName, java.lang.String fieldSig, int accessFlags)
           
 
Method Summary
 int compareTo(XField other)
           
 boolean equals(java.lang.Object o)
           
 int getAccessFlags()
          Get the field's access flags.
 java.lang.String getClassName()
          Get the name of the class the field is defined in.
 java.lang.String getFieldName()
          Get the name of the field.
 java.lang.String getFieldSignature()
          Get the signature representing the field's type.
 int hashCode()
           
 boolean isFinal()
          Is this a final field?
 boolean isPublic()
          Is this a public field?
 boolean isReferenceType()
          Is the type of the field a reference type?
 boolean isVolatile()
          Is this a volatile field?
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.umd.cs.findbugs.ba.XField
isStatic
 

Field Detail

className

private final java.lang.String className

fieldName

private final java.lang.String fieldName

fieldSig

private final java.lang.String fieldSig

accessFlags

private final int accessFlags

cachedHashCode

private int cachedHashCode
Constructor Detail

AbstractField

protected AbstractField(java.lang.String className,
                        java.lang.String fieldName,
                        java.lang.String fieldSig,
                        int accessFlags)
Method Detail

getClassName

public java.lang.String getClassName()
Description copied from interface: XField
Get the name of the class the field is defined in.

Specified by:
getClassName in interface XField

getFieldName

public java.lang.String getFieldName()
Description copied from interface: XField
Get the name of the field.

Specified by:
getFieldName in interface XField

getFieldSignature

public java.lang.String getFieldSignature()
Description copied from interface: XField
Get the signature representing the field's type.

Specified by:
getFieldSignature in interface XField

isReferenceType

public boolean isReferenceType()
Description copied from interface: XField
Is the type of the field a reference type?

Specified by:
isReferenceType in interface XField

getAccessFlags

public int getAccessFlags()
Description copied from interface: XField
Get the field's access flags.

Specified by:
getAccessFlags in interface XField

isVolatile

public boolean isVolatile()
Description copied from interface: XField
Is this a volatile field?

Specified by:
isVolatile in interface XField

isFinal

public boolean isFinal()
Description copied from interface: XField
Is this a final field?

Specified by:
isFinal in interface XField

isPublic

public boolean isPublic()
Description copied from interface: XField
Is this a public field?

Specified by:
isPublic in interface XField

compareTo

public int compareTo(XField other)
Specified by:
compareTo in interface java.lang.Comparable<XField>

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object