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:
java.io.Serializable,java.lang.Comparable<PackageDefinitionStrategy.Definition.Trivial>,PackageDefinitionStrategy.Definition
- Enclosing interface:
- PackageDefinitionStrategy.Definition
public static enum PackageDefinitionStrategy.Definition.Trivial extends java.lang.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 interface net.bytebuddy.dynamic.loading.PackageDefinitionStrategy.Definition
PackageDefinitionStrategy.Definition.Simple, PackageDefinitionStrategy.Definition.Trivial, PackageDefinitionStrategy.Definition.Undefined
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCEThe singleton instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetImplementationTitle()Returns the package implementation's title ornullif no such title exists.java.lang.StringgetImplementationVendor()Returns the package implementation's vendor ornullif no such vendor exists.java.lang.StringgetImplementationVersion()Returns the package implementation's version ornullif no such version exists.java.net.URLgetSealBase()The URL representing the seal base.java.lang.StringgetSpecificationTitle()Returns the package specification's title ornullif no such title exists.java.lang.StringgetSpecificationVendor()Returns the package specification's vendor ornullif no such vendor exists.java.lang.StringgetSpecificationVersion()Returns the package specification's version ornullif no such version exists.booleanisCompatibleTo(java.lang.Package definedPackage)Validates that this package definition is compatible to a previously defined package.booleanisDefined()Indicates if a package should be defined at all.static PackageDefinitionStrategy.Definition.TrivialvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static PackageDefinitionStrategy.Definition.Trivial[]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.Trivial INSTANCE
The singleton instance.
-
-
Method Detail
-
values
public static PackageDefinitionStrategy.Definition.Trivial[] 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.Trivial c : PackageDefinitionStrategy.Definition.Trivial.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.Trivial 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()
Description copied from interface:PackageDefinitionStrategy.DefinitionIndicates if a package should be defined at all.- Specified by:
isDefinedin interfacePackageDefinitionStrategy.Definition- Returns:
trueif the package is to be defined.
-
getSpecificationTitle
public java.lang.String getSpecificationTitle()
Description copied from interface:PackageDefinitionStrategy.DefinitionReturns the package specification's title ornullif no such title exists. This method must only be called for defined package definitions.- Specified by:
getSpecificationTitlein interfacePackageDefinitionStrategy.Definition- Returns:
- The package specification's title.
-
getSpecificationVersion
public java.lang.String getSpecificationVersion()
Description copied from interface:PackageDefinitionStrategy.DefinitionReturns the package specification's version ornullif no such version exists. This method must only be called for defined package definitions.- Specified by:
getSpecificationVersionin interfacePackageDefinitionStrategy.Definition- Returns:
- The package specification's version.
-
getSpecificationVendor
public java.lang.String getSpecificationVendor()
Description copied from interface:PackageDefinitionStrategy.DefinitionReturns the package specification's vendor ornullif no such vendor exists. This method must only be called for defined package definitions.- Specified by:
getSpecificationVendorin interfacePackageDefinitionStrategy.Definition- Returns:
- The package specification's vendor.
-
getImplementationTitle
public java.lang.String getImplementationTitle()
Description copied from interface:PackageDefinitionStrategy.DefinitionReturns the package implementation's title ornullif no such title exists. This method must only be called for defined package definitions.- Specified by:
getImplementationTitlein interfacePackageDefinitionStrategy.Definition- Returns:
- The package implementation's title.
-
getImplementationVersion
public java.lang.String getImplementationVersion()
Description copied from interface:PackageDefinitionStrategy.DefinitionReturns the package implementation's version ornullif no such version exists. This method must only be called for defined package definitions.- Specified by:
getImplementationVersionin interfacePackageDefinitionStrategy.Definition- Returns:
- The package implementation's version.
-
getImplementationVendor
public java.lang.String getImplementationVendor()
Description copied from interface:PackageDefinitionStrategy.DefinitionReturns the package implementation's vendor ornullif no such vendor exists. This method must only be called for defined package definitions.- Specified by:
getImplementationVendorin interfacePackageDefinitionStrategy.Definition- Returns:
- The package implementation's vendor.
-
getSealBase
public java.net.URL getSealBase()
Description copied from interface:PackageDefinitionStrategy.DefinitionThe URL representing the seal base. This method must only be called for defined package definitions.- Specified by:
getSealBasein interfacePackageDefinitionStrategy.Definition- Returns:
- The seal base of the package.
-
isCompatibleTo
public boolean isCompatibleTo(java.lang.Package definedPackage)
Description copied from interface:PackageDefinitionStrategy.DefinitionValidates that this package definition is compatible to a previously defined package. This method must only be called for defined package definitions.- Specified by:
isCompatibleToin interfacePackageDefinitionStrategy.Definition- Parameters:
definedPackage- The previously defined package.- Returns:
falseif this package and the defined package's sealing information are not compatible.
-
-