Package net.bytebuddy.dynamic.loading
Enum Class PackageDefinitionStrategy.NoOp
java.lang.Object
java.lang.Enum<PackageDefinitionStrategy.NoOp>
net.bytebuddy.dynamic.loading.PackageDefinitionStrategy.NoOp
- All Implemented Interfaces:
Serializable
,Comparable<PackageDefinitionStrategy.NoOp>
,Constable
,PackageDefinitionStrategy
- Enclosing interface:
- PackageDefinitionStrategy
public static enum PackageDefinitionStrategy.NoOp
extends Enum<PackageDefinitionStrategy.NoOp>
implements PackageDefinitionStrategy
A package definer that does not define any package.
-
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.PackageDefinitionStrategy
PackageDefinitionStrategy.Definition, PackageDefinitionStrategy.ManifestReading, PackageDefinitionStrategy.NoOp, PackageDefinitionStrategy.Trivial
-
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondefine
(ClassLoader classLoader, String packageName, String typeName) Returns a package definition for a given package.Returns the enum constant of this class with the specified name.static PackageDefinitionStrategy.NoOp[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
The singleton instance.
-
-
Constructor Details
-
NoOp
private NoOp()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
define
public PackageDefinitionStrategy.Definition define(ClassLoader classLoader, String packageName, String typeName) Returns a package definition for a given package.- Specified by:
define
in interfacePackageDefinitionStrategy
- Parameters:
classLoader
- The class loader for which this package is being defined.packageName
- The name of the package.typeName
- The name of the type being loaded that triggered the package definition.- Returns:
- A definition of the package.
-