Package net.bytebuddy.dynamic.loading
Enum PackageDefinitionStrategy.Definition.Trivial
java.lang.Object
java.lang.Enum<PackageDefinitionStrategy.Definition.Trivial>
net.bytebuddy.dynamic.loading.PackageDefinitionStrategy.Definition.Trivial
- All Implemented Interfaces:
Serializable
,Comparable<PackageDefinitionStrategy.Definition.Trivial>
,java.lang.constant.Constable
,PackageDefinitionStrategy.Definition
- Enclosing interface:
PackageDefinitionStrategy.Definition
public static enum PackageDefinitionStrategy.Definition.Trivial
extends Enum<PackageDefinitionStrategy.Definition.Trivial>
implements PackageDefinitionStrategy.Definition
A package definer that defines packages without any meta data.
-
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.Definition
PackageDefinitionStrategy.Definition.Simple, PackageDefinitionStrategy.Definition.Trivial, PackageDefinitionStrategy.Definition.Undefined
-
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the package implementation's title ornull
if no such title exists.Returns the package implementation's vendor ornull
if no such vendor exists.Returns the package implementation's version ornull
if no such version exists.The URL representing the seal base.Returns the package specification's title ornull
if no such title exists.Returns the package specification's vendor ornull
if no such vendor exists.Returns the package specification's version ornull
if no such version exists.boolean
isCompatibleTo
(Package definedPackage) Validates that this package definition is compatible to a previously defined package.boolean
Indicates if a package should be defined at all.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.
-
-
Field Details
-
NO_VALUE
An empty value of a package's property. -
NOT_SEALED
Represents an unsealed package.
-
-
Constructor Details
-
Trivial
private Trivial()
-
-
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
-
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
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
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
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
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
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
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
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
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.
-