Module aya.cli.impl

Class SingleFileCompiler

java.lang.Object
org.aya.cli.single.SingleFileCompiler

public final class SingleFileCompiler extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final @NotNull org.aya.producer.AyaParserImpl
     
     
    final @NotNull CompilerFlags
     
    final @NotNull org.aya.resolve.module.ModuleLoader
     
    final @NotNull org.aya.util.error.SourceFileLocator
     
    final @NotNull org.aya.util.reporter.CollectingReporter
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    SingleFileCompiler(@NotNull org.aya.util.reporter.Reporter baseReporter, @NotNull CompilerFlags flags, @Nullable org.aya.util.error.SourceFileLocator baseLocator)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <E extends IOException>
    int
    compile(@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>
    int
    compile(@NotNull Path sourceFile, @Nullable org.aya.resolve.module.ModuleCallback<E> moduleCallback)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • reporter

      @NotNull public final @NotNull org.aya.util.reporter.CollectingReporter reporter
    • flags

      @NotNull public final @NotNull CompilerFlags flags
    • locator

      @NotNull public final @NotNull org.aya.util.error.SourceFileLocator locator
    • ayaParser

      @NotNull public final @NotNull org.aya.producer.AyaParserImpl ayaParser
    • fileManager

      @NotNull public final SingleAyaFile.Factory 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