public interface Module extends Modules, ModuleResource
| Modifier and Type | Method and Description |
|---|---|
Type |
add(Type type)
Add reference to type to the module
|
Collection<Type> |
getAllTypes()
Get all types (also from submodules)
Iterable is used instead of collection because of the performance reasons.
|
String |
getName()
Get name of module
|
io.vavr.control.Option<Module> |
getParent()
Get parent module
|
Collection<Type> |
getTypes()
Get types that belongs to the module
|
default boolean |
hasType(CharSequence name)
Check if the module contains a reference to type with the given name
|
default boolean |
hasType(Class<?> clazz)
Check if the module contains type associated with the specified class
|
boolean |
isSubmodule(Module module)
Check if the given module is submodule of the current module
|
allocate, countTypes, countUsedTypes, get, getModules, getNames, includeforClass, forName, requireType, requireTypeType add(Type type)
type - the reference to addboolean isSubmodule(Module module)
module - the module to checkdefault boolean hasType(Class<?> clazz)
clazz - the class to checkdefault boolean hasType(CharSequence name)
name - the name to search forCollection<Type> getAllTypes()
Collection<Type> getTypes()
io.vavr.control.Option<Module> getParent()
String getName()
Copyright © 2020. All rights reserved.