Interface Member

All Known Implementing Classes:
Constructor, Field, Method

public interface Member
Common interface providing access to reflective information on class members.
See Also:
Field, Constructor, Method
  • Field Summary

    Fields
    Modifier and Type Field Description
    static int DECLARED
    Designates all declared members of a class or interface (without inherited members).
    static int PUBLIC
    Designates all public members of a class or interface (including inherited members).
  • Method Summary

    Modifier and Type Method Description
    Class<?> getDeclaringClass()
    Returns the class that declares this member.
    int getModifiers()
    Returns the modifiers for this member.
    String getName()
    Returns the name of this member.
    boolean isSynthetic()
    Indicates whether or not this member is synthetic (artificially introduced by the compiler).
  • Field Details

    • PUBLIC

      static final int PUBLIC
      Designates all public members of a class or interface (including inherited members).
      See Also:
      Constant Field Values
    • DECLARED

      static final int DECLARED
      Designates all declared members of a class or interface (without inherited members).
      See Also:
      Constant Field Values
  • Method Details

    • getDeclaringClass

      Class<?> getDeclaringClass()
      Returns the class that declares this member.
      Returns:
      the declaring class
    • getModifiers

      int getModifiers()
      Returns the modifiers for this member. The Modifier class should be used to decode the result.
      Returns:
      the modifiers for this member
      See Also:
      Modifier
    • getName

      String getName()
      Returns the name of this member.
      Returns:
      the name of this member
    • isSynthetic

      boolean isSynthetic()
      Indicates whether or not this member is synthetic (artificially introduced by the compiler).
      Returns:
      true if this member is synthetic, false otherwise