Package | Description |
---|---|
java.lang.invoke |
The
java.lang.invoke package contains dynamic language support provided directly by
the Java core class libraries and virtual machine. |
java.lang.reflect |
Provides classes and interfaces for obtaining reflective
information about classes and objects.
|
Modifier and Type | Method and Description |
---|---|
static <T extends Member> |
MethodHandles.reflectAs(Class<T> expected,
MethodHandle target)
Performs an unchecked "crack" of a
direct method handle.
|
<T extends Member> |
MethodHandleInfo.reflectAs(Class<T> expected,
MethodHandles.Lookup lookup)
Reflects the underlying member as a method, constructor, or field object.
|
Modifier and Type | Class and Description |
---|---|
class |
Constructor<T>
Constructor provides information about, and access to, a single
constructor for a class. |
class |
Executable
A shared superclass for the common functionality of
Method
and Constructor . |
class |
Field
A
Field provides information about, and dynamic access to, a
single field of a class or an interface. |
class |
Method
A
Method provides information about, and access to, a single method
on a class or interface. |
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, 2024, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.