Package net.bytebuddy.dynamic.loading
Enum ByteArrayClassLoader.PackageLookupStrategy.ForLegacyVm
java.lang.Object
java.lang.Enum<ByteArrayClassLoader.PackageLookupStrategy.ForLegacyVm>
net.bytebuddy.dynamic.loading.ByteArrayClassLoader.PackageLookupStrategy.ForLegacyVm
- All Implemented Interfaces:
Serializable
,Comparable<ByteArrayClassLoader.PackageLookupStrategy.ForLegacyVm>
,java.lang.constant.Constable
,ByteArrayClassLoader.PackageLookupStrategy
- Enclosing interface:
ByteArrayClassLoader.PackageLookupStrategy
public static enum ByteArrayClassLoader.PackageLookupStrategy.ForLegacyVm
extends Enum<ByteArrayClassLoader.PackageLookupStrategy.ForLegacyVm>
implements ByteArrayClassLoader.PackageLookupStrategy
A package lookup strategy for a VM prior to Java 9.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface net.bytebuddy.dynamic.loading.ByteArrayClassLoader.PackageLookupStrategy
ByteArrayClassLoader.PackageLookupStrategy.CreationAction, ByteArrayClassLoader.PackageLookupStrategy.ForJava9CapableVm, ByteArrayClassLoader.PackageLookupStrategy.ForLegacyVm
-
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply
(ByteArrayClassLoader classLoader, String name) Returns a package for a given byte array class loader and a name.Returns the enum constant of this type with the specified name.values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
The singleton instance.
-
-
Constructor Details
-
ForLegacyVm
private ForLegacyVm()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
apply
Returns a package for a given byte array class loader and a name.- Specified by:
apply
in interfaceByteArrayClassLoader.PackageLookupStrategy
- Parameters:
classLoader
- The class loader to locate a package for.name
- The name of the package.- Returns:
- A suitable package or
null
if no such package exists.
-