public class ClosureBundler extends Object
Constructor and Description |
---|
ClosureBundler() |
Modifier and Type | Method and Description |
---|---|
static void |
appendInput(Appendable out,
DependencyInfo info,
String contents)
Append the contents of the string to the supplied appendable.
|
void |
appendTo(Appendable out,
DependencyInfo info,
com.google.common.io.CharSource content)
Append the contents of the CharSource to the supplied appendable.
|
void |
appendTo(Appendable out,
DependencyInfo info,
File content,
Charset contentCharset)
Append the contents of the file to the supplied appendable.
|
void |
appendTo(Appendable out,
DependencyInfo info,
String content)
Append the contents of the string to the supplied appendable.
|
protected String |
transformInput(String input,
String path)
Template method.
|
ClosureBundler |
useEval(boolean useEval) |
ClosureBundler |
withPath(String path) |
ClosureBundler |
withSourceUrl(String sourceUrl) |
public final ClosureBundler useEval(boolean useEval)
public final ClosureBundler withSourceUrl(String sourceUrl)
public final ClosureBundler withPath(String path)
public static void appendInput(Appendable out, DependencyInfo info, String contents) throws IOException
IOException
public void appendTo(Appendable out, DependencyInfo info, String content) throws IOException
IOException
public void appendTo(Appendable out, DependencyInfo info, File content, Charset contentCharset) throws IOException
IOException
public void appendTo(Appendable out, DependencyInfo info, com.google.common.io.CharSource content) throws IOException
IOException
protected String transformInput(String input, String path)
TranspilingClosureBundler.transformInput(java.lang.String, java.lang.String)
transpiles inputs from ES6
to ES5.)Copyright © 2009-2016 Google. All Rights Reserved.