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