Package org.jboss.jandex
Class ModuleInfo
java.lang.Object
org.jboss.jandex.ModuleInfo
Represents a module descriptor entry in an index.
Thread-Safety
This class is immutable and can be shared between threads without safe publication.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
static final class
static final class
static final class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List
<ModuleInfo.ExportedPackageInfo> private final short
private DotName
private final ClassInfo
private final DotName
private static final int
private List
<ModuleInfo.OpenedPackageInfo> private List
<ModuleInfo.ProvidedServiceInfo> private List
<ModuleInfo.RequiredModuleInfo> private final String
-
Constructor Summary
ConstructorsConstructorDescriptionModuleInfo
(ClassInfo moduleInfoClass, DotName name, short flags, String version) -
Method Summary
Modifier and TypeMethodDescriptionfinal AnnotationInstance
annotation
(DotName name) final Collection
<AnnotationInstance> final List
<AnnotationInstance> annotationsWithRepeatable
(DotName name, IndexView index) exports()
(package private) List
<ModuleInfo.ExportedPackageInfo> short
flags()
Returns the access flags for this class.boolean
isOpen()
name()
Returns the name of the classopens()
(package private) List
<ModuleInfo.OpenedPackageInfo> packages()
provides()
(package private) List
<ModuleInfo.ProvidedServiceInfo> requires()
(package private) List
<ModuleInfo.RequiredModuleInfo> (package private) void
setExports
(List<ModuleInfo.ExportedPackageInfo> exports) (package private) void
setMainClass
(DotName mainClass) (package private) void
setOpens
(List<ModuleInfo.OpenedPackageInfo> opens) (package private) void
setPackages
(List<DotName> packages) (package private) void
setProvides
(List<ModuleInfo.ProvidedServiceInfo> provides) (package private) void
setRequires
(List<ModuleInfo.RequiredModuleInfo> requires) (package private) void
toString()
uses()
usesList()
version()
-
Field Details
-
OPEN
private static final int OPEN- See Also:
-
moduleInfoClass
-
name
-
flags
private final short flags -
version
-
mainClass
-
requires
-
exports
-
opens
-
uses
-
provides
-
packages
-
-
Constructor Details
-
ModuleInfo
-
-
Method Details
-
toString
-
moduleInfoClass
-
name
Returns the name of the class- Returns:
- the name of the class
-
flags
public short flags()Returns the access flags for this class. The standardModifier
can be used to decode the value.- Returns:
- the access flags
-
isOpen
public boolean isOpen() -
version
-
mainClass
-
requiresList
List<ModuleInfo.RequiredModuleInfo> requiresList() -
requires
-
exportsList
List<ModuleInfo.ExportedPackageInfo> exportsList() -
exports
-
opensList
List<ModuleInfo.OpenedPackageInfo> opensList() -
opens
-
usesList
-
uses
-
providesList
List<ModuleInfo.ProvidedServiceInfo> providesList() -
provides
-
packagesList
-
packages
-
annotation
-
annotations
-
annotationsWithRepeatable
-
setMainClass
-
setRequires
-
setExports
-
setOpens
-
setUses
-
setProvides
-
setPackages
-