edu.umd.cs.findbugs.ba
Class AbstractClassMember

java.lang.Object
  extended by edu.umd.cs.findbugs.ba.AbstractClassMember
All Implemented Interfaces:
ClassMember, java.io.Serializable, java.lang.Comparable<ClassMember>
Direct Known Subclasses:
AbstractField, AbstractMethod

public abstract class AbstractClassMember
extends java.lang.Object
implements ClassMember

See Also:
Serialized Form

Constructor Summary
protected AbstractClassMember(java.lang.String className, java.lang.String name, java.lang.String signature, int accessFlags)
           
 
Method Summary
 int compareTo(ClassMember other)
           
 boolean equals(java.lang.Object o)
           
 int getAccessFlags()
          Get the field/method's access flags.
 java.lang.String getClassName()
          Get the name of the class the field/method is defined in.
 java.lang.String getName()
          Get the name of the field/method.
 java.lang.String getSignature()
          Get the signature representing the field/method's type.
 int hashCode()
           
 boolean isFinal()
          Is this a final field/method?
 boolean isPrivate()
          Is this a private field/method?
 boolean isProtected()
          Is this a protected field/method?
 boolean isPublic()
          Is this a public field/method?
 boolean isReferenceType()
           
 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.ClassMember
isStatic
 

Constructor Detail

AbstractClassMember

protected AbstractClassMember(java.lang.String className,
                              java.lang.String name,
                              java.lang.String signature,
                              int accessFlags)
Method Detail

getClassName

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

Specified by:
getClassName in interface ClassMember

getName

public java.lang.String getName()
Description copied from interface: ClassMember
Get the name of the field/method.

Specified by:
getName in interface ClassMember

getSignature

public java.lang.String getSignature()
Description copied from interface: ClassMember
Get the signature representing the field/method's type.

Specified by:
getSignature in interface ClassMember

isReferenceType

public boolean isReferenceType()

getAccessFlags

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

Specified by:
getAccessFlags in interface ClassMember

isFinal

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

Specified by:
isFinal in interface ClassMember

isPublic

public boolean isPublic()
Description copied from interface: ClassMember
Is this a public field/method?

Specified by:
isPublic in interface ClassMember

isProtected

public boolean isProtected()
Description copied from interface: ClassMember
Is this a protected field/method?

Specified by:
isProtected in interface ClassMember

isPrivate

public boolean isPrivate()
Description copied from interface: ClassMember
Is this a private field/method?

Specified by:
isPrivate in interface ClassMember

compareTo

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

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