Package | Description |
---|---|
java.lang |
Provides classes that are fundamental to the design of the Java
programming language.
|
java.lang.invoke |
The
java.lang.invoke package contains dynamic language support provided directly by
the Java core class libraries and virtual machine. |
javax.sql.rowset.serial |
Provides utility classes to allow serializable mappings between SQL types
and data types in the Java programming language.
|
Modifier and Type | Method and Description |
---|---|
Field |
Class.getDeclaredField(String name)
Returns a
Field object that reflects the specified declared
field of the class or interface represented by this Class
object. |
Field[] |
Class.getDeclaredFields()
Returns an array of
Field objects reflecting all the fields
declared by the class or interface represented by this
Class object. |
Field |
Class.getField(String name)
Returns a
Field object that reflects the specified public
member field of the class or interface represented by this
Class object. |
Field[] |
Class.getFields()
Returns an array containing
Field objects reflecting all
the accessible public fields of the class or interface represented by
this Class object. |
Modifier and Type | Method and Description |
---|---|
MethodHandle |
MethodHandles.Lookup.unreflectGetter(Field f)
Produces a method handle giving read access to a reflected field.
|
MethodHandle |
MethodHandles.Lookup.unreflectSetter(Field f)
Produces a method handle giving write access to a reflected field.
|
Modifier and Type | Method and Description |
---|---|
Field[] |
SerialJavaObject.getFields()
Returns an array of
Field objects that contains each
field of the object that this helper class is serializing. |
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, 2020, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.