Interface MemberDesc

All Superinterfaces:
Typed
All Known Subinterfaces:
ClassMethodDesc, ConstructorDesc, FieldDesc, InterfaceMethodDesc, MethodDesc

public sealed interface MemberDesc extends Typed permits ConstructorDesc, FieldDesc, MethodDesc
A descriptor for a class member.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the member name.
    Returns the descriptor of the class which contains the described member.
    Convert this descriptor to a string and append it to the given builder.
    Returns a descriptor representing the type of this member.
  • Method Details

    • owner

      ClassDesc owner()
      Returns the descriptor of the class which contains the described member.
      Returns:
      the descriptor of the class which contains the described member
    • type

      ConstantDesc type()
      Returns a descriptor representing the type of this member.
      Specified by:
      type in interface Typed
      Returns:
      a descriptor representing the type of this member
    • name

      String name()
      Returns the member name.
      Returns:
      the member name
    • toString

      Convert this descriptor to a string and append it to the given builder.
      Parameters:
      b - the string builder to append to (must not be null)
      Returns:
      the string builder