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
-
Nested Class Summary
Nested Classes -
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.syntax.core.JdgsimpleVar(org.aya.syntax.concrete.Expr expr) Directly calling a def is usually an error due to the possible existence of implicit parameters.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 LiterateData.InjectedFrontMatter injected, @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.syntax.core.Jdg simpleVar(org.aya.syntax.concrete.Expr expr) Directly calling a def is usually an error due to the possible existence of implicit parameters. However, when writing these functions in the REPL or a literate document, we are not usually asking for normalizing the function, instead we might just want to take a look at it, or check if it exists, or generate a link to it. So it's a good idea to not show an error message, and just pretty print the def instead. -
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 LiterateData.InjectedFrontMatter injected, @NotNull @NotNull org.aya.util.prettier.PrettierOptions options) throws IOException - Throws:
IOException
-
toString
-
hashCode
-
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
-