- All Known Subinterfaces:
MutableLibraryOwner
- All Known Implementing Classes:
DiskLibraryOwner
public interface LibraryOwner
Common interfaces for library, for supporting both
library in file system and library in memory.
- See Also:
- API Note:
- DO NOT USE this class as Map key, use
underlyingLibrary()instead.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddModulePath(@NotNull Path newPath) static @NotNull org.aya.util.terck.MutableGraph<LibraryConfig>buildDependencyGraph(@NotNull kala.collection.SetView<LibraryOwner> owners) static @NotNull org.aya.util.terck.MutableGraph<LibraryConfig>buildDependencyGraph(@NotNull LibraryOwner owner) static @NotNull kala.collection.immutable.ImmutableSet<LibraryOwner>collectDependencies(@NotNull LibraryOwner owner) Collect all dependencies ofdefault @Nullable LibrarySourcefindModule(@NotNull kala.collection.immutable.ImmutableSeq<String> mod) @NotNull kala.collection.SeqView<LibraryOwner>@NotNull kala.collection.SeqView<LibrarySource>@NotNull org.aya.util.error.SourceFileLocatorlocator()@NotNull kala.collection.SeqView<Path>default @NotNull PathoutDir()@NotNull LibraryConfig
-
Field Details
-
DEFAULT_INDENT
static final int DEFAULT_INDENT- See Also:
-
-
Method Details
-
modulePath
- Returns:
- Source dirs of this module, out dirs of all dependencies.
-
librarySources
-
libraryDeps
-
locator
@NotNull @NotNull org.aya.util.error.SourceFileLocator locator() -
underlyingLibrary
-
addModulePath
-
outDir
- Returns:
- Out dir of this module.
-
findModule
@Nullable default @Nullable LibrarySource findModule(@NotNull @NotNull kala.collection.immutable.ImmutableSeq<String> mod) -
collectDependencies
@NotNull static @NotNull kala.collection.immutable.ImmutableSet<LibraryOwner> collectDependencies(@NotNull @NotNull LibraryOwner owner) Collect all dependencies of- Returns:
- All dependencies of , including .
The result may contain more than one
LibraryOwners for oneLibraryConfig.
-
buildDependencyGraph
@NotNull static @NotNull org.aya.util.terck.MutableGraph<LibraryConfig> buildDependencyGraph(@NotNull @NotNull LibraryOwner owner) -
buildDependencyGraph
@NotNull static @NotNull org.aya.util.terck.MutableGraph<LibraryConfig> buildDependencyGraph(@NotNull @NotNull kala.collection.SetView<LibraryOwner> owners)
-