Package edu.umd.cs.findbugs.ba
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:
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractClassMember
(String className, String name, String signature, int accessFlags) -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Get 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.int
hashCode()
boolean
isFinal()
Is the entity final?boolean
Is the entity private?boolean
Is the entity protected?boolean
isPublic()
Is the entity public?boolean
boolean
Did we find a declaration of this entity?boolean
isStatic()
Is the entity static?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.AccessibleEntity
isDeprecated, isSynthetic
Methods inherited from interface edu.umd.cs.findbugs.ba.ClassMember
getSourceSignature
-
Constructor Details
-
AbstractClassMember
protected AbstractClassMember(@DottedClassName String className, String name, String signature, int accessFlags)
-
-
Method Details
-
getClassName
Description copied from interface:ClassMember
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).- Specified by:
getClassName
in interfaceClassMember
-
getClassDescriptor
Description copied from interface:AccessibleEntity
Get the ClassDescriptor representing the class (if entity is a class) or the class containing the entity (if a field or method).- Specified by:
getClassDescriptor
in interfaceAccessibleEntity
- Specified by:
getClassDescriptor
in interfaceFieldOrMethodName
- Returns:
- a ClassDescriptor for the field/method's class
-
getName
Description copied from interface:ClassMember
Get the name of the field/method.- Specified by:
getName
in interfaceClassMember
- Specified by:
getName
in interfaceFieldOrMethodName
- Returns:
- Returns the field/method name
-
getPackageName
Description copied from interface:ClassMember
Get the (dotted) name of the package in which the entity is defined.- Specified by:
getPackageName
in interfaceClassMember
-
getSignature
Description copied from interface:ClassMember
Get the signature representing the field/method's type.- Specified by:
getSignature
in interfaceClassMember
- Specified by:
getSignature
in interfaceFieldOrMethodName
- Returns:
- Returns the field/method signature
-
isReferenceType
public boolean isReferenceType() -
getAccessFlags
public int getAccessFlags()Description copied from interface:AccessibleEntity
Get the entity's access flags.- Specified by:
getAccessFlags
in interfaceAccessibleEntity
-
isStatic
public boolean isStatic()Description copied from interface:AccessibleEntity
Is the entity static?- Specified by:
isStatic
in interfaceAccessibleEntity
- Specified by:
isStatic
in interfaceFieldOrMethodName
- Returns:
- Returns true if field/method is static, false if not
-
isFinal
public boolean isFinal()Description copied from interface:AccessibleEntity
Is the entity final?- Specified by:
isFinal
in interfaceAccessibleEntity
-
isPublic
public boolean isPublic()Description copied from interface:AccessibleEntity
Is the entity public?- Specified by:
isPublic
in interfaceAccessibleEntity
-
isProtected
public boolean isProtected()Description copied from interface:AccessibleEntity
Is the entity protected?- Specified by:
isProtected
in interfaceAccessibleEntity
-
isPrivate
public boolean isPrivate()Description copied from interface:AccessibleEntity
Is the entity private?- Specified by:
isPrivate
in interfaceAccessibleEntity
-
isResolved
public boolean isResolved()Description copied from interface:ClassMember
Did we find a declaration of this entity?- Specified by:
isResolved
in interfaceClassMember
-
hashCode
public int hashCode() -
equals
-
toString
-