java.lang.Object
java.lang.Record
org.aya.cli.single.SingleAyaFile.MarkdownAyaFile
- All Implemented Interfaces:
SingleAyaFile,org.aya.syntax.GenericAyaFile
- Enclosing interface:
SingleAyaFile
public static record SingleAyaFile.MarkdownAyaFile(@NotNull org.aya.util.error.SourceFile originalFile, @NotNull LiterateData data)
extends Record
implements SingleAyaFile
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.aya.cli.single.SingleAyaFile
SingleAyaFile.CodeAyaFile, SingleAyaFile.Factory, SingleAyaFile.MarkdownAyaFile -
Constructor Summary
ConstructorsConstructorDescriptionMarkdownAyaFile(@NotNull org.aya.util.error.SourceFile originalFile, @NotNull LiterateData data) Creates an instance of aMarkdownAyaFilerecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull org.aya.util.error.SourceFilecodeFile()@NotNull LiterateDatadata()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull org.aya.literate.Literateliterate()@NotNull org.aya.util.error.SourceFileReturns the value of theoriginalFilerecord component.@NotNull kala.collection.immutable.ImmutableSeq<org.aya.syntax.concrete.stmt.Stmt> parseMe(@NotNull org.aya.syntax.GenericAyaParser parser) voidresolveAdditional(@NotNull org.aya.resolve.ResolveInfo info) Must be called afterGenericAyaFile.parseMe(org.aya.syntax.GenericAyaParser)final StringtoString()Returns a string representation of this record class.voidtyckAdditional(@NotNull org.aya.resolve.ResolveInfo info) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.aya.cli.single.SingleAyaFile
pretty, toDoc
-
Constructor Details
-
MarkdownAyaFile
public MarkdownAyaFile(@NotNull @NotNull org.aya.util.error.SourceFile originalFile, @NotNull @NotNull LiterateData data) Creates an instance of aMarkdownAyaFilerecord class.- Parameters:
originalFile- the value for theoriginalFilerecord componentdata- the value for thedatarecord component
-
-
Method Details
-
resolveAdditional
public void resolveAdditional(@NotNull @NotNull org.aya.resolve.ResolveInfo info) Description copied from interface:SingleAyaFileMust be called afterGenericAyaFile.parseMe(org.aya.syntax.GenericAyaParser)- Specified by:
resolveAdditionalin interfaceSingleAyaFile
-
tyckAdditional
public void tyckAdditional(@NotNull @NotNull org.aya.resolve.ResolveInfo info) - Specified by:
tyckAdditionalin interfaceSingleAyaFile
-
parseMe
@NotNull public @NotNull kala.collection.immutable.ImmutableSeq<org.aya.syntax.concrete.stmt.Stmt> parseMe(@NotNull @NotNull org.aya.syntax.GenericAyaParser parser) throws IOException - Specified by:
parseMein interfaceorg.aya.syntax.GenericAyaFile- Throws:
IOException
-
codeFile
@NotNull public @NotNull org.aya.util.error.SourceFile codeFile()- Specified by:
codeFilein interfaceorg.aya.syntax.GenericAyaFile
-
literate
@NotNull public @NotNull org.aya.literate.Literate literate()- Specified by:
literatein interfaceorg.aya.syntax.GenericAyaFile
-
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). -
originalFile
@NotNull public @NotNull org.aya.util.error.SourceFile originalFile()Returns the value of theoriginalFilerecord component.- Specified by:
originalFilein interfaceorg.aya.syntax.GenericAyaFile- Returns:
- the value of the
originalFilerecord component
-
data
Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-