java.lang.reflect.Member翻译

来源:互联网 发布:淘宝的个人主页在哪里 编辑:程序博客网 时间:2024/04/27 20:06
 Overview Package  Class Use Tree Deprecated Index Help JavaTM 2 Platform
Std. Ed. v1.4.2
 PREV CLASS   NEXT CLASSFRAMES    NO FRAMES     All Classes SUMMARY: NESTED | FIELD | CONSTR | METHODDETAIL: FIELD | CONSTR | METHOD

java.lang.reflect
Interface Member

All Known Implementing Classes:
Constructor, Field, Method

public interface Member

Member 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, Constructor

Field Summarystatic intDECLARED
          Identifies the set of declared members of a class or interface. 标识类或接口声明的成员组。
static intPUBLIC
          Identifies the set of all public members of a class or interface, including inherited members. 标识类或接口所有的公共成员组,包括继承成员。
  Method Summary ClassgetDeclaringClass()
          Returns the Class object representing the class or interface that declares the member or constructor represented by this Member. 返回表示声明了该Member代表的成员或构造函数的类或接口的Class对象。
 intgetModifiers()
          Returns the Java language modifiers for the member or constructor represented by this Member, as an integer. 以整数形式返回该Member代表的成员或构造函数的Java语言修饰符。
 StringgetName()
          Returns the simple name of the underlying member or constructor represented by this Member. 返回该Member代表的成员或构造函数的简单名称。
 

Field Detail

PUBLIC

public 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 Values

DECLARED

public 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 Values
Method Detail

getDeclaringClass

public 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 一个对象,表示成员的声明类。

getName

public 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 成员的简单名称

getModifiers

public 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

Overview Package  Class Use Tree Deprecated Index Help JavaTM 2 Platform
Std. Ed. v1.4.2
 PREV CLASS   NEXT CLASSFRAMES    NO FRAMES     All Classes SUMMARY: NESTED | FIELD | CONSTR | METHODDETAIL: FIELD | CONSTR | METHOD
Submit a bug or feature
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.

原创粉丝点击