Class ChainCompiler<I,O>

java.lang.Object
ca.mcscert.jpipe.compiler.model.ChainCompiler<I,O>
Type Parameters:
I - type provided by the source.
O - type consumed by the sink.
All Implemented Interfaces:
Compiler

public final class ChainCompiler<I,O> extends Object implements Compiler
A fully assembled compilation pipeline: SourceTransformation chain → Sink. Produced by ChainBuilder.andThen(Sink).
  • Method Details

    • compile

      public boolean compile(String sourceFile, String sinkFile) throws IOException
      Description copied from interface: Compiler
      Trigger the compilation process.
      Specified by:
      compile in interface Compiler
      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.