Interface Member

All Superinterfaces:
Serializable
All Known Subinterfaces:
ClassMember, FieldMember, MethodMember

public interface Member extends Serializable
The Member type hierarchy represents structural or logical structures in the compiled output. Members don't have a getRange() function because the bytes derived from the member are likely disjoint.
  • Field Details

    • SOURCE_NAME_COMPARATOR

      static final Comparator<Member> SOURCE_NAME_COMPARATOR
      Compares Members based solely on source name. This comparator is faster than TYPE_AND_SOURCE_NAME_COMPARATOR, but is only appropriate for use with homogeneous collections of Members.
    • TYPE_AND_SOURCE_NAME_COMPARATOR

      static final Comparator<Member> TYPE_AND_SOURCE_NAME_COMPARATOR
      Compares Members based on type and source name.
  • Method Details

    • getSourceName

      String getSourceName()
      Returns the name of the Member in the original source code.
    • isClass

      ClassMember isClass()
      Returns the Member if it is a ClassMember or null.
    • isField

      FieldMember isField()
      Returns the Member if it is a FieldMember or null.
    • isMethod

      MethodMember isMethod()
      Returns the Member if it is a MethodMember or null.