public final class ModuleInfo extends Object
Thread-Safety
This class is immutable and can be shared between threads without safe publication.| Modifier and Type | Class and Description |
|---|---|
static class |
ModuleInfo.ExportedPackageInfo |
static class |
ModuleInfo.OpenedPackageInfo |
static class |
ModuleInfo.ProvidedServiceInfo |
static class |
ModuleInfo.RequiredModuleInfo |
| Modifier and Type | Method and Description |
|---|---|
AnnotationInstance |
annotation(DotName name) |
Collection<AnnotationInstance> |
annotations() |
List<AnnotationInstance> |
annotationsWithRepeatable(DotName name,
IndexView index) |
List<ModuleInfo.ExportedPackageInfo> |
exports() |
short |
flags()
Returns the access flags for this class.
|
boolean |
hasAnnotation(DotName name) |
boolean |
isOpen() |
DotName |
mainClass() |
ClassInfo |
moduleInfoClass() |
DotName |
name()
Returns the name of the class
|
List<ModuleInfo.OpenedPackageInfo> |
opens() |
List<DotName> |
packages() |
List<ModuleInfo.ProvidedServiceInfo> |
provides() |
List<ModuleInfo.RequiredModuleInfo> |
requires() |
String |
toString() |
List<DotName> |
uses() |
String |
version() |
public ClassInfo moduleInfoClass()
public DotName name()
public short flags()
Modifier
can be used to decode the value.public boolean isOpen()
public String version()
public DotName mainClass()
public List<ModuleInfo.RequiredModuleInfo> requires()
public List<ModuleInfo.ExportedPackageInfo> exports()
public List<ModuleInfo.OpenedPackageInfo> opens()
public List<ModuleInfo.ProvidedServiceInfo> provides()
public final boolean hasAnnotation(DotName name)
public final AnnotationInstance annotation(DotName name)
public final List<AnnotationInstance> annotationsWithRepeatable(DotName name, IndexView index)
public final Collection<AnnotationInstance> annotations()
Copyright © 2018–2022. All rights reserved.