Interface AccessibleEntity
- All Known Subinterfaces:
ClassMember, XClass, XField, XMethod
- All Known Implementing Classes:
AbstractClassMember, AbstractField, AbstractMethod, ClassInfo, FieldInfo, MethodInfo, UnresolvedXField, UnresolvedXMethod
public interface AccessibleEntity
Common superinterface for code entities having access flags: classes, fields,
and methods.
-
Method Summary
Modifier and TypeMethodDescriptionintGet 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).booleanIs the entity deprecated?booleanisFinal()Is the entity final?booleanIs the entity private?booleanIs the entity protected?booleanisPublic()Is the entity public?booleanisStatic()Is the entity static?booleanIs the entity synthetic?
-
Method Details
-
getAccessFlags
int getAccessFlags()Get the entity's access flags. -
isStatic
boolean isStatic()Is the entity static? -
isFinal
boolean isFinal()Is the entity final? -
isPublic
boolean isPublic()Is the entity public? -
isProtected
boolean isProtected()Is the entity protected? -
isPrivate
boolean isPrivate()Is the entity private? -
isSynthetic
boolean isSynthetic()Is the entity synthetic? -
isDeprecated
boolean isDeprecated()Is the entity deprecated? -
getClassDescriptor
ClassDescriptor getClassDescriptor()Get the ClassDescriptor representing the class (if entity is a class) or the class containing the entity (if a field or method).
-