Class TypePool.Default.LazyTypeDescription.LazyModuleDescription
java.lang.Object
net.bytebuddy.description.ModifierReviewable.AbstractBase
net.bytebuddy.description.module.ModuleDescription.AbstractBase
net.bytebuddy.pool.TypePool.Default.LazyTypeDescription.LazyModuleDescription
- All Implemented Interfaces:
AnnotationSource, ModifierReviewable, ModifierReviewable.ForFieldDescription, ModifierReviewable.ForMethodDescription, ModifierReviewable.ForModuleDescription, ModifierReviewable.ForModuleRequirement, ModifierReviewable.ForParameterDescription, ModifierReviewable.ForTypeDefinition, ModifierReviewable.OfAbstraction, ModifierReviewable.OfByteCodeElement, ModifierReviewable.OfEnumeration, ModifierReviewable.OfMandatable, ModuleDescription, NamedElement
- Enclosing class:
TypePool.Default.LazyTypeDescription
private class TypePool.Default.LazyTypeDescription.LazyModuleDescription
extends ModuleDescription.AbstractBase
A lazy description of a module.
-
Nested Class Summary
Nested classes/interfaces inherited from interface AnnotationSource
AnnotationSource.Empty, AnnotationSource.ExplicitNested classes/interfaces inherited from interface ModifierReviewable
ModifierReviewable.AbstractBase, ModifierReviewable.ForFieldDescription, ModifierReviewable.ForMethodDescription, ModifierReviewable.ForModuleDescription, ModifierReviewable.ForModuleRequirement, ModifierReviewable.ForParameterDescription, ModifierReviewable.ForTypeDefinition, ModifierReviewable.OfAbstraction, ModifierReviewable.OfByteCodeElement, ModifierReviewable.OfEnumeration, ModifierReviewable.OfMandatableNested classes/interfaces inherited from interface ModuleDescription
ModuleDescription.AbstractBase, ModuleDescription.Exports, ModuleDescription.ForLoadedModule, ModuleDescription.Latent, ModuleDescription.Opens, ModuleDescription.Provides, ModuleDescription.RequiresNested classes/interfaces inherited from interface NamedElement
NamedElement.WithDescriptor, NamedElement.WithGenericName, NamedElement.WithOptionalName, NamedElement.WithRuntimeName -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<String, ModuleDescription.Exports> The packages that this module exports.private final StringThe module's main class ornullif no main class was specified.private final intThe modifiers of the module.private final StringThe name of the module.private final Map<String, ModuleDescription.Opens> The package that this module opens.The module's packages.private final Map<String, ModuleDescription.Provides> The services that this module provides.private final Map<String, ModuleDescription.Requires> The modules that this module requires.The services that this module uses.private final StringThe module version ornullif no version was specified.Fields inherited from interface ModifierReviewable
EMPTY_MASKFields inherited from interface ModuleDescription
MODULE_CLASS_NAME, UNDEFINEDFields inherited from interface NamedElement
EMPTY_NAME, NO_NAME -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLazyModuleDescription(String name, int modifiers, String version, String mainClass, Set<String> packages, Map<String, ModuleDescription.Requires> requires, Map<String, ModuleDescription.Exports> exports, Map<String, ModuleDescription.Opens> opens, Set<String> uses, Map<String, ModuleDescription.Provides> provides) Creates a new lazy module description. -
Method Summary
Modifier and TypeMethodDescriptionReturns the display name of this element as it is found in the source code.Returns a list of annotations that are declared by this instance.Returns all package exports of this module.Returns the main class of this module.intReturns the modifier that is described by this object.getOpens()Returns all package opens of this module.Returns all packages contained in this module.Returns all service implementations provided by this module.Returns all module dependencies of this module.getUses()Returns all service types that this module uses.Returns the version of this module.Methods inherited from class ModuleDescription.AbstractBase
accept, equals, hashCode, toStringMethods inherited from class ModifierReviewable.AbstractBase
getEnumerationState, getFieldManifestation, getFieldPersistence, getMandate, getMethodManifestation, getMethodStrictness, getOpenness, getOwnership, getParameterManifestation, getProvisioningState, getRequiredPhase, getSynchronizationState, getSyntheticState, getTransitivity, getTypeManifestation, getVisibility, isAbstract, isAnnotation, isBridge, isDeprecated, isEnum, isFinal, isInterface, isMandated, isNative, isOpen, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStaticPhase, isStrict, isSynchronized, isSynthetic, isTransient, isTransitive, isVarArgs, isVolatileMethods inherited from interface ModifierReviewable
getSyntheticState, isFinal, isSyntheticMethods inherited from interface ModifierReviewable.ForModuleDescription
getOpenness, isOpen
-
Field Details
-
name
The name of the module. -
modifiers
private final int modifiersThe modifiers of the module. -
version
The module version ornullif no version was specified. -
mainClass
The module's main class ornullif no main class was specified. -
packages
-
requires
The modules that this module requires. -
exports
The packages that this module exports. -
opens
The package that this module opens. -
uses
-
provides
The services that this module provides.
-
-
Constructor Details
-
LazyModuleDescription
protected LazyModuleDescription(String name, int modifiers, @MaybeNull String version, @MaybeNull String mainClass, Set<String> packages, Map<String, ModuleDescription.Requires> requires, Map<String, ModuleDescription.Exports> exports, Map<String, ModuleDescription.Opens> opens, Set<String> uses, Map<String, ModuleDescription.Provides> provides) Creates a new lazy module description.- Parameters:
name- The name of the module.modifiers- The modifiers of the module.version- The module version ornullif no version was specified.mainClass- The module's main class ornullif no main class was specified.packages- The module's packages.requires- The modules that this module requires.exports- The packages that this module exports.opens- The package that this module opens.uses- The services that this module uses.provides- The services that this module provides.
-
-
Method Details
-
getVersion
Returns the version of this module.- Returns:
- The module's version or
nullif no version is specified.
-
getMainClass
Returns the main class of this module.- Returns:
- The module's main class or
nullif no main class is specified.
-
getPackages
-
getUses
-
getExports
Returns all package exports of this module.- Returns:
- A mapping of package names to their export declarations.
-
getOpens
Returns all package opens of this module.- Returns:
- A mapping of package names to their opens declarations.
-
getRequires
Returns all module dependencies of this module.- Returns:
- A mapping of module names to their require declarations.
-
getProvides
Returns all service implementations provided by this module.- Returns:
- A mapping of service names to their provider declarations.
-
getModifiers
public int getModifiers()Returns the modifier that is described by this object.- Returns:
- The modifier that is described by this object.
-
getActualName
Returns the display name of this element as it is found in the source code. If no such name exists, an empty string is returned.- Returns:
- The name of this element as given in a Java program's source code.
-
getDeclaredAnnotations
Returns a list of annotations that are declared by this instance.- Returns:
- A list of declared annotations.
-