Package org.jboss.jandex
Class ModuleInfo
- java.lang.Object
-
- org.jboss.jandex.ModuleInfo
-
public final class ModuleInfo extends Object
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 Classes Modifier and Type Class Description static class
ModuleInfo.ExportedPackageInfo
static class
ModuleInfo.OpenedPackageInfo
static class
ModuleInfo.ProvidedServiceInfo
static class
ModuleInfo.RequiredModuleInfo
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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
isOpen()
DotName
mainClass()
ClassInfo
moduleInfoClass()
DotName
name()
Returns the name of the classList<ModuleInfo.OpenedPackageInfo>
opens()
List<DotName>
packages()
List<ModuleInfo.ProvidedServiceInfo>
provides()
List<ModuleInfo.RequiredModuleInfo>
requires()
String
toString()
List<DotName>
uses()
String
version()
-
-
-
Method Detail
-
moduleInfoClass
public ClassInfo moduleInfoClass()
-
name
public DotName 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
public String version()
-
mainClass
public DotName mainClass()
-
requires
public List<ModuleInfo.RequiredModuleInfo> requires()
-
exports
public List<ModuleInfo.ExportedPackageInfo> exports()
-
opens
public List<ModuleInfo.OpenedPackageInfo> opens()
-
provides
public List<ModuleInfo.ProvidedServiceInfo> provides()
-
annotation
public final AnnotationInstance annotation(DotName name)
-
annotations
public final Collection<AnnotationInstance> annotations()
-
annotationsWithRepeatable
public final List<AnnotationInstance> annotationsWithRepeatable(DotName name, IndexView index)
-
-