软件包 | 描述 |
---|---|
java.lang |
提供对java编程语言的设计基础课。
|
java.lang.invoke |
java.lang.invoke 包中包含的动态语言支持的java核心类库和虚拟机直接提供。
|
javax.sql.rowset.serial |
提供实用类允许序列化映射之间的SQL类型和数据在java编程语言的类型。
|
Modifier and Type | Method and Description |
---|---|
Field |
Class.getDeclaredField(String name)
返回一个对象,反映了
Field 指定声明字段的类或接口的
类 对象表示。
|
Field[] |
Class.getDeclaredFields()
返回
Field 物体反射所有字段的类或接口的
类 对象表示声明数组。
|
Field |
Class.getField(String name)
返回一个
Field 对象反映的类或接口的
类 对象表示的指定公共成员。
|
Field[] |
Class.getFields()
返回一个数组包含
Field 物体反射的类或接口的
类 对象代表所有可访问的公共领域。
|
Modifier and Type | Method and Description |
---|---|
MethodHandle |
MethodHandles.Lookup.unreflectGetter(Field f)
产生一个方法来处理对一个反射字段的读取访问。
|
MethodHandle |
MethodHandles.Lookup.unreflectSetter(Field f)
产生一个处理对一个反射字段的写访问的方法。
|
Modifier and Type | Method and Description |
---|---|
Field[] |
SerialJavaObject.getFields()
返回
Field 对象包含此helper类序列化对象数组的每个领域。
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.