25 26 package java.lang.reflect; 27 28 /** 29 * Member is an interface that reflects identifying information about 30 * a single member (a field or a method) or a constructor. 31 * 32 * @see java.lang.Class 33 * @see Field 34 * @see Method 35 * @see Constructor 36 * 37 * @author Nakul Saraiya 38 */ 39 public 40 interface Member { 41 42 /** 43 * Identifies the set of all public members of a class or interface, 44 * including inherited members. 45 * @see java.lang.SecurityManager#checkMemberAccess 46 */ 47 public static final int PUBLIC = 0; 48 49 /** 50 * Identifies the set of declared members of a class or interface. 51 * Inherited members are not included. 52 * @see java.lang.SecurityManager#checkMemberAccess 53 */ 54 public static final int DECLARED = 1; 55 56 /** 57 * Returns the Class object representing the class or interface 58 * that declares the member or constructor represented by this Member. 59 * 60 * @return an object representing the declaring class of the 61 * underlying member 62 */ 63 public Class<?> getDeclaringClass(); 64 65 /** 66 * Returns the simple name of the underlying member or constructor 67 * represented by this Member. 68 * 69 * @return the simple name of the underlying member 70 */ 71 public String getName(); 72 | 25 26 package java.lang.reflect; 27 28 /** 29 * Member is an interface that reflects identifying information about 30 * a single member (a field or a method) or a constructor. 31 * 32 * @see java.lang.Class 33 * @see Field 34 * @see Method 35 * @see Constructor 36 * 37 * @author Nakul Saraiya 38 */ 39 public 40 interface Member { 41 42 /** 43 * Identifies the set of all public members of a class or interface, 44 * including inherited members. 45 */ 46 public static final int PUBLIC = 0; 47 48 /** 49 * Identifies the set of declared members of a class or interface. 50 * Inherited members are not included. 51 */ 52 public static final int DECLARED = 1; 53 54 /** 55 * Returns the Class object representing the class or interface 56 * that declares the member or constructor represented by this Member. 57 * 58 * @return an object representing the declaring class of the 59 * underlying member 60 */ 61 public Class<?> getDeclaringClass(); 62 63 /** 64 * Returns the simple name of the underlying member or constructor 65 * represented by this Member. 66 * 67 * @return the simple name of the underlying member 68 */ 69 public String getName(); 70 |