java.lang.Object
java.lang.Record
org.aya.cli.library.source.DiskLibraryOwner
- All Implemented Interfaces:
LibraryOwner,MutableLibraryOwner
public record DiskLibraryOwner(@NotNull org.aya.util.error.SourceFileLocator locator, @NotNull kala.collection.mutable.MutableList<Path> modulePathMut, @NotNull kala.collection.mutable.MutableList<LibraryOwner> libraryDepsMut, @NotNull kala.collection.mutable.MutableList<LibrarySource> librarySourcesMut, @NotNull LibraryConfig underlyingLibrary)
extends Record
implements MutableLibraryOwner
A library that lives in the file system.
-
Field Summary
Fields inherited from interface org.aya.cli.library.source.LibraryOwner
DEFAULT_INDENT -
Constructor Summary
ConstructorsConstructorDescriptionDiskLibraryOwner(@NotNull org.aya.util.error.SourceFileLocator locator, @NotNull kala.collection.mutable.MutableList<Path> modulePathMut, @NotNull kala.collection.mutable.MutableList<LibraryOwner> libraryDepsMut, @NotNull kala.collection.mutable.MutableList<LibrarySource> librarySourcesMut, @NotNull LibraryConfig underlyingLibrary) Creates an instance of aDiskLibraryOwnerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static @NotNull DiskLibraryOwnerfrom(@NotNull LibraryConfig config) final inthashCode()Returns a hash code value for this object.@NotNull kala.collection.mutable.MutableList<LibraryOwner>Returns the value of thelibraryDepsMutrecord component.@NotNull kala.collection.mutable.MutableList<LibrarySource>Returns the value of thelibrarySourcesMutrecord component.@NotNull org.aya.util.error.SourceFileLocatorlocator()Returns the value of thelocatorrecord component.@NotNull kala.collection.mutable.MutableList<Path>Returns the value of themodulePathMutrecord component.final StringtoString()Returns a string representation of this record class.@NotNull LibraryConfigReturns the value of theunderlyingLibraryrecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.aya.cli.library.source.LibraryOwner
findModule, outDirMethods inherited from interface org.aya.cli.library.source.MutableLibraryOwner
addLibrarySource, addModulePath, libraryDeps, librarySources, modulePath, removeLibrarySource
-
Constructor Details
-
DiskLibraryOwner
public DiskLibraryOwner(@NotNull @NotNull org.aya.util.error.SourceFileLocator locator, @NotNull @NotNull kala.collection.mutable.MutableList<Path> modulePathMut, @NotNull @NotNull kala.collection.mutable.MutableList<LibraryOwner> libraryDepsMut, @NotNull @NotNull kala.collection.mutable.MutableList<LibrarySource> librarySourcesMut, @NotNull @NotNull LibraryConfig underlyingLibrary) Creates an instance of aDiskLibraryOwnerrecord class.- Parameters:
locator- the value for thelocatorrecord componentmodulePathMut- the value for themodulePathMutrecord componentlibraryDepsMut- the value for thelibraryDepsMutrecord componentlibrarySourcesMut- the value for thelibrarySourcesMutrecord componentunderlyingLibrary- the value for theunderlyingLibraryrecord component
-
-
Method Details
-
from
@NotNull public static @NotNull DiskLibraryOwner from(@NotNull @NotNull LibraryConfig config) throws IOException - Throws:
IOException
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
locator
@NotNull public @NotNull org.aya.util.error.SourceFileLocator locator()Returns the value of thelocatorrecord component.- Specified by:
locatorin interfaceLibraryOwner- Returns:
- the value of the
locatorrecord component
-
modulePathMut
Returns the value of themodulePathMutrecord component.- Specified by:
modulePathMutin interfaceMutableLibraryOwner- Returns:
- the value of the
modulePathMutrecord component
-
libraryDepsMut
Returns the value of thelibraryDepsMutrecord component.- Specified by:
libraryDepsMutin interfaceMutableLibraryOwner- Returns:
- the value of the
libraryDepsMutrecord component
-
librarySourcesMut
Returns the value of thelibrarySourcesMutrecord component.- Specified by:
librarySourcesMutin interfaceMutableLibraryOwner- Returns:
- the value of the
librarySourcesMutrecord component
-
underlyingLibrary
Returns the value of theunderlyingLibraryrecord component.- Specified by:
underlyingLibraryin interfaceLibraryOwner- Returns:
- the value of the
underlyingLibraryrecord component
-