java.lang.Object
java.lang.Record
org.aya.cli.single.SingleAyaFile.MarkdownAyaFile
- All Implemented Interfaces:
SingleAyaFile,org.aya.concrete.GenericAyaFile
- Enclosing interface:
SingleAyaFile
public static record SingleAyaFile.MarkdownAyaFile(@NotNull org.aya.util.error.SourceFile originalFile, @NotNull org.aya.cli.single.SingleAyaFile.MarkdownAyaFile.Data 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 org.aya.cli.single.SingleAyaFile.MarkdownAyaFile.Data data) Creates an instance of aMarkdownAyaFilerecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull org.aya.util.error.SourceFilecodeFile()@NotNull org.aya.cli.single.SingleAyaFile.MarkdownAyaFile.Datadata()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.concrete.remark.Literateliterate()@NotNull org.aya.util.error.SourceFileReturns the value of theoriginalFilerecord component.@NotNull kala.collection.immutable.ImmutableSeq<org.aya.concrete.stmt.Stmt>parseMe(@NotNull org.aya.concrete.GenericAyaParser parser) voidresolveAdditional(@NotNull org.aya.resolve.ResolveInfo info) Must be called afterGenericAyaFile.parseMe(org.aya.concrete.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 org.aya.cli.single.SingleAyaFile.MarkdownAyaFile.Data 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.concrete.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.concrete.stmt.Stmt> parseMe(@NotNull @NotNull org.aya.concrete.GenericAyaParser parser) throws IOException - Specified by:
parseMein interfaceorg.aya.concrete.GenericAyaFile- Throws:
IOException
-
codeFile
@NotNull public @NotNull org.aya.util.error.SourceFile codeFile()- Specified by:
codeFilein interfaceorg.aya.concrete.GenericAyaFile
-
literate
- Specified by:
literatein interfaceorg.aya.concrete.GenericAyaFile- 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). -
originalFile
@NotNull public @NotNull org.aya.util.error.SourceFile originalFile()Returns the value of theoriginalFilerecord component.- Specified by:
originalFilein interfaceorg.aya.concrete.GenericAyaFile- Returns:
- the value of the
originalFilerecord component
-
data
@NotNull public @NotNull org.aya.cli.single.SingleAyaFile.MarkdownAyaFile.Data data()Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-