/[classpath]/classpath/java/lang/reflect/Member.java
ViewVC logotype

Diff of /classpath/java/lang/reflect/Member.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by mark, Sat Sep 29 23:55:45 2001 UTC revision 1.5 by ericb, Sun Oct 21 01:12:06 2001 UTC
# Line 1  Line 1 
1  /* java.lang.reflect.Member  /* java.lang.reflect.Member - common query methods in reflection
2     Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.     Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
3    
4  This file is part of GNU Classpath.  This file is part of GNU Classpath.
# Line 7  GNU Classpath is free software; you can Line 7  GNU Classpath is free software; you can
7  it under the terms of the GNU General Public License as published by  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation; either version 2, or (at your option)  the Free Software Foundation; either version 2, or (at your option)
9  any later version.  any later version.
10    
11  GNU Classpath is distributed in the hope that it will be useful, but  GNU Classpath is distributed in the hope that it will be useful, but
12  WITHOUT ANY WARRANTY; without even the implied warranty of  WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Line 27  executable file might be covered by the Line 27  executable file might be covered by the
27    
28  package java.lang.reflect;  package java.lang.reflect;
29    
 /* Written using "Java Class Libraries", 2nd edition.  
  * Status:  Believed complete and correct.  
  */  
   
30  /**  /**
31   * Member is an interface that represents any member of a class.   * Member is an interface that represents any member of a class (field or
32   * i.e. a field, a method or a constructor.   * method) or a constructor. You can get information about the declaring
33   * You can get information about the declaring class, name or modifiers of   * class, name or modifiers of the member with this interface.
  * the member with this interface.  
34   *   *
35   * @author  John Keiser   * @author John Keiser
36   * @author Per Bothner <bothner@cygnus.com>   * @author Per Bothner <bothner@cygnus.com>
37     * @author Eric Blake <ebb9@email.byu.edu>
38     * @see Class
39     * @see Field
40     * @see Method
41     * @see Constructor
42     * @since 1.1
43     * @status updated to 1.4
44   */   */
45  public interface Member {  public interface Member
46      /**  {
47       * Represents all members, whether public, private, protected or    /**
48       * package-protected.     * Represents all members, whether public, private, protected or
49       * Used in java.lang.SecurityManager.checkMemberAccess() to determine the     * package-protected, but only which are declared in this class.
50       * type of members to access.     * Used in SecurityManager.checkMemberAccess() to determine the
51       */     * type of members to access.
52      static final int DECLARED = 1;     * @see SecurityManager#checkMemberAccess()
53       */
54      /**    int DECLARED = 1;
55       * Represents public members only.  Used inr  
56       * java.lang.SecurityManager.checkMemberAccess() to determine the type of    /**
57       * members to access.     * Represents public members only, but includes all inherited members.
58       */     *  Used in SecurityManager.checkMemberAccess() to determine the type of
59      static final int PUBLIC = 0;     * members to access.
60       * @see SecurityManager#checkMemberAccess()
61      /**     */
62       * Gets the class that declared this member.    int PUBLIC = 0;
63       * <STRONG>It is unclear whether this returns the class that actually  
64       * syntactically declared the member, or the class where the    /**
65       * <code>Member</code> object was gotten from.</STRONG>     * Gets the class that declared this member. This is not the class where
66       * @return the class that declared this member.     * this method was called, or even the class where this Member object
67       */     * came to life, but the class that declares the member this represents.
68      Class getDeclaringClass();     *
69       * @return the class that declared this member
70      /**     */
71       * Gets the modifiers this member uses.  Use the <code>Modifier</code>    Class getDeclaringClass();
72       * class to interpret the values.  
73       * @see Modifier    /**
74       * @return an integer representing the modifiers to this Member.     * Gets the simple name of this member. This will be a valid Java
75       */     * identifier, with no qualification.
76      int getModifiers();     *
77       * @return the name of this member
78      /**     */
79       * Gets the name of this member.    String getName();
80       * @return the name of this member.  
81       */    /**
82      String getName();     * Gets the modifiers this member uses.  Use the <code>Modifier</code>
83       * class to interpret the values.
84       *
85       * @return an integer representing the modifiers to this Member
86       * @see Modifier
87       */
88      int getModifiers();
89  }  }

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26