Module aya.base

Record Class NoExportContext

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

public record NoExportContext(@NotNull PhysicalModuleContext parent, @NotNull kala.collection.mutable.MutableMap<String,kala.collection.mutable.MutableMap<kala.collection.Seq<String>,AnyVar>> definitions, @NotNull kala.collection.mutable.MutableMap<kala.collection.immutable.ImmutableSeq<String>,kala.collection.mutable.MutableMap<String,AnyVar>> modules) extends Record implements ModuleContext
  • Constructor Details

    • NoExportContext

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

      public NoExportContext(@NotNull @NotNull PhysicalModuleContext parent, @NotNull @NotNull kala.collection.mutable.MutableMap<String,kala.collection.mutable.MutableMap<kala.collection.Seq<String>,AnyVar>> definitions, @NotNull @NotNull kala.collection.mutable.MutableMap<kala.collection.immutable.ImmutableSeq<String>,kala.collection.mutable.MutableMap<String,AnyVar>> modules)
      Creates an instance of a NoExportContext record class.
      Parameters:
      parent - the value for the parent record component
      definitions - the value for the definitions record component
      modules - the value for the modules record component
  • Method Details

    • moduleName

      @NotNull public @NotNull kala.collection.immutable.ImmutableSeq<String> moduleName()
      Specified by:
      moduleName in interface Context
    • underlyingFile

      @NotNull public @NotNull Path underlyingFile()
      Specified by:
      underlyingFile in interface Context
      Specified by:
      underlyingFile 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 PhysicalModuleContext 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
    • definitions

      @NotNull public @NotNull kala.collection.mutable.MutableMap<String,kala.collection.mutable.MutableMap<kala.collection.Seq<String>,AnyVar>> definitions()
      Returns the value of the definitions record component.
      Specified by:
      definitions in interface ModuleContext
      Returns:
      the value of the definitions record component
    • modules

      @NotNull public @NotNull kala.collection.mutable.MutableMap<kala.collection.immutable.ImmutableSeq<String>,kala.collection.mutable.MutableMap<String,AnyVar>> modules()
      Returns the value of the modules record component.
      Specified by:
      modules in interface ModuleContext
      Returns:
      the value of the modules record component