Uses of Enum Class
java.lang.invoke.MethodHandles.Lookup.ClassOption
Package
Description
The
java.lang.invoke
package provides low-level primitives for interacting
with the Java Virtual Machine.-
Uses of MethodHandles.Lookup.ClassOption in java.lang.invoke
Modifier and TypeClassDescriptionstatic enum
The set of class options that specify whether a hidden class created byLookup::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.Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static MethodHandles.Lookup.ClassOption[]
MethodHandles.Lookup.ClassOption.values()
Returns an array containing the constants of this enum class, in the order they are declared.Modifier and TypeMethodDescriptionMethodHandles.Lookup.defineHiddenClass
(byte[] bytes, boolean initialize, MethodHandles.Lookup.ClassOption... options) Creates a hidden class or interface frombytes
, returning aLookup
on the newly created class or interface.MethodHandles.Lookup.defineHiddenClassWithClassData
(byte[] bytes, Object classData, boolean initialize, MethodHandles.Lookup.ClassOption... options) Creates a hidden class or interface frombytes
with associated class data, returning aLookup
on the newly created class or interface.