@GwtIncompatible public class Transpiler extends Object implements Source.Transformer
Modifier and Type | Class and Description |
---|---|
static class |
Transpiler.CompileResult
The source together with the additional compilation results.
|
static class |
Transpiler.CompilerSupplier
Wraps the Compiler into a more relevant interface, making it easy to test the Transpiler
without depending on implementation details of the Compiler itself.
|
Modifier and Type | Field and Description |
---|---|
static Transpiler |
ES5_TRANSPILER |
Constructor and Description |
---|
Transpiler(Transpiler.CompilerSupplier compilerSupplier,
String runtimeLibraryName) |
Modifier and Type | Method and Description |
---|---|
static Transpiler |
toEs5()
Recommended transpiler.
|
Source |
transform(Source input)
The main transformation method.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
andThen, asFunction, compose, identity, of
public static final Transpiler ES5_TRANSPILER
public Transpiler(Transpiler.CompilerSupplier compilerSupplier, String runtimeLibraryName)
public Source transform(Source input)
Source.Transformer
transform
in interface Source.Transformer
public static Transpiler toEs5()
Copyright © 2009-2017 Google. All Rights Reserved.