1 /* java.lang.reflect.Member - common query methods in reflection
2 Copyright (C) 1998, 1999, 2001 Free Software Foundation, Inc.
4 This file is part of GNU Classpath.
6 GNU Classpath is free software; you can redistribute it and/or modify
7 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)
11 GNU Classpath is distributed in the hope that it will be useful, but
12 WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with GNU Classpath; see the file COPYING. If not, write to the
18 Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
21 As a special exception, if you link this library with other files to
22 produce an executable, this library does not by itself cause the
23 resulting executable to be covered by the GNU General Public License.
24 This exception does not however invalidate any other reasons why the
25 executable file might be covered by the GNU General Public License. */
28 package java.lang.reflect;
31 * Member is an interface that represents any member of a class (field or
32 * method) or a constructor. You can get information about the declaring
33 * class, name or modifiers of the member with this interface.
36 * @author Per Bothner <bothner@cygnus.com>
37 * @author Eric Blake <ebb9@email.byu.edu>
43 * @status updated to 1.4
45 public interface Member
48 * Represents all members, whether public, private, protected or
49 * package-protected, but only which are declared in this class.
50 * Used in SecurityManager.checkMemberAccess() to determine the
51 * type of members to access.
52 * @see SecurityManager#checkMemberAccess()
57 * Represents public members only, but includes all inherited members.
58 * Used in SecurityManager.checkMemberAccess() to determine the type of
60 * @see SecurityManager#checkMemberAccess()
65 * Gets the class that declared this member. This is not the class where
66 * 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.
69 * @return the class that declared this member
71 Class getDeclaringClass();
74 * Gets the simple name of this member. This will be a valid Java
75 * identifier, with no qualification.
77 * @return the name of this member
82 * Gets the modifiers this member uses. Use the <code>Modifier</code>
83 * class to interpret the values.
85 * @return an integer representing the modifiers to this Member