- All Superinterfaces:
Serializable
- All Known Implementing Classes:
ModuleName.Qualified,ModuleName.ThisRef
public sealed interface ModuleName
extends Serializable
permits ModuleName.Qualified, ModuleName.ThisRef
This interface represents a name to some module,
which can be a relative `
ModuleName.ThisRef` or a qualified name `ModuleName.Qualified`.
This name should be used in a local scope instead of a global scope (like a path to a module).-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordstatic enum -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescription@NotNull ModuleNameconcat(@NotNull ModuleName path) static @NotNull ModuleName@NotNull kala.collection.immutable.ImmutableSeq<String>ids()static ModuleName.QualifiedConstruct a qualified module path from a not empty id sequence.@NotNull ModuleName.Qualifiedintsize()@NotNull StringtoString()
-
Field Details
-
This
-
-
Method Details
-
size
int size() -
ids
-
resolve
-
concat
-
toString
-
from
@NotNull static @NotNull ModuleName from(@NotNull @NotNull kala.collection.immutable.ImmutableSeq<String> ids) -
qualified
@NotNull static ModuleName.Qualified qualified(@NotNull @NotNull kala.collection.immutable.ImmutableSeq<String> ids) Construct a qualified module path from a not empty id sequence.- Parameters:
ids- a not empty sequence
-