1. /*
  2. * @(#)Member.java 1.9 00/02/02
  3. *
  4. * Copyright 1996-2000 Sun Microsystems, Inc. All Rights Reserved.
  5. *
  6. * This software is the proprietary information of Sun Microsystems, Inc.
  7. * Use is subject to license terms.
  8. *
  9. */
  10. package java.lang.reflect;
  11. /**
  12. * Member is an interface that reflects identifying information about
  13. * a single member (a field or a method) or a constructor.
  14. *
  15. * @see java.lang.Class
  16. * @see Field
  17. * @see Method
  18. * @see Constructor
  19. *
  20. * @author Nakul Saraiya
  21. */
  22. public
  23. interface Member {
  24. /**
  25. * Identifies the set of all public members of a class or interface,
  26. * including inherited members.
  27. * @see java.lang.SecurityManager#checkMemberAccess
  28. */
  29. public static final int PUBLIC = 0;
  30. /**
  31. * Identifies the set of declared members of a class or interface.
  32. * Inherited members are not included.
  33. * @see java.lang.SecurityManager#checkMemberAccess
  34. */
  35. public static final int DECLARED = 1;
  36. /**
  37. * Returns the Class object representing the class or interface
  38. * that declares the member or constructor represented by this Member.
  39. */
  40. public Class getDeclaringClass();
  41. /**
  42. * Returns the simple name of the underlying member or constructor
  43. * represented by this Member.
  44. */
  45. public String getName();
  46. /**
  47. * Returns the Java language modifiers for the member or
  48. * constructor represented by this Member, as an integer. The
  49. * Modifier class should be used to decode the modifiers in
  50. * the integer.
  51. * @see Modifier
  52. */
  53. public int getModifiers();
  54. }