Class AbstractClassMember
java.lang.Object
edu.umd.cs.findbugs.ba.AbstractClassMember
- All Implemented Interfaces:
AccessibleEntity, ClassMember, FieldOrMethodName, Serializable
- Direct Known Subclasses:
AbstractField, AbstractMethod
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractClassMember(String className, String name, String signature, int accessFlags) -
Method Summary
Modifier and TypeMethodDescriptionbooleanintGet the entity's access flags.Get the ClassDescriptor representing the class (if entity is a class) or the class containing the entity (if a field or method).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).getName()Get the name of the field/method.Get the (dotted) name of the package in which the entity is defined.Get the signature representing the field/method's type.inthashCode()booleanisFinal()Is the entity final?booleanIs the entity private?booleanIs the entity protected?booleanisPublic()Is the entity public?booleanbooleanDid we find a declaration of this entity?booleanisStatic()Is the entity static?(package private) voidtoString()Methods inherited from interface AccessibleEntity
isDeprecated, isSyntheticMethods inherited from interface ClassMember
getSourceSignature
-
Field Details
-
className
-
name
-
signature
-
accessFlags
private final int accessFlags -
resolved
private boolean resolved -
cachedHashCode
private int cachedHashCode
-
-
Constructor Details
-
AbstractClassMember
protected AbstractClassMember(@DottedClassName String className, String name, String signature, int accessFlags)
-
-
Method Details
-
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
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
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
Description copied from interface:ClassMemberGet the (dotted) name of the package in which the entity is defined.- Specified by:
getPackageNamein interfaceClassMember
-
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
-
markAsResolved
void markAsResolved() -
hashCode
-
equals
-
toString
-