Interface ClassMember

All Superinterfaces:
AccessibleEntity, FieldOrMethodName, Serializable
All Known Subinterfaces:
XField, XMethod
All Known Implementing Classes:
AbstractClassMember, AbstractField, AbstractMethod, FieldInfo, MethodInfo, UnresolvedXField

public interface ClassMember extends Serializable, AccessibleEntity, FieldOrMethodName
Common super-interface for class members (fields and methods).
Author:
David Hovemeyer
See Also:
  • Method Details

    • getClassName

      @DottedClassName String getClassName()
      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).
    • getPackageName

      @DottedClassName String getPackageName()
      Get the (dotted) name of the package in which the entity is defined.
    • getName

      String getName()
      Get the name of the field/method.
      Specified by:
      getName in interface FieldOrMethodName
      Returns:
      Returns the field/method name
    • getSignature

      String getSignature()
      Get the signature representing the field/method's type.
      Specified by:
      getSignature in interface FieldOrMethodName
      Returns:
      Returns the field/method signature
    • getSourceSignature

      @CheckForNull String getSourceSignature()
      Get the signature representing the field/method's type, including generic type
    • isResolved

      boolean isResolved()
      Did we find a declaration of this entity?