Module aya.base

Record Class CompiledAya

java.lang.Object
java.lang.Record
org.aya.core.serde.CompiledAya
All Implemented Interfaces:
Serializable

public record CompiledAya(@NotNull kala.collection.immutable.ImmutableSeq<kala.collection.immutable.ImmutableSeq<String>> imports, @NotNull kala.collection.immutable.ImmutableSeq<SerDef.QName> exports, @NotNull kala.collection.immutable.ImmutableMap<kala.collection.immutable.ImmutableSeq<String>,org.aya.core.serde.CompiledAya.SerUseHide> reExports, @NotNull kala.collection.immutable.ImmutableSeq<SerDef> serDefs, @NotNull kala.collection.immutable.ImmutableSeq<SerDef.SerOp> serOps, @NotNull kala.collection.immutable.ImmutableMap<SerDef.QName,SerDef.SerRenamedOp> opRename) extends Record implements Serializable
The .ayac file representation.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    CompiledAya(@NotNull kala.collection.immutable.ImmutableSeq<kala.collection.immutable.ImmutableSeq<String>> imports, @NotNull kala.collection.immutable.ImmutableSeq<SerDef.QName> exports, @NotNull kala.collection.immutable.ImmutableMap<kala.collection.immutable.ImmutableSeq<String>,org.aya.core.serde.CompiledAya.SerUseHide> reExports, @NotNull kala.collection.immutable.ImmutableSeq<SerDef> serDefs, @NotNull kala.collection.immutable.ImmutableSeq<SerDef.SerOp> serOps, @NotNull kala.collection.immutable.ImmutableMap<SerDef.QName,SerDef.SerRenamedOp> opRename)
    Creates an instance of a CompiledAya record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    @NotNull kala.collection.immutable.ImmutableSeq<SerDef.QName>
    Returns the value of the exports record component.
    static @NotNull CompiledAya
    from(@NotNull ResolveInfo resolveInfo, @NotNull kala.collection.immutable.ImmutableSeq<GenericDef> defs, Serializer.State state)
     
    final int
    Returns a hash code value for this object.
    @NotNull kala.collection.immutable.ImmutableSeq<kala.collection.immutable.ImmutableSeq<String>>
    Returns the value of the imports record component.
    @NotNull kala.collection.immutable.ImmutableMap<SerDef.QName,SerDef.SerRenamedOp>
    Returns the value of the opRename record component.
    @NotNull kala.collection.immutable.ImmutableMap<kala.collection.immutable.ImmutableSeq<String>,org.aya.core.serde.CompiledAya.SerUseHide>
    Returns the value of the reExports record component.
    @NotNull kala.collection.immutable.ImmutableSeq<SerDef>
    Returns the value of the serDefs record component.
    @NotNull kala.collection.immutable.ImmutableSeq<SerDef.SerOp>
    Returns the value of the serOps record component.
    @NotNull ResolveInfo
    toResolveInfo(@NotNull ModuleLoader loader, @NotNull PhysicalModuleContext context, SerTerm.DeState state)
     
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • CompiledAya

      public CompiledAya(@NotNull @NotNull kala.collection.immutable.ImmutableSeq<kala.collection.immutable.ImmutableSeq<String>> imports, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<SerDef.QName> exports, @NotNull @NotNull kala.collection.immutable.ImmutableMap<kala.collection.immutable.ImmutableSeq<String>,org.aya.core.serde.CompiledAya.SerUseHide> reExports, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<SerDef> serDefs, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<SerDef.SerOp> serOps, @NotNull @NotNull kala.collection.immutable.ImmutableMap<SerDef.QName,SerDef.SerRenamedOp> opRename)
      Creates an instance of a CompiledAya record class.
      Parameters:
      imports - the value for the imports record component
      exports - the value for the exports record component
      reExports - the value for the reExports record component
      serDefs - the value for the serDefs record component
      serOps - the value for the serOps record component
      opRename - the value for the opRename record component
  • Method Details

    • from

      @NotNull public static @NotNull CompiledAya from(@NotNull @NotNull ResolveInfo resolveInfo, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<GenericDef> defs, @NotNull Serializer.State state)
    • toResolveInfo

      @NotNull public @NotNull ResolveInfo toResolveInfo(@NotNull @NotNull ModuleLoader loader, @NotNull @NotNull PhysicalModuleContext context, @NotNull SerTerm.DeState state)
    • 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.
    • imports

      @NotNull public @NotNull kala.collection.immutable.ImmutableSeq<kala.collection.immutable.ImmutableSeq<String>> imports()
      Returns the value of the imports record component.
      Returns:
      the value of the imports record component
    • exports

      @NotNull public @NotNull kala.collection.immutable.ImmutableSeq<SerDef.QName> exports()
      Returns the value of the exports record component.
      Returns:
      the value of the exports record component
    • reExports

      @NotNull public @NotNull kala.collection.immutable.ImmutableMap<kala.collection.immutable.ImmutableSeq<String>,org.aya.core.serde.CompiledAya.SerUseHide> reExports()
      Returns the value of the reExports record component.
      Returns:
      the value of the reExports record component
    • serDefs

      @NotNull public @NotNull kala.collection.immutable.ImmutableSeq<SerDef> serDefs()
      Returns the value of the serDefs record component.
      Returns:
      the value of the serDefs record component
    • serOps

      @NotNull public @NotNull kala.collection.immutable.ImmutableSeq<SerDef.SerOp> serOps()
      Returns the value of the serOps record component.
      Returns:
      the value of the serOps record component
    • opRename

      @NotNull public @NotNull kala.collection.immutable.ImmutableMap<SerDef.QName,SerDef.SerRenamedOp> opRename()
      Returns the value of the opRename record component.
      Returns:
      the value of the opRename record component