Package edu.umd.cs.findbugs.ba
Class AbstractClassMember
- java.lang.Object
-
- edu.umd.cs.findbugs.ba.AbstractClassMember
-
- All Implemented Interfaces:
AccessibleEntity,ClassMember,FieldOrMethodName,java.io.Serializable
- Direct Known Subclasses:
AbstractField,AbstractMethod
public abstract class AbstractClassMember extends java.lang.Object implements ClassMember
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractClassMember(java.lang.String className, java.lang.String name, java.lang.String signature, int accessFlags)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)intgetAccessFlags()Get the entity's access flags.ClassDescriptorgetClassDescriptor()Get the ClassDescriptor representing the class (if entity is a class) or the class containing the entity (if a field or method).java.lang.StringgetClassName()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).java.lang.StringgetName()Get the name of the field/method.java.lang.StringgetPackageName()Get the (dotted) name of the package in which the entity is defined.java.lang.StringgetSignature()Get the signature representing the field/method's type.inthashCode()booleanisFinal()Is the entity final?booleanisPrivate()Is the entity private?booleanisProtected()Is the entity protected?booleanisPublic()Is the entity public?booleanisReferenceType()booleanisResolved()Did we find a declaration of this entity?booleanisStatic()Is the entity static?java.lang.StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface edu.umd.cs.findbugs.ba.AccessibleEntity
isDeprecated, isSynthetic
-
Methods inherited from interface edu.umd.cs.findbugs.ba.ClassMember
getSourceSignature
-
-
-
-
Constructor Detail
-
AbstractClassMember
protected AbstractClassMember(@DottedClassName java.lang.String className, java.lang.String name, java.lang.String signature, int accessFlags)
-
-
Method Detail
-
getClassName
@DottedClassName public java.lang.String getClassName()
Description copied from interface:ClassMemberGet 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).- Specified by:
getClassNamein interfaceClassMember
-
getClassDescriptor
public ClassDescriptor getClassDescriptor()
Description copied from interface:AccessibleEntityGet the ClassDescriptor representing the class (if entity is a class) or the class containing the entity (if a field or method).- Specified by:
getClassDescriptorin interfaceAccessibleEntity- Specified by:
getClassDescriptorin interfaceFieldOrMethodName- Returns:
- a ClassDescriptor for the field/method's class
-
getName
public java.lang.String getName()
Description copied from interface:ClassMemberGet the name of the field/method.- Specified by:
getNamein interfaceClassMember- Specified by:
getNamein interfaceFieldOrMethodName- Returns:
- Returns the field/method name
-
getPackageName
@DottedClassName public java.lang.String getPackageName()
Description copied from interface:ClassMemberGet the (dotted) name of the package in which the entity is defined.- Specified by:
getPackageNamein interfaceClassMember
-
getSignature
public java.lang.String getSignature()
Description copied from interface:ClassMemberGet the signature representing the field/method's type.- Specified by:
getSignaturein interfaceClassMember- Specified by:
getSignaturein interfaceFieldOrMethodName- Returns:
- Returns the field/method signature
-
isReferenceType
public boolean isReferenceType()
-
getAccessFlags
public int getAccessFlags()
Description copied from interface:AccessibleEntityGet the entity's access flags.- Specified by:
getAccessFlagsin interfaceAccessibleEntity
-
isStatic
public boolean isStatic()
Description copied from interface:AccessibleEntityIs the entity static?- Specified by:
isStaticin interfaceAccessibleEntity- Specified by:
isStaticin interfaceFieldOrMethodName- Returns:
- Returns true if field/method is static, false if not
-
isFinal
public boolean isFinal()
Description copied from interface:AccessibleEntityIs the entity final?- Specified by:
isFinalin interfaceAccessibleEntity
-
isPublic
public boolean isPublic()
Description copied from interface:AccessibleEntityIs the entity public?- Specified by:
isPublicin interfaceAccessibleEntity
-
isProtected
public boolean isProtected()
Description copied from interface:AccessibleEntityIs the entity protected?- Specified by:
isProtectedin interfaceAccessibleEntity
-
isPrivate
public boolean isPrivate()
Description copied from interface:AccessibleEntityIs the entity private?- Specified by:
isPrivatein interfaceAccessibleEntity
-
isResolved
public boolean isResolved()
Description copied from interface:ClassMemberDid we find a declaration of this entity?- Specified by:
isResolvedin interfaceClassMember
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-