Package | Description |
---|---|
com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
Modifier and Type | Method and Description |
---|---|
CodePrinter.Builder |
CodePrinter.Builder.setCodeGeneratorFactory(CodePrinter.Builder.CodeGeneratorFactory factory)
Set a custom code generator factory to enable custom code generation.
|
CodePrinter.Builder |
CodePrinter.Builder.setCompilerOptions(CompilerOptions options)
Sets the output options from compiler options.
|
CodePrinter.Builder |
CodePrinter.Builder.setLineBreak(boolean lineBreak)
Sets whether line breaking should be done automatically.
|
CodePrinter.Builder |
CodePrinter.Builder.setOutputTypes(boolean outputTypes)
Sets whether to output closure-style type annotations.
|
CodePrinter.Builder |
CodePrinter.Builder.setPrettyPrint(boolean prettyPrint)
Sets whether pretty printing should be used.
|
CodePrinter.Builder |
CodePrinter.Builder.setSourceMap(SourceMap sourceMap)
Sets the source map to which to write the metadata about
the generated source code.
|
CodePrinter.Builder |
CodePrinter.Builder.setTagAsExterns(boolean tagAsExterns)
Set whether the output should be tagged as @externs code.
|
CodePrinter.Builder |
CodePrinter.Builder.setTagAsStrict(boolean tagAsStrict)
Set whether the output should be tags as ECMASCRIPT 5 Strict.
|
CodePrinter.Builder |
CodePrinter.Builder.setTypeRegistry(TypeIRegistry registry) |
Copyright © 2009-2016 Google. All Rights Reserved.