Class CompilerBasedTransformer
java.lang.Object
com.google.javascript.jscomp.bundle.CompilerBasedTransformer
- All Implemented Interfaces:
Source.Transformer
- Direct Known Subclasses:
CoverageInstrumenter
,Transpiler
@Immutable
public abstract class CompilerBasedTransformer
extends Object
implements Source.Transformer
A source transformer base class. May also include a runtime that needs to
be shipped with the final bundle.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
The source together with the additional compilation results.static class
Wraps the Compiler into a more relevant interface, making it easy to test the CompilerBasedTransformer without depending on implementation details of the Compiler itself. -
Constructor Summary
ConstructorsConstructorDescriptionCompilerBasedTransformer
(CompilerBasedTransformer.CompilerSupplier compilerSupplier) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.javascript.jscomp.bundle.Source.Transformer
andThen, asFunction, compose
-
Constructor Details
-
CompilerBasedTransformer
-
-
Method Details
-
getRuntime
-
getTranformationName
-
transform
Description copied from interface:Source.Transformer
The main transformation method.- Specified by:
transform
in interfaceSource.Transformer
-