Package net.bytebuddy.dynamic.loading
Enum PackageDefinitionStrategy.NoOp
- java.lang.Object
-
- java.lang.Enum<PackageDefinitionStrategy.NoOp>
-
- net.bytebuddy.dynamic.loading.PackageDefinitionStrategy.NoOp
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PackageDefinitionStrategy.NoOp>
,PackageDefinitionStrategy
- Enclosing interface:
- PackageDefinitionStrategy
public static enum PackageDefinitionStrategy.NoOp extends java.lang.Enum<PackageDefinitionStrategy.NoOp> implements PackageDefinitionStrategy
A package definer that does not define any package.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.dynamic.loading.PackageDefinitionStrategy
PackageDefinitionStrategy.Definition, PackageDefinitionStrategy.ManifestReading, PackageDefinitionStrategy.NoOp, PackageDefinitionStrategy.Trivial
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
The singleton instance.
-
Constructor Summary
Constructors Modifier Constructor Description private
NoOp()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PackageDefinitionStrategy.Definition
define(java.lang.ClassLoader classLoader, java.lang.String packageName, java.lang.String typeName)
Returns a package definition for a given package.static PackageDefinitionStrategy.NoOp
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PackageDefinitionStrategy.NoOp[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final PackageDefinitionStrategy.NoOp INSTANCE
The singleton instance.
-
-
Method Detail
-
values
public static PackageDefinitionStrategy.NoOp[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PackageDefinitionStrategy.NoOp c : PackageDefinitionStrategy.NoOp.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PackageDefinitionStrategy.NoOp valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
define
public PackageDefinitionStrategy.Definition define(java.lang.ClassLoader classLoader, java.lang.String packageName, java.lang.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.
-
-