public interface GenericAyaFile
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiondefault @NotNull org.aya.util.error.SourceFilecodeFile()default @NotNull Literateliterate()@NotNull org.aya.util.error.SourceFiledefault @NotNull kala.collection.immutable.ImmutableSeq<Stmt>parseMe(@NotNull GenericAyaParser parser) Parse the file content and maybe do some extra processing.
-
Method Details
-
parseMe
@MustBeInvokedByOverriders @NotNull default @NotNull kala.collection.immutable.ImmutableSeq<Stmt> parseMe(@NotNull @NotNull GenericAyaParser parser) throws IOException Parse the file content and maybe do some extra processing. For example, maybe we want to cache the result.- Throws:
IOException
-
originalFile
- Returns:
- the original source file, maybe a literate file
- Throws:
IOException
-
codeFile
- Returns:
- the valid aya source file
- Throws:
IOException- Implementation Note:
- Literate files should override this method to return the extracted code file.
-
literate
- Returns:
- the parsed literate output
- Throws:
IOException- Implementation Note:
- This method wraps the file in a code block by default. Literate files should override this method.
-