java.lang.Object
java.lang.Record
org.aya.resolve.context.NoExportContext
- All Implemented Interfaces:
Context,ModuleContext
public record NoExportContext(@NotNull Context parent, @NotNull ModuleSymbol<AnyVar> symbols, @NotNull kala.collection.mutable.MutableMap<ModuleName.Qualified,ModuleExport> modules, @NotNull ModulePath moduleName)
extends Record
implements ModuleContext
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.aya.resolve.context.Context
Context.ResolvingInterruptedException -
Constructor Summary
ConstructorsConstructorDescriptionNoExportContext(@NotNull Context parent) NoExportContext(@NotNull Context parent, @NotNull ModuleSymbol<AnyVar> symbols, @NotNull kala.collection.mutable.MutableMap<ModuleName.Qualified, ModuleExport> modules) NoExportContext(@NotNull Context parent, @NotNull ModuleSymbol<AnyVar> symbols, @NotNull kala.collection.mutable.MutableMap<ModuleName.Qualified, ModuleExport> modules, @NotNull ModulePath moduleName) Creates an instance of aNoExportContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.@NotNull ModuleExportexports()Things (symbol or module) that are exported by this module.final inthashCode()Returns a hash code value for this object.@NotNull ModulePathReturns the value of themoduleNamerecord component.@NotNull kala.collection.mutable.MutableMap<ModuleName.Qualified,ModuleExport> modules()Returns the value of themodulesrecord component.@NotNull Contextparent()Returns the value of theparentrecord component.@NotNull ModuleSymbol<AnyVar>symbols()Returns the value of thesymbolsrecord component.final StringtoString()Returns a string representation of this record class.@NotNull PathMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.aya.resolve.context.Context
bind, bind, bind, collect, derive, derive, get, getMaybe, getModuleMaybe, getQualified, getQualifiedMaybe, getUnqualified, getUnqualifiedMaybe, iterate, modulePath, reportAll, reportAllAndThrow, reportAndThrowMethods inherited from interface org.aya.resolve.context.ModuleContext
defineSymbol, exportSymbol, getModuleLocalMaybe, getQualifiedLocalMaybe, getUnqualifiedLocalMaybe, importModule, importModule, importSymbol, openModule, openModule, reporter
-
Constructor Details
-
NoExportContext
public NoExportContext(@NotNull @NotNull Context parent, @NotNull @NotNull ModuleSymbol<AnyVar> symbols, @NotNull @NotNull kala.collection.mutable.MutableMap<ModuleName.Qualified, ModuleExport> modules) -
NoExportContext
-
NoExportContext
public NoExportContext(@NotNull @NotNull Context parent, @NotNull @NotNull ModuleSymbol<AnyVar> symbols, @NotNull @NotNull kala.collection.mutable.MutableMap<ModuleName.Qualified, ModuleExport> modules, @NotNull @NotNull ModulePath moduleName) Creates an instance of aNoExportContextrecord class.- Parameters:
parent- the value for theparentrecord componentsymbols- the value for thesymbolsrecord componentmodules- the value for themodulesrecord componentmoduleName- the value for themoduleNamerecord component
-
-
Method Details
-
underlyingFile
- Specified by:
underlyingFilein interfaceContext- Specified by:
underlyingFilein interfaceModuleContext
-
exports
Description copied from interface:ModuleContextThings (symbol or module) that are exported by this module.- Specified by:
exportsin interfaceModuleContext
-
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). -
parent
Returns the value of theparentrecord component.- Specified by:
parentin interfaceContext- Specified by:
parentin interfaceModuleContext- Returns:
- the value of the
parentrecord component
-
symbols
Returns the value of thesymbolsrecord component.- Specified by:
symbolsin interfaceModuleContext- Returns:
- the value of the
symbolsrecord component
-
modules
@NotNull public @NotNull kala.collection.mutable.MutableMap<ModuleName.Qualified,ModuleExport> modules()Returns the value of themodulesrecord component.- Specified by:
modulesin interfaceModuleContext- Returns:
- the value of the
modulesrecord component
-
moduleName
Returns the value of themoduleNamerecord component.- Returns:
- the value of the
moduleNamerecord component
-