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 classModuleInfo.ExportedPackageInfostatic classModuleInfo.OpenedPackageInfostatic classModuleInfo.ProvidedServiceInfostatic classModuleInfo.RequiredModuleInfo
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnnotationInstanceannotation(DotName name)Collection<AnnotationInstance>annotations()List<AnnotationInstance>annotationsWithRepeatable(DotName name, IndexView index)List<ModuleInfo.ExportedPackageInfo>exports()shortflags()Returns the access flags for this class.booleanisOpen()DotNamemainClass()ClassInfomoduleInfoClass()DotNamename()Returns the name of the classList<ModuleInfo.OpenedPackageInfo>opens()List<DotName>packages()List<ModuleInfo.ProvidedServiceInfo>provides()List<ModuleInfo.RequiredModuleInfo>requires()StringtoString()List<DotName>uses()Stringversion()
-
-
-
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 standardModifiercan 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)
-
-