Class ModuleDefinition
-
- All Implemented Interfaces:
@Serializable() public final class ModuleDefinition implements IGenericDefinition, WithComment
A serializable class representing a module definition in a Wrap ABI.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classModuleDefinition.ImportedModuleRefA sealed interface representing an imported module reference in a Wrap ABI.
-
Field Summary
Fields Modifier and Type Field Description private final Stringtypeprivate final Integerkindprivate final Stringnameprivate final Booleanrequiredprivate final Stringcommentprivate final List<MethodDefinition>methodsprivate final List<ModuleDefinition.ImportedModuleRef>importsprivate final List<GenericDefinition>interfaces
-
Constructor Summary
Constructors Constructor Description ModuleDefinition(String type, Integer kind, String name, Boolean required, String comment, List<MethodDefinition> methods, List<ModuleDefinition.ImportedModuleRef> imports, List<GenericDefinition> interfaces)
-
Method Summary
Modifier and Type Method Description StringgetType()The type of the module definition. IntegergetKind()The kind of the definition. StringgetName()The name of the module definition. BooleangetRequired()A boolean indicating whether the module definition is required or not. StringgetComment()An optional comment for the module definition. final List<MethodDefinition>getMethods()A list of MethodDefinition objects representing the methods defined in the module. final List<ModuleDefinition.ImportedModuleRef>getImports()A list of ImportedModuleRef objects representing imported modules in the module. final List<GenericDefinition>getInterfaces()A list of GenericDefinition objects representing the interfaces implemented by the module. -
-
Constructor Detail
-
ModuleDefinition
ModuleDefinition(String type, Integer kind, String name, Boolean required, String comment, List<MethodDefinition> methods, List<ModuleDefinition.ImportedModuleRef> imports, List<GenericDefinition> interfaces)
-
-
Method Detail
-
getRequired
Boolean getRequired()
A boolean indicating whether the module definition is required or not.
-
getComment
String getComment()
An optional comment for the module definition.
-
getMethods
final List<MethodDefinition> getMethods()
A list of MethodDefinition objects representing the methods defined in the module.
-
getImports
final List<ModuleDefinition.ImportedModuleRef> getImports()
A list of ImportedModuleRef objects representing imported modules in the module.
-
getInterfaces
final List<GenericDefinition> getInterfaces()
A list of GenericDefinition objects representing the interfaces implemented by the module.
-
-
-
-