[/url] [url=file:///F:/资料/文字资料/j2sdk-1_4_2-doc/docs/api/overview-summary.html]Overview
Class
JavaTM 2 Platform
Std. Ed. v1.4.2
PREV CLASS NEXT CLASS
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
java.lang.reflect
Interface MemberAll Known Implementing Classes: Constructor, Field, Method public interface MemberMember is an interface that reflects identifying information about a single member (a field or a method) or a constructor. Member是反射单一成员(域或方法)或构造函数标识信息的接口。
See Also: Class, Field, Method, ConstructorField Summary
static int
Identifies the set of declared members of a class or interface. 标识类或接口声明的成员组。
static int
Identifies the set of all public members of a class or interface, including inherited members. 标识类或接口所有的公共成员组,包括继承成员。
Method Summary
Returns the Class object representing the class or interface that declares the member or constructor represented by this Member. 返回表示声明了该Member代表的成员或构造函数的类或接口的Class对象。
int
Returns the Java language modifiers for the member or constructor represented by this Member, as an integer. 以整数形式返回该Member代表的成员或构造函数的Java语言修饰符。
getName()
Returns the simple name of the underlying member or constructor represented by this Member. 返回该Member代表的成员或构造函数的简单名称。
Field Detail
PUBLICpublic static final int PUBLIC
Identifies the set of all public members of a class or interface, including inherited members. 标识类或接口所有的公共成员组,包括继承成员。
See Also: SecurityManager.checkMemberAccess(java.lang.Class, int), Constant Field ValuesDECLAREDpublic static final int DECLARED
Identifies the set of declared members of a class or interface. Inherited members are not included. 标识类或接口声明的成员组。不包括继承成员。
See Also: SecurityManager.checkMemberAccess(java.lang.Class, int), Constant Field ValuesMethod Detail
getDeclaringClasspublic Class getDeclaringClass()
Returns the Class object representing the class or interface that declares the member or constructor represented by this Member. 返回表示声明了该Member代表的成员或构造函数的类或接口的Class对象。
Returns: an object representing the declaring class of the underlying member 一个对象,表示成员的声明类。getNamepublic String getName()
Returns the simple name of the underlying member or constructor represented by this Member. 返回该Member代表的成员或构造函数的简单名称。
Returns: the simple name of the underlying member 成员的简单名称getModifierspublic int getModifiers()
Returns the Java language modifiers for the member or constructor represented by this Member, as an integer. The Modifier class should be used to decode the modifiers in the integer. 以整数形式返回该Member代表的成员或构造函数的Java语言修饰符。 可以使用Modifier类来将修饰符解析为整数。
Returns: the Java language modifiers for the underlying member 成员的Java语言修饰符 See Also: Modifier[/url][url=file:///F:/资料/文字资料/j2sdk-1_4_2-doc/docs/api/overview-summary.html]Overview
Class
JavaTM 2 Platform
Std. Ed. v1.4.2
PREV CLASS NEXT CLASS
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. Copyright 2003 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.