Module aya.base

Record Class NoExportContext

java.lang.Object
java.lang.Record
org.aya.resolve.context.NoExportContext
All Implemented Interfaces:
Context, ModuleContext, Problematic

public record NoExportContext(@NotNull Context parent, @NotNull ModuleSymbol<org.aya.syntax.ref.AnyVar> symbols, @NotNull kala.collection.mutable.MutableMap<org.aya.syntax.concrete.stmt.ModuleName.Qualified,ModuleExport> modules, @NotNull org.aya.syntax.ref.ModulePath modulePath) extends Record implements ModuleContext
Used for `let open`
  • Constructor Details

    • NoExportContext

      public NoExportContext(@NotNull @NotNull Context parent, @NotNull @NotNull ModuleSymbol<org.aya.syntax.ref.AnyVar> symbols, @NotNull @NotNull kala.collection.mutable.MutableMap<org.aya.syntax.concrete.stmt.ModuleName.Qualified,ModuleExport> modules)
    • NoExportContext

      public NoExportContext(@NotNull @NotNull Context parent)
    • NoExportContext

      public NoExportContext(@NotNull @NotNull Context parent, @NotNull @NotNull ModuleSymbol<org.aya.syntax.ref.AnyVar> symbols, @NotNull @NotNull kala.collection.mutable.MutableMap<org.aya.syntax.concrete.stmt.ModuleName.Qualified,ModuleExport> modules, @NotNull @NotNull org.aya.syntax.ref.ModulePath modulePath)
      Creates an instance of a NoExportContext record class.
      Parameters:
      parent - the value for the parent record component
      symbols - the value for the symbols record component
      modules - the value for the modules record component
      modulePath - the value for the modulePath record component
  • Method Details

    • underlyingFile

      @NotNull public @NotNull Path underlyingFile()
      Specified by:
      underlyingFile in interface Context
      Specified by:
      underlyingFile in interface ModuleContext
    • exports

      @NotNull public @NotNull ModuleExport exports()
      Description copied from interface: ModuleContext
      Things (symbol or module) that are exported by this module.
      Specified by:
      exports in interface ModuleContext
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • parent

      @NotNull public @NotNull Context parent()
      Returns the value of the parent record component.
      Specified by:
      parent in interface Context
      Specified by:
      parent in interface ModuleContext
      Returns:
      the value of the parent record component
    • symbols

      @NotNull public @NotNull ModuleSymbol<org.aya.syntax.ref.AnyVar> symbols()
      Returns the value of the symbols record component.
      Specified by:
      symbols in interface ModuleContext
      Returns:
      the value of the symbols record component
    • modules

      @NotNull public @NotNull kala.collection.mutable.MutableMap<org.aya.syntax.concrete.stmt.ModuleName.Qualified,ModuleExport> modules()
      Returns the value of the modules record component.
      Specified by:
      modules in interface ModuleContext
      Returns:
      the value of the modules record component
    • modulePath

      @NotNull public @NotNull org.aya.syntax.ref.ModulePath modulePath()
      Returns the value of the modulePath record component.
      Specified by:
      modulePath in interface Context
      Returns:
      the value of the modulePath record component