| Modifier and Type | Field and Description |
|---|---|
| private AnnotationInfoList | annotationInfo
|
| private Set | annotationInfoSet
Unique |
| private Set | classInfoSet
Set of classes in the module. |
| private transient ClasspathElement | classpathElement
The classpath element. |
| private transient URI | locationURI
The location of the module as a URI. |
| private transient ModuleRef | |
| private String | name
The name of the module. |
| private Set | packageInfoSet
|
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | ModuleInfo(final ModuleRef
the module ref moduleRef, final ClasspathElement the classpath element classpathElement)Construct a ModuleInfo object. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | addAnnotations(final AnnotationInfoList
the module annotations moduleAnnotations)Add annotations found in a module descriptor classfile. |
| pack-priv void | addClassInfo(final ClassInfo
the classInfo)ClassInfo object to addAdd a |
| pack-priv void | addPackageInfo(final PackageInfo
the packageInfo)PackageInfo objectAdd a |
| public int | compareTo(final ModuleInfo
the object to be compared. other)Implements java. Compares this object with the specified object for order. |
| public boolean | equals(final Object
the reference object with which to compare. obj)Overrides java. Indicates whether some other object is "equal to" this one. |
| public AnnotationInfo | Returns: AnAnnotationInfo object representing the annotation on this module, or null if the module
does not have the annotation.The annotation. annotation)Get a the annotation on this module, or null if the module does not have the annotation. |
| public AnnotationInfo | Returns: AnAnnotationInfo object representing the named annotation on this module, or null if the
module does not have the named annotation.The annotation name. annotationName)Get a the named annotation on this module, or null if the module does not have the named annotation. |
| public AnnotationInfoList | |
| public ClassInfo | Returns: theClassInfo object for the named class in this module, or null if the class was not found
in this module.the class name className)Get the |
| public ClassInfoList | Returns: the list ofClassInfo objects for all classes that are members of this package.Get the list of |
| public URI | Returns: the module location, or null for modules whose location is unknown.The module location, or null for modules whose location is unknown. |
| public ModuleRef | Returns: theModuleRef, or null if this module was obtained from a classpath element on the
traditional classpath that contained a module-info.class file.The |
| public String | Returns: the module name, or"" for the unnamed module.Implements io. The module name, or |
| public PackageInfo | Returns: thePackageInfo object for the named package in this module, or null if the package was not
found in this module.the package name packageName)Get the |
| public PackageInfoList | Returns: the list ofPackageInfo objects for all packages that are members of this module.Get the |
| public boolean | Returns: true if this module has the annotation.The annotation. annotation)Check if this module has the annotation. |
| public boolean | Returns: true if this module has the named annotation.The name of an annotation. annotationName)Check if this module has the named annotation. |
| public int | |
| public String |
| annotationInfo | back to summary |
|---|---|
| private AnnotationInfoList annotationInfo
| |
| annotationInfoSet | back to summary |
|---|---|
| private Set<AnnotationInfo> annotationInfoSet Unique | |
| classInfoSet | back to summary |
|---|---|
| private Set<ClassInfo> classInfoSet Set of classes in the module. | |
| classpathElement | back to summary |
|---|---|
| private transient ClasspathElement classpathElement The classpath element. | |
| locationURI | back to summary |
|---|---|
| private transient URI locationURI The location of the module as a URI. | |
| moduleRef | back to summary |
|---|---|
| private transient ModuleRef moduleRef The | |
| name | back to summary |
|---|---|
| private String name The name of the module. | |
| packageInfoSet | back to summary |
|---|---|
| private Set<PackageInfo> packageInfoSet
| |
| ModuleInfo | back to summary |
|---|---|
| pack-priv ModuleInfo() Deerialization constructor. | |
| ModuleInfo | back to summary |
|---|---|
| pack-priv ModuleInfo(final ModuleRef moduleRef, final ClasspathElement classpathElement) Construct a ModuleInfo object.
| |
| addAnnotations | back to summary |
|---|---|
| pack-priv void addAnnotations(final AnnotationInfoList moduleAnnotations) Add annotations found in a module descriptor classfile.
| |
| addClassInfo | back to summary |
|---|---|
| pack-priv void addClassInfo(final ClassInfo classInfo) Add a | |
| addPackageInfo | back to summary |
|---|---|
| pack-priv void addPackageInfo(final PackageInfo packageInfo) Add a
| |
| compareTo | back to summary |
|---|---|
| public int compareTo(final ModuleInfo other) Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| equals | back to summary |
|---|---|
| public boolean equals(final Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getAnnotationInfo | back to summary |
|---|---|
| public AnnotationInfo getAnnotationInfo(final Class<? extends Annotation> annotation) Get a the annotation on this module, or null if the module does not have the annotation.
| |
| getAnnotationInfo | back to summary |
|---|---|
| public AnnotationInfo getAnnotationInfo(final String annotationName) Get a the named annotation on this module, or null if the module does not have the named annotation.
| |
| getAnnotationInfo | back to summary |
|---|---|
| public AnnotationInfoList getAnnotationInfo() Get any annotations on the
| |
| getClassInfo | back to summary |
|---|---|
| public ClassInfo getClassInfo(final String className) Get the | |
| getClassInfo | back to summary |
|---|---|
| public ClassInfoList getClassInfo() Get the list of
| |
| getLocation | back to summary |
|---|---|
| public URI getLocation() The module location, or null for modules whose location is unknown.
| |
| getModuleRef | back to summary |
|---|---|
| public ModuleRef getModuleRef() The | |
| getName | back to summary |
|---|---|
| public String getName() Implements io. The module name, or | |
| getPackageInfo | back to summary |
|---|---|
| public PackageInfo getPackageInfo(final String packageName) Get the
| |
| getPackageInfo | back to summary |
|---|---|
| public PackageInfoList getPackageInfo() Get the
| |
| hasAnnotation | back to summary |
|---|---|
| public boolean hasAnnotation(final Class<? extends Annotation> annotation) Check if this module has the annotation.
| |
| hasAnnotation | back to summary |
|---|---|
| public boolean hasAnnotation(final String annotationName) Check if this module has the named annotation.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |