| 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
Returns a
Field object that reflects the specified declared field of the class or interface represented by this
Class object.
|
Field |
Class.getField(String
Returns a
Field object that reflects the specified public member field of the class or interface represented by this
Class object.
|
| Modifier and Type | Method and Description |
|---|---|
MethodHandle |
MethodHandles.Lookup.findGetter(Class
Produces a method handle giving read access to a non-static field.
|
MethodHandle |
MethodHandles.Lookup.findSetter(Class
Produces a method handle giving write access to a non-static field.
|
MethodHandle |
MethodHandles.Lookup.findStaticGetter(Class
Produces a method handle giving read access to a static field.
|
MethodHandle |
MethodHandles.Lookup.findStaticSetter(Class
Produces a method handle giving write access to a static field.
|