Class TranspilerBuilder
- java.lang.Object
-
- com.google.javascript.jscomp.transpile.TranspilerBuilder
-
public final class TranspilerBuilder extends java.lang.Object
Basic Transpiler implementation for outputting ES5 code.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Transpiler
build()
Returns the built Transpiler.TranspilerBuilder
caching()
Returns a TranspilerBuilder with cached transpilations, using the default cache settings (maximum size of 10,000).TranspilerBuilder
caching(com.google.common.cache.CacheBuilder<java.lang.Object,? super TranspileResult> builder)
Returns a TranspilerBuilder with cached transpilations, using the given cache builder.TranspilerBuilder
caching(java.lang.String spec)
Returns a TranspilerBuilder with cached transpilations, using the given cache spec.static TranspilerBuilder
toEs5()
Returns a new TranspilerBuilder that transpiles down to ES5.
-
-
-
Method Detail
-
toEs5
public static TranspilerBuilder toEs5()
Returns a new TranspilerBuilder that transpiles down to ES5.
-
caching
@CheckReturnValue public TranspilerBuilder caching()
Returns a TranspilerBuilder with cached transpilations, using the default cache settings (maximum size of 10,000). Note that the builder itself is not changed.
-
caching
@CheckReturnValue public TranspilerBuilder caching(java.lang.String spec)
Returns a TranspilerBuilder with cached transpilations, using the given cache spec. Note that the builder itself is not changed.
-
caching
@CheckReturnValue public TranspilerBuilder caching(com.google.common.cache.CacheBuilder<java.lang.Object,? super TranspileResult> builder)
Returns a TranspilerBuilder with cached transpilations, using the given cache builder. Note that the builder itself is not changed.
-
build
public Transpiler build()
Returns the built Transpiler.
-
-