java.lang.Object
java.lang.Record
org.aya.cli.library.ImportResolver
public record ImportResolver(@NotNull ImportResolver.ImportLoader loader, @NotNull LibrarySource librarySource)
extends Record
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionImportResolver(@NotNull ImportResolver.ImportLoader loader, @NotNull LibrarySource librarySource) Creates an instance of aImportResolverrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull LibrarySourceReturns the value of thelibrarySourcerecord component.@NotNull ImportResolver.ImportLoaderloader()Returns the value of theloaderrecord component.voidresolveStmt(@NotNull kala.collection.SeqLike<org.aya.concrete.stmt.Stmt> stmts) voidresolveStmt(@NotNull org.aya.concrete.stmt.Stmt stmt) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ImportResolver
public ImportResolver(@NotNull @NotNull ImportResolver.ImportLoader loader, @NotNull @NotNull LibrarySource librarySource) Creates an instance of aImportResolverrecord class.- Parameters:
loader- the value for theloaderrecord componentlibrarySource- the value for thelibrarySourcerecord component
-
-
Method Details
-
resolveStmt
public void resolveStmt(@NotNull @NotNull kala.collection.SeqLike<org.aya.concrete.stmt.Stmt> stmts) throws IOException - Throws:
IOException
-
resolveStmt
- 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). -
loader
Returns the value of theloaderrecord component.- Returns:
- the value of the
loaderrecord component
-
librarySource
Returns the value of thelibrarySourcerecord component.- Returns:
- the value of the
librarySourcerecord component
-