public final class BaseTranspiler extends java.lang.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 |
|---|---|
java.lang.String |
runtime()
Returns any necessary runtime code as a string.
|
TranspileResult |
transpile(java.nio.file.Path path,
java.lang.String code)
Transforms the given chunk of code.
|
public static final BaseTranspiler ES5_TRANSPILER
public TranspileResult transpile(java.nio.file.Path path, java.lang.String code)
Transpilertranspile in interface Transpilerpublic java.lang.String runtime()
Transpilerruntime in interface TranspilerCopyright © 2009-2017 Google. All Rights Reserved.