Interface Compiler

All Known Implementing Classes:
ChainCompiler

public interface Compiler
Contract for a compiler: consume an input file and produce an output file.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    compile(String sourceFile, String sinkFile)
    Trigger the compilation process.
  • Method Details

    • compile

      boolean compile(String sourceFile, String sinkFile) throws IOException
      Trigger the compilation process.
      Parameters:
      sourceFile - input file path.
      sinkFile - output file path.
      Returns:
      true if at least one ERROR or FATAL diagnostic was reported; false if compilation was clean.
      Throws:
      IOException - if an I/O error occurs.