Uses of Package
java.lang.invoke
Package
Description
Provides classes that are fundamental to the design of the Java
programming language.
Classes and interfaces to represent nominal descriptors for run-time
entities such as classes or method handles, and classfile entities such as
constant pool entries or
invokedynamic
call sites.Provides low-level access to memory and functions outside the Java runtime.
The
java.lang.invoke
package provides low-level primitives for interacting
with the Java Virtual Machine.The
java.lang.runtime
package provides low-level runtime support
for the Java language.Contains interfaces and classes that are used to link an
invokedynamic
call site.Contains the linker for ordinary Java objects.
Contains interfaces and classes needed by language runtimes to implement
their own language-specific object models and type conversions.
Contains classes that make it more convenient for language runtimes to
implement their own language-specific object models and type conversions
by providing basic implementations of some classes as well as various
utilities.
Contains classes that make using Dynalink more convenient by providing
basic implementations of some classes as well as various utilities.
-
ClassDescriptionA lookup object is a factory for creating method handles, when the creation requires access checking.A method type represents the arguments and return type accepted and returned by a method handle, or the arguments and return type passed and expected by a method handle caller.An entity that has a type descriptor.An entity that has a field type descriptor.
-
ClassDescriptionA lookup object is a factory for creating method handles, when the creation requires access checking.An entity that has a type descriptor.An entity that has a field type descriptor.An entity that has a method type descriptor Method descriptors conforming to JVMS 4.3.3 can be described nominally via
MethodType::describeConstable
; otherwise they cannot be described nominally. -
ClassDescriptionA method handle is a typed, directly executable reference to an underlying method, constructor, field, or similar low-level operation, with optional transformations of arguments or return values.A method type represents the arguments and return type accepted and returned by a method handle, or the arguments and return type passed and expected by a method handle caller.A VarHandle is a dynamically strongly typed reference to a variable, or to a parametrically-defined family of variables, including static fields, non-static fields, array elements, or components of an off-heap data structure.
-
ClassDescriptionLambdaConversionExceptionA method handle is a typed, directly executable reference to an underlying method, constructor, field, or similar low-level operation, with optional transformations of arguments or return values.A symbolic reference obtained by cracking a direct method handle into its constituent symbolic parts.A lookup object is a factory for creating method handles, when the creation requires access checking.The set of class options that specify whether a hidden class created by
Lookup::defineHiddenClass
method is dynamically added as a new member to the nest of a lookup class and/or whether a hidden class has a strong relationship with the class loader marked as its defining loader.A method type represents the arguments and return type accepted and returned by a method handle, or the arguments and return type passed and expected by a method handle caller.AMutableCallSite
is aCallSite
whose target variable behaves like an ordinary field.StringConcatException is thrown byStringConcatFactory
when linkage invariants are violated.ASwitchPoint
is an object which can publish state transitions to other threads.An entity that has a type descriptor.An entity that has a field type descriptor.An entity that has a method type descriptor Method descriptors conforming to JVMS 4.3.3 can be described nominally viaMethodType::describeConstable
; otherwise they cannot be described nominally.A VarHandle is a dynamically strongly typed reference to a variable, or to a parametrically-defined family of variables, including static fields, non-static fields, array elements, or components of an off-heap data structure.The set of access modes that specify how a variable, referenced by a VarHandle, is accessed.A nominal descriptor for aVarHandle
constant. -
ClassDescriptionA method handle is a typed, directly executable reference to an underlying method, constructor, field, or similar low-level operation, with optional transformations of arguments or return values.A lookup object is a factory for creating method handles, when the creation requires access checking.A method type represents the arguments and return type accepted and returned by a method handle, or the arguments and return type passed and expected by a method handle caller.An entity that has a type descriptor.
-
ClassDescriptionA method handle is a typed, directly executable reference to an underlying method, constructor, field, or similar low-level operation, with optional transformations of arguments or return values.A lookup object is a factory for creating method handles, when the creation requires access checking.A method type represents the arguments and return type accepted and returned by a method handle, or the arguments and return type passed and expected by a method handle caller.
-
ClassDescriptionA method handle is a typed, directly executable reference to an underlying method, constructor, field, or similar low-level operation, with optional transformations of arguments or return values.
-
ClassDescriptionA method handle is a typed, directly executable reference to an underlying method, constructor, field, or similar low-level operation, with optional transformations of arguments or return values.A lookup object is a factory for creating method handles, when the creation requires access checking.A method type represents the arguments and return type accepted and returned by a method handle, or the arguments and return type passed and expected by a method handle caller.A
SwitchPoint
is an object which can publish state transitions to other threads. -
ClassDescriptionA method handle is a typed, directly executable reference to an underlying method, constructor, field, or similar low-level operation, with optional transformations of arguments or return values.A lookup object is a factory for creating method handles, when the creation requires access checking.A method type represents the arguments and return type accepted and returned by a method handle, or the arguments and return type passed and expected by a method handle caller.
-
ClassDescriptionA method handle is a typed, directly executable reference to an underlying method, constructor, field, or similar low-level operation, with optional transformations of arguments or return values.A
MutableCallSite
is aCallSite
whose target variable behaves like an ordinary field.