java.lang.Object
org.aya.cli.single.SingleFileCompiler
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal @NotNull org.aya.producer.AyaParserImplfinal SingleAyaFile.Factoryfinal @NotNull CompilerFlagsfinal @NotNull org.aya.resolve.module.ModuleLoaderfinal @NotNull org.aya.util.error.SourceFileLocatorfinal @NotNull org.aya.util.reporter.CollectingReporter -
Constructor Summary
ConstructorsConstructorDescriptionSingleFileCompiler(@NotNull org.aya.util.reporter.Reporter baseReporter, @NotNull CompilerFlags flags, @Nullable org.aya.util.error.SourceFileLocator baseLocator) -
Method Summary
Modifier and TypeMethodDescription<E extends IOException>
intcompile(@NotNull Path sourceFile, @NotNull Function<org.aya.util.reporter.Reporter, org.aya.resolve.context.ModuleContext> context, @Nullable org.aya.resolve.module.ModuleCallback<E> moduleCallback) <E extends IOException>
intcompile(@NotNull Path sourceFile, @Nullable org.aya.resolve.module.ModuleCallback<E> moduleCallback)
-
Field Details
-
reporter
@NotNull public final @NotNull org.aya.util.reporter.CollectingReporter reporter -
flags
-
locator
@NotNull public final @NotNull org.aya.util.error.SourceFileLocator locator -
ayaParser
@NotNull public final @NotNull org.aya.producer.AyaParserImpl ayaParser -
fileManager
-
loader
@NotNull public final @NotNull org.aya.resolve.module.ModuleLoader loader
-
-
Constructor Details
-
SingleFileCompiler
public SingleFileCompiler(@NotNull @NotNull org.aya.util.reporter.Reporter baseReporter, @NotNull @NotNull CompilerFlags flags, @Nullable @Nullable org.aya.util.error.SourceFileLocator baseLocator)
-
-
Method Details
-
compile
public <E extends IOException> int compile(@NotNull @NotNull Path sourceFile, @Nullable @Nullable org.aya.resolve.module.ModuleCallback<E> moduleCallback) throws IOException - Throws:
IOException
-
compile
public <E extends IOException> int compile(@NotNull @NotNull Path sourceFile, @NotNull @NotNull Function<org.aya.util.reporter.Reporter, org.aya.resolve.context.ModuleContext> context, @Nullable @Nullable org.aya.resolve.module.ModuleCallback<E> moduleCallback) throws IOException- Throws:
IOException
-