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
ConstructorsConstructorDescriptionCompiledAya(@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 aCompiledAyarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.@NotNull kala.collection.immutable.ImmutableSeq<SerDef.QName>exports()Returns the value of theexportsrecord component.static @NotNull CompiledAyafrom(@NotNull ResolveInfo resolveInfo, @NotNull kala.collection.immutable.ImmutableSeq<GenericDef> defs, Serializer.State state) final inthashCode()Returns a hash code value for this object.@NotNull kala.collection.immutable.ImmutableSeq<kala.collection.immutable.ImmutableSeq<String>>imports()Returns the value of theimportsrecord component.@NotNull kala.collection.immutable.ImmutableMap<SerDef.QName,SerDef.SerRenamedOp> opRename()Returns the value of theopRenamerecord component.@NotNull kala.collection.immutable.ImmutableMap<kala.collection.immutable.ImmutableSeq<String>,org.aya.core.serde.CompiledAya.SerUseHide> Returns the value of thereExportsrecord component.@NotNull kala.collection.immutable.ImmutableSeq<SerDef>serDefs()Returns the value of theserDefsrecord component.@NotNull kala.collection.immutable.ImmutableSeq<SerDef.SerOp>serOps()Returns the value of theserOpsrecord component.@NotNull ResolveInfotoResolveInfo(@NotNull ModuleLoader loader, @NotNull PhysicalModuleContext context, SerTerm.DeState state) final StringtoString()Returns a string representation of this record class.
-
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 aCompiledAyarecord class.- Parameters:
imports- the value for theimportsrecord componentexports- the value for theexportsrecord componentreExports- the value for thereExportsrecord componentserDefs- the value for theserDefsrecord componentserOps- the value for theserOpsrecord componentopRename- the value for theopRenamerecord 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
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). -
imports
@NotNull public @NotNull kala.collection.immutable.ImmutableSeq<kala.collection.immutable.ImmutableSeq<String>> imports()Returns the value of theimportsrecord component.- Returns:
- the value of the
importsrecord component
-
exports
Returns the value of theexportsrecord component.- Returns:
- the value of the
exportsrecord 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 thereExportsrecord component.- Returns:
- the value of the
reExportsrecord component
-
serDefs
Returns the value of theserDefsrecord component.- Returns:
- the value of the
serDefsrecord component
-
serOps
Returns the value of theserOpsrecord component.- Returns:
- the value of the
serOpsrecord component
-
opRename
@NotNull public @NotNull kala.collection.immutable.ImmutableMap<SerDef.QName,SerDef.SerRenamedOp> opRename()Returns the value of theopRenamerecord component.- Returns:
- the value of the
opRenamerecord component
-