public final class TranspilerBuilder extends Object
Modifier and Type | Method and 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 builder)
Returns a TranspilerBuilder with cached transpilations, using the given
cache builder.
|
TranspilerBuilder |
caching(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.
|
public static TranspilerBuilder toEs5()
@CheckReturnValue public TranspilerBuilder caching()
@CheckReturnValue public TranspilerBuilder caching(String spec)
@CheckReturnValue public TranspilerBuilder caching(com.google.common.cache.CacheBuilder builder)
public Transpiler build()
Copyright © 2009-2017 Google. All Rights Reserved.