java.lang.Object
java.lang.Record
org.aya.cli.library.source.LibrarySource
- Record Components:
program- initialized after parsetycked- initialized after tyckresolveInfo- initialized after resolve
- All Implemented Interfaces:
org.aya.concrete.GenericAyaFile
public record LibrarySource(@NotNull LibraryOwner owner, @NotNull Path underlyingFile, @NotNull kala.collection.mutable.MutableList<LibrarySource> imports, @NotNull kala.value.MutableValue<kala.collection.immutable.ImmutableSeq<org.aya.concrete.stmt.Stmt>> program, @NotNull kala.value.MutableValue<kala.collection.immutable.ImmutableSeq<org.aya.core.def.GenericDef>> tycked, @NotNull kala.value.MutableValue<org.aya.resolve.ResolveInfo> resolveInfo)
extends Record
implements org.aya.concrete.GenericAyaFile
A source file may or may not be tycked.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.aya.concrete.GenericAyaFile
org.aya.concrete.GenericAyaFile.Factory -
Constructor Summary
ConstructorsConstructorDescriptionLibrarySource(@NotNull LibraryOwner owner, @NotNull Path file) LibrarySource(@NotNull LibraryOwner owner, @NotNull Path underlyingFile, @NotNull kala.collection.mutable.MutableList<LibrarySource> imports, @NotNull kala.value.MutableValue<kala.collection.immutable.ImmutableSeq<org.aya.concrete.stmt.Stmt>> program, @NotNull kala.value.MutableValue<kala.collection.immutable.ImmutableSeq<org.aya.core.def.GenericDef>> tycked, @NotNull kala.value.MutableValue<org.aya.resolve.ResolveInfo> resolveInfo) Creates an instance of aLibrarySourcerecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull Path@NotNull PathbooleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.@NotNull kala.collection.mutable.MutableList<LibrarySource>imports()Returns the value of theimportsrecord component.@NotNull kala.collection.immutable.ImmutableSeq<String>@NotNull org.aya.util.error.SourceFile@NotNull LibraryOwnerowner()Returns the value of theownerrecord component.@NotNull kala.collection.immutable.ImmutableSeq<org.aya.concrete.stmt.Stmt>parseMe(@NotNull org.aya.concrete.GenericAyaParser parser) @NotNull kala.value.MutableValue<kala.collection.immutable.ImmutableSeq<org.aya.concrete.stmt.Stmt>>program()Returns the value of theprogramrecord component.@NotNull kala.value.MutableValue<org.aya.resolve.ResolveInfo>Returns the value of theresolveInforecord component.@NotNull org.aya.util.error.SourceFiletoSourceFile(@NotNull String sourceCode) toString()Returns a string representation of this record class.@NotNull kala.value.MutableValue<kala.collection.immutable.ImmutableSeq<org.aya.core.def.GenericDef>>tycked()Returns the value of thetyckedrecord component.@NotNull PathReturns the value of theunderlyingFilerecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.aya.concrete.GenericAyaFile
codeFile, literate
-
Constructor Details
-
LibrarySource
-
LibrarySource
public LibrarySource(@NotNull @NotNull LibraryOwner owner, @NotNull @NotNull Path underlyingFile, @NotNull @NotNull kala.collection.mutable.MutableList<LibrarySource> imports, @NotNull @NotNull kala.value.MutableValue<kala.collection.immutable.ImmutableSeq<org.aya.concrete.stmt.Stmt>> program, @NotNull @NotNull kala.value.MutableValue<kala.collection.immutable.ImmutableSeq<org.aya.core.def.GenericDef>> tycked, @NotNull @NotNull kala.value.MutableValue<org.aya.resolve.ResolveInfo> resolveInfo) Creates an instance of aLibrarySourcerecord class.- Parameters:
owner- the value for theownerrecord componentunderlyingFile- the value for theunderlyingFilerecord componentimports- the value for theimportsrecord componentprogram- the value for theprogramrecord componenttycked- the value for thetyckedrecord componentresolveInfo- the value for theresolveInforecord component
-
-
Method Details
-
moduleName
-
displayPath
-
toSourceFile
@NotNull public @NotNull org.aya.util.error.SourceFile toSourceFile(@NotNull @NotNull String sourceCode) -
parseMe
@NotNull public @NotNull kala.collection.immutable.ImmutableSeq<org.aya.concrete.stmt.Stmt> parseMe(@NotNull @NotNull org.aya.concrete.GenericAyaParser parser) throws IOException - Specified by:
parseMein interfaceorg.aya.concrete.GenericAyaFile- Throws:
IOException
-
originalFile
- Specified by:
originalFilein interfaceorg.aya.concrete.GenericAyaFile- Throws:
IOException
-
compiledCorePath
-
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. -
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). -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
owner
Returns the value of theownerrecord component.- Returns:
- the value of the
ownerrecord component
-
underlyingFile
Returns the value of theunderlyingFilerecord component.- Returns:
- the value of the
underlyingFilerecord component
-
imports
Returns the value of theimportsrecord component.- Returns:
- the value of the
importsrecord component
-
program
@NotNull public @NotNull kala.value.MutableValue<kala.collection.immutable.ImmutableSeq<org.aya.concrete.stmt.Stmt>> program()Returns the value of theprogramrecord component.- Returns:
- the value of the
programrecord component
-
tycked
@NotNull public @NotNull kala.value.MutableValue<kala.collection.immutable.ImmutableSeq<org.aya.core.def.GenericDef>> tycked()Returns the value of thetyckedrecord component.- Returns:
- the value of the
tyckedrecord component
-
resolveInfo
@NotNull public @NotNull kala.value.MutableValue<org.aya.resolve.ResolveInfo> resolveInfo()Returns the value of theresolveInforecord component.- Returns:
- the value of the
resolveInforecord component
-