public static class ModuleDescription.Latent extends ModuleDescription.AbstractBase
ModuleDescription.AbstractBase, ModuleDescription.Exports, ModuleDescription.ForLoadedModule, ModuleDescription.Latent, ModuleDescription.Opens, ModuleDescription.Provides, ModuleDescription.RequiresNamedElement.WithDescriptor, NamedElement.WithGenericName, NamedElement.WithOptionalName, NamedElement.WithRuntimeNameModifierReviewable.ForFieldDescription, ModifierReviewable.ForMethodDescription, ModifierReviewable.ForModuleDescription, ModifierReviewable.ForModuleRequirement, ModifierReviewable.ForParameterDescription, ModifierReviewable.ForTypeDefinition, ModifierReviewable.OfAbstraction, ModifierReviewable.OfByteCodeElement, ModifierReviewable.OfEnumeration, ModifierReviewable.OfMandatableAnnotationSource.Empty, AnnotationSource.ExplicitMODULE_CLASS_NAME, UNDEFINEDEMPTY_NAME, NO_NAMEEMPTY_MASK| Constructor and Description |
|---|
Latent(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,
List<? extends AnnotationDescription> annotations)
Creates a new latent module description.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getActualName()
Returns the display name of this element as it is found in the source code.
|
AnnotationList |
getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
Map<String,ModuleDescription.Exports> |
getExports()
Returns all package exports of this module.
|
String |
getMainClass()
Returns the main class of this module.
|
int |
getModifiers()
Returns the modifier that is described by this object.
|
Map<String,ModuleDescription.Opens> |
getOpens()
Returns all package opens of this module.
|
Set<String> |
getPackages()
Returns all packages contained in this module.
|
Map<String,ModuleDescription.Provides> |
getProvides()
Returns all service implementations provided by this module.
|
Map<String,ModuleDescription.Requires> |
getRequires()
Returns all module dependencies of this module.
|
Set<String> |
getUses()
Returns all service types that this module uses.
|
String |
getVersion()
Returns the version of this module.
|
accept, equals, hashCode, toStringgetEnumerationState, 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, isVolatileclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetOpenness, isOpengetSyntheticState, isFinal, isSyntheticpublic Latent(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, List<? extends AnnotationDescription> annotations)
name - The name of the module.modifiers - The modifiers of the module.version - The module version or null if no version was specified.mainClass - The module's main class or null if 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.annotations - A list of annotations on the described module.@MaybeNull public String getVersion()
null if no version is specified.@MaybeNull public String getMainClass()
null if no main class is specified.public Set<String> getPackages()
public Map<String,ModuleDescription.Exports> getExports()
public Map<String,ModuleDescription.Opens> getOpens()
public Map<String,ModuleDescription.Requires> getRequires()
public Set<String> getUses()
public Map<String,ModuleDescription.Provides> getProvides()
public int getModifiers()
public String getActualName()
public AnnotationList getDeclaredAnnotations()
Copyright © 2014–2025. All rights reserved.