Serializable
, Comparable<MethodHandles.Lookup.ClassOption>
, Constable
MethodHandles.Lookup
public static enum MethodHandles.Lookup.ClassOption extends Enum<MethodHandles.Lookup.ClassOption>
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.Enum.EnumDesc<E extends Enum<E>>
Enum Constant | Description |
---|---|
NESTMATE |
Specifies that a hidden class be added to nest of a lookup class as a nestmate. |
STRONG |
Specifies that a hidden class has a strong relationship with the class loader marked as its defining loader, as a normal class or interface has with its own defining loader. |
Modifier and Type | Method | Description |
---|---|---|
static MethodHandles.Lookup.ClassOption |
valueOf |
Returns the enum constant of this class with the specified name. |
static MethodHandles.Lookup.ClassOption[] |
values() |
Returns an array containing the constants of this enum class, in the order they are declared. |
public static final MethodHandles.Lookup.ClassOption NESTMATE
A hidden nestmate class has access to the private members of all classes and interfaces in the same nest.
public static final MethodHandles.Lookup.ClassOption STRONG
By default, a hidden class or interface may be unloaded even if the class loader that is marked as its defining loader is reachable.
public static MethodHandles.Lookup.ClassOption[] values()
public static MethodHandles.Lookup.ClassOption valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/invoke/MethodHandles.Lookup.ClassOption.html