public final class BaseTranspiler extends Object implements Transpiler
| Modifier and Type | Class and Description |
|---|---|
static class |
BaseTranspiler.CompileResult
The source together with the additional compilation results.
|
static class |
BaseTranspiler.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 BaseTranspiler |
ES5_TRANSPILER |
NULL| Modifier and Type | Method and Description |
|---|---|
String |
runtime()
Returns any necessary runtime code as a string.
|
TranspileResult |
transpile(Path path,
String code)
Transforms the given chunk of code.
|
public static final BaseTranspiler ES5_TRANSPILER
public TranspileResult transpile(Path path, String code)
Transpilertranspile in interface Transpilerpublic String runtime()
Transpilerruntime in interface TranspilerCopyright © 2009-2017 Google. All Rights Reserved.