java.lang.Object
java.lang.Record
org.aya.resolve.visitor.StmtShallowResolver
public record StmtShallowResolver(@NotNull ModuleLoader loader, @NotNull ResolveInfo resolveInfo)
extends Record
simply adds all top-level names to the context
-
Constructor Summary
ConstructorsConstructorDescriptionStmtShallowResolver(@NotNull ModuleLoader loader, @NotNull ResolveInfo resolveInfo) Creates an instance of aStmtShallowResolverrecord 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 ModuleLoaderloader()Returns the value of theloaderrecord component.@NotNull ResolveInfoReturns the value of theresolveInforecord component.voidresolveStmt(@NotNull kala.collection.SeqLike<Stmt> stmts, ModuleContext context) voidresolveStmt(@NotNull Stmt stmt, @NotNull ModuleContext context) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StmtShallowResolver
public StmtShallowResolver(@NotNull @NotNull ModuleLoader loader, @NotNull @NotNull ResolveInfo resolveInfo) Creates an instance of aStmtShallowResolverrecord class.- Parameters:
loader- the value for theloaderrecord componentresolveInfo- the value for theresolveInforecord component
-
-
Method Details
-
resolveStmt
public void resolveStmt(@NotNull @NotNull kala.collection.SeqLike<Stmt> stmts, ModuleContext context) -
resolveStmt
-
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
-
resolveInfo
Returns the value of theresolveInforecord component.- Returns:
- the value of the
resolveInforecord component
-