Class CompilerBasedTransformer.CompilerSupplier

  • Direct Known Subclasses:
    CoverageInstrumenter.CompilerSupplier
    Enclosing class:
    CompilerBasedTransformer

    @Immutable
    public static class CompilerBasedTransformer.CompilerSupplier
    extends java.lang.Object
    Wraps the Compiler into a more relevant interface, making it easy to test the CompilerBasedTransformer without depending on implementation details of the Compiler itself. Also works around the fact that the Compiler is not thread-safe (since we may do multiple transpiles concurrently), so we supply a fresh instance each time when we're in single-file mode.
    • Constructor Detail

      • CompilerSupplier

        public CompilerSupplier()