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. |
Modifier and Type | Method and Description |
---|---|
Field |
Class.getDeclaredField(String name)
Answers a Field object describing the field in the receiver
named by the argument.
|
Field |
Class.getField(String name)
Answers a Field object describing the field in the receiver
named by the argument which must be visible from the current
execution context.
|
Modifier and Type | Method and Description |
---|---|
MethodHandle |
MethodHandles.Lookup.findGetter(Class<?> clazz,
String fieldName,
Class<?> fieldType)
Return a MethodHandle that provides read access to a field.
|
MethodHandle |
MethodHandles.Lookup.findSetter(Class<?> clazz,
String fieldName,
Class<?> fieldType)
Return a MethodHandle that provides write access to a field.
|
MethodHandle |
MethodHandles.Lookup.findStaticGetter(Class<?> clazz,
String fieldName,
Class<?> fieldType)
Return a MethodHandle that provides read access to a field.
|
MethodHandle |
MethodHandles.Lookup.findStaticSetter(Class<?> clazz,
String fieldName,
Class<?> fieldType)
Return a MethodHandle that provides write access to a field.
|
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, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.