Class Transpiler
- java.lang.Object
-
- com.google.javascript.jscomp.bundle.CompilerBasedTransformer
-
- com.google.javascript.jscomp.bundle.Transpiler
-
- All Implemented Interfaces:
Source.Transformer
@GwtIncompatible @Immutable public class Transpiler extends CompilerBasedTransformer
A source transformer for lowering JS language versions. May also include a runtime that needs to be shipped with the final bundle.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.javascript.jscomp.bundle.CompilerBasedTransformer
CompilerBasedTransformer.CompileResult, CompilerBasedTransformer.CompilerSupplier
-
-
Field Summary
Fields Modifier and Type Field Description static Transpiler
ES5_TRANSPILER
-
Constructor Summary
Constructors Constructor Description Transpiler(CompilerBasedTransformer.CompilerSupplier compilerSupplier, java.lang.String runtimeLibraryName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CompilerBasedTransformer.CompilerSupplier
compilerSupplier()
java.util.Optional<java.lang.String>
getRuntime()
java.lang.String
getTranformationName()
static Transpiler
toEs5()
Recommended transpiler.-
Methods inherited from class com.google.javascript.jscomp.bundle.CompilerBasedTransformer
transform
-
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
-
-
-
-
Field Detail
-
ES5_TRANSPILER
public static final Transpiler ES5_TRANSPILER
-
-
Constructor Detail
-
Transpiler
public Transpiler(CompilerBasedTransformer.CompilerSupplier compilerSupplier, java.lang.String runtimeLibraryName)
-
-
Method Detail
-
compilerSupplier
public static CompilerBasedTransformer.CompilerSupplier compilerSupplier()
-
getRuntime
public java.util.Optional<java.lang.String> getRuntime()
- Specified by:
getRuntime
in classCompilerBasedTransformer
-
getTranformationName
public java.lang.String getTranformationName()
- Specified by:
getTranformationName
in classCompilerBasedTransformer
-
toEs5
public static Transpiler toEs5()
Recommended transpiler.
-
-