public final class CodePrinter
extends java.lang.Object
CodeGenerator
Modifier and Type | Class and Description |
---|---|
static class |
CodePrinter.Builder |
(package private) static class |
CodePrinter.CompactCodePrinter |
(package private) static class |
CodePrinter.Format |
private static class |
CodePrinter.MappedCodePrinter |
(package private) static class |
CodePrinter.PrettyCodePrinter |
Modifier and Type | Field and Description |
---|---|
(package private) static int |
DEFAULT_LINE_LENGTH_THRESHOLD |
Constructor and Description |
---|
CodePrinter() |
Modifier and Type | Method and Description |
---|---|
private static java.lang.String |
toSource(Node root,
CodePrinter.Format outputFormat,
CompilerOptions options,
SourceMap sourceMap,
boolean tagAsStrict,
boolean lineBreak,
CodePrinter.Builder.CodeGeneratorFactory codeGeneratorFactory)
Converts a tree to JS code
|
static final int DEFAULT_LINE_LENGTH_THRESHOLD
private static java.lang.String toSource(Node root, CodePrinter.Format outputFormat, CompilerOptions options, SourceMap sourceMap, boolean tagAsStrict, boolean lineBreak, CodePrinter.Builder.CodeGeneratorFactory codeGeneratorFactory)