java.lang.Object
java.lang.Record
org.aya.cli.utils.LiterateData
public record LiterateData(@NotNull org.aya.literate.Literate literate, @NotNull kala.collection.immutable.ImmutableSeq<org.aya.syntax.literate.AyaLiterate.AyaInlineCode> extractedExprs, @NotNull org.aya.util.error.SourceFile extractedAya)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionLiterateData(@NotNull org.aya.literate.Literate literate, @NotNull kala.collection.immutable.ImmutableSeq<org.aya.syntax.literate.AyaLiterate.AyaInlineCode> extractedExprs, @NotNull org.aya.util.error.SourceFile extractedAya) Creates an instance of aLiterateDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull LiterateDatacreate(@NotNull org.aya.util.error.SourceFile mdFile, @NotNull org.aya.util.reporter.Reporter reporter) final booleanIndicates whether some other object is "equal to" this one.@NotNull org.aya.util.error.SourceFileReturns the value of theextractedAyarecord component.@NotNull kala.collection.immutable.ImmutableSeq<org.aya.syntax.literate.AyaLiterate.AyaInlineCode> Returns the value of theextractedExprsrecord component.final inthashCode()Returns a hash code value for this object.@NotNull org.aya.literate.Literateliterate()Returns the value of theliteraterecord component.voidparseMe(@NotNull org.aya.syntax.GenericAyaParser parser) voidresolve(@NotNull org.aya.resolve.ResolveInfo info) static @Nullable org.aya.tyck.JdgsimpleVar(org.aya.syntax.concrete.Expr expr) static @NotNull org.aya.pretty.doc.DoctoDoc(@NotNull org.aya.syntax.GenericAyaFile ayaFile, @Nullable org.aya.syntax.ref.ModulePath currentFileModule, @NotNull kala.collection.immutable.ImmutableSeq<org.aya.syntax.concrete.stmt.Stmt> program, @NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.reporter.Problem> problems, @NotNull org.aya.util.prettier.PrettierOptions options) final StringtoString()Returns a string representation of this record class.voidtyck(@NotNull org.aya.resolve.ResolveInfo info)
-
Constructor Details
-
LiterateData
public LiterateData(@NotNull @NotNull org.aya.literate.Literate literate, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<org.aya.syntax.literate.AyaLiterate.AyaInlineCode> extractedExprs, @NotNull @NotNull org.aya.util.error.SourceFile extractedAya) Creates an instance of aLiterateDatarecord class.- Parameters:
literate- the value for theliteraterecord componentextractedExprs- the value for theextractedExprsrecord componentextractedAya- the value for theextractedAyarecord component
-
-
Method Details
-
create
@NotNull public static @NotNull LiterateData create(@NotNull @NotNull org.aya.util.error.SourceFile mdFile, @NotNull @NotNull org.aya.util.reporter.Reporter reporter) -
parseMe
public void parseMe(@NotNull @NotNull org.aya.syntax.GenericAyaParser parser) -
resolve
public void resolve(@NotNull @NotNull org.aya.resolve.ResolveInfo info) -
simpleVar
@Nullable public static @Nullable org.aya.tyck.Jdg simpleVar(org.aya.syntax.concrete.Expr expr) -
tyck
public void tyck(@NotNull @NotNull org.aya.resolve.ResolveInfo info) -
toDoc
@NotNull public static @NotNull org.aya.pretty.doc.Doc toDoc(@NotNull @NotNull org.aya.syntax.GenericAyaFile ayaFile, @Nullable @Nullable org.aya.syntax.ref.ModulePath currentFileModule, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<org.aya.syntax.concrete.stmt.Stmt> program, @NotNull @NotNull kala.collection.immutable.ImmutableSeq<org.aya.util.reporter.Problem> problems, @NotNull @NotNull org.aya.util.prettier.PrettierOptions options) throws IOException - Throws:
IOException
-
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). -
literate
@NotNull public @NotNull org.aya.literate.Literate literate()Returns the value of theliteraterecord component.- Returns:
- the value of the
literaterecord component
-
extractedExprs
@NotNull public @NotNull kala.collection.immutable.ImmutableSeq<org.aya.syntax.literate.AyaLiterate.AyaInlineCode> extractedExprs()Returns the value of theextractedExprsrecord component.- Returns:
- the value of the
extractedExprsrecord component
-
extractedAya
@NotNull public @NotNull org.aya.util.error.SourceFile extractedAya()Returns the value of theextractedAyarecord component.- Returns:
- the value of the
extractedAyarecord component
-