Package net.bytebuddy.dynamic.loading
Enum PackageDefinitionStrategy.Definition.Undefined
- java.lang.Object
-
- java.lang.Enum<PackageDefinitionStrategy.Definition.Undefined>
-
- net.bytebuddy.dynamic.loading.PackageDefinitionStrategy.Definition.Undefined
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PackageDefinitionStrategy.Definition.Undefined>
,PackageDefinitionStrategy.Definition
- Enclosing interface:
- PackageDefinitionStrategy.Definition
public static enum PackageDefinitionStrategy.Definition.Undefined extends java.lang.Enum<PackageDefinitionStrategy.Definition.Undefined> implements PackageDefinitionStrategy.Definition
A canonical implementation of an undefined package.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.dynamic.loading.PackageDefinitionStrategy.Definition
PackageDefinitionStrategy.Definition.Simple, PackageDefinitionStrategy.Definition.Trivial, PackageDefinitionStrategy.Definition.Undefined
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
The singleton instance.
-
Constructor Summary
Constructors Modifier Constructor Description private
Undefined()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getImplementationTitle()
Returns the package implementation's title ornull
if no such title exists.java.lang.String
getImplementationVendor()
Returns the package implementation's vendor ornull
if no such vendor exists.java.lang.String
getImplementationVersion()
Returns the package implementation's version ornull
if no such version exists.java.net.URL
getSealBase()
The URL representing the seal base.java.lang.String
getSpecificationTitle()
Returns the package specification's title ornull
if no such title exists.java.lang.String
getSpecificationVendor()
Returns the package specification's vendor ornull
if no such vendor exists.java.lang.String
getSpecificationVersion()
Returns the package specification's version ornull
if no such version exists.boolean
isCompatibleTo(java.lang.Package definedPackage)
Validates that this package definition is compatible to a previously defined package.boolean
isDefined()
Indicates if a package should be defined at all.static PackageDefinitionStrategy.Definition.Undefined
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PackageDefinitionStrategy.Definition.Undefined[]
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.Definition.Undefined INSTANCE
The singleton instance.
-
-
Method Detail
-
values
public static PackageDefinitionStrategy.Definition.Undefined[] 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.Definition.Undefined c : PackageDefinitionStrategy.Definition.Undefined.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.Definition.Undefined 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
-
isDefined
public boolean isDefined()
Indicates if a package should be defined at all.- Specified by:
isDefined
in interfacePackageDefinitionStrategy.Definition
- Returns:
true
if the package is to be defined.
-
getSpecificationTitle
public java.lang.String getSpecificationTitle()
Returns the package specification's title ornull
if no such title exists. This method must only be called for defined package definitions.- Specified by:
getSpecificationTitle
in interfacePackageDefinitionStrategy.Definition
- Returns:
- The package specification's title.
-
getSpecificationVersion
public java.lang.String getSpecificationVersion()
Returns the package specification's version ornull
if no such version exists. This method must only be called for defined package definitions.- Specified by:
getSpecificationVersion
in interfacePackageDefinitionStrategy.Definition
- Returns:
- The package specification's version.
-
getSpecificationVendor
public java.lang.String getSpecificationVendor()
Returns the package specification's vendor ornull
if no such vendor exists. This method must only be called for defined package definitions.- Specified by:
getSpecificationVendor
in interfacePackageDefinitionStrategy.Definition
- Returns:
- The package specification's vendor.
-
getImplementationTitle
public java.lang.String getImplementationTitle()
Returns the package implementation's title ornull
if no such title exists. This method must only be called for defined package definitions.- Specified by:
getImplementationTitle
in interfacePackageDefinitionStrategy.Definition
- Returns:
- The package implementation's title.
-
getImplementationVersion
public java.lang.String getImplementationVersion()
Returns the package implementation's version ornull
if no such version exists. This method must only be called for defined package definitions.- Specified by:
getImplementationVersion
in interfacePackageDefinitionStrategy.Definition
- Returns:
- The package implementation's version.
-
getImplementationVendor
public java.lang.String getImplementationVendor()
Returns the package implementation's vendor ornull
if no such vendor exists. This method must only be called for defined package definitions.- Specified by:
getImplementationVendor
in interfacePackageDefinitionStrategy.Definition
- Returns:
- The package implementation's vendor.
-
getSealBase
public java.net.URL getSealBase()
The URL representing the seal base. This method must only be called for defined package definitions.- Specified by:
getSealBase
in interfacePackageDefinitionStrategy.Definition
- Returns:
- The seal base of the package.
-
isCompatibleTo
public boolean isCompatibleTo(java.lang.Package definedPackage)
Validates that this package definition is compatible to a previously defined package. This method must only be called for defined package definitions.- Specified by:
isCompatibleTo
in interfacePackageDefinitionStrategy.Definition
- Parameters:
definedPackage
- The previously defined package.- Returns:
false
if this package and the defined package's sealing information are not compatible.
-
-