java.lang.reflect.Member翻译

王朝java/jsp·作者佚名  2006-01-09
窄屏简体版  字體: |||超大  

[/url] [url=file:///F:/资料/文字资料/j2sdk-1_4_2-doc/docs/api/overview-summary.html]Overview

Package

Class

Use

Tree

Deprecated

Index

Help

JavaTM 2 Platform

Std. Ed. v1.4.2

PREV CLASS NEXT CLASS

FRAMES NO FRAMES All Classes

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

DECLARED

Identifies the set of declared members of a class or interface. 标识类或接口声明的成员组。

static int

PUBLIC

Identifies the set of all public members of a class or interface, including inherited members. 标识类或接口所有的公共成员组,包括继承成员。

Method Summary

Class

getDeclaringClass()

Returns the Class object representing the class or interface that declares the member or constructor represented by this Member. 返回表示声明了该Member代表的成员或构造函数的类或接口的Class对象。

int

getModifiers()

Returns the Java language modifiers for the member or constructor represented by this Member, as an integer. 以整数形式返回该Member代表的成员或构造函数的Java语言修饰符。

String

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

Package

Class

Use

Tree

Deprecated

Index

Help

JavaTM 2 Platform

Std. Ed. v1.4.2

PREV CLASS NEXT CLASS

FRAMES NO FRAMES All Classes

SUMMARY: NESTED | FIELD | CONSTR | METHOD

DETAIL: 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.

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航