static class AbstractCommandLineRunner.CommandLineConfig
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private boolean |
angularPass |
private java.lang.String |
charset |
private CodingConvention |
codingConvention |
private boolean |
createNameMapFiles |
private java.lang.String |
createSourceMap |
private java.util.List<java.lang.String> |
define |
private CompilerOptions.DependencyMode |
dependencyMode |
private java.util.List<ModuleIdentifier> |
entryPoints |
private java.util.List<java.lang.String> |
externs |
private java.util.List<java.lang.String> |
hideWarningsFor |
private java.lang.String |
instrumentationTemplateFile |
private java.util.List<java.lang.String> |
js |
private CompilerOptions.DevMode |
jscompDevMode |
private CompilerOptions.JsonStreamMode |
jsonStreamMode |
private java.lang.String |
jsOutputFile |
private java.util.List<java.lang.String> |
jsZip |
private java.lang.String |
loggingLevel |
private java.util.List<java.lang.String> |
manifestMaps |
private java.util.List<AbstractCommandLineRunner.FlagEntry<AbstractCommandLineRunner.JsSourceType>> |
mixedJsSources |
private java.util.List<java.lang.String> |
module |
private java.lang.String |
moduleOutputPathPrefix |
private java.util.List<java.lang.String> |
moduleRoots |
private java.util.List<java.lang.String> |
moduleWrapper |
private java.util.List<java.lang.String> |
outputBundles |
private java.util.List<java.lang.String> |
outputManifests |
private java.lang.String |
outputModuleDependencies |
private java.lang.String |
outputWrapper |
private boolean |
printAst |
private boolean |
printPassGraph |
private boolean |
printSourceAfterEachPass |
private boolean |
printTree |
private boolean |
processCommonJSModules |
private java.lang.String |
propertyMapInputFile |
private java.lang.String |
propertyMapOutputFile |
private boolean |
skipNormalOutputs |
private SourceMap.DetailLevel |
sourceMapDetailLevel |
private SourceMap.Format |
sourceMapFormat |
private java.util.Map<java.lang.String,java.lang.String> |
sourceMapInputFiles |
private com.google.common.collect.ImmutableList<SourceMap.LocationMapping> |
sourceMapLocationMappings |
private int |
summaryDetailLevel |
private CompilerOptions.TracerMode |
tracerMode |
private boolean |
transformAMDToCJSModules |
private java.util.List<java.lang.String> |
tweak |
private CompilerOptions.TweakProcessing |
tweakProcessing |
private boolean |
useNewTypeInference |
private java.lang.String |
variableMapInputFile |
private java.lang.String |
variableMapOutputFile |
private java.util.ArrayList<AbstractCommandLineRunner.FlagEntry<CheckLevel>> |
warningGuards |
private java.lang.String |
warningsWhitelistFile |
Constructor and Description |
---|
CommandLineConfig() |
Modifier and Type | Method and Description |
---|---|
(package private) static CompilerOptions.DependencyMode |
depModeFromClosureDepOptions(boolean onlyClosureDependencies,
boolean manageClosureDependencies)
Helper method to convert the manage closure dependecy options to the new
DependencyMode enum value
|
(package private) static java.util.List<ModuleIdentifier> |
entryPointsFromClosureEntryPoints(java.util.List<java.lang.String> closureEntryPoints)
Helper method to convert a list of closure entry points a list of the new
ModuleIdentifier values
|
(package private) AbstractCommandLineRunner.CommandLineConfig |
setAngularPass(boolean angularPass)
Sets whether to process AngularJS-specific annotations.
|
(package private) AbstractCommandLineRunner.CommandLineConfig |
setCharset(java.lang.String charset)
Input charset for all files.
|
(package private) AbstractCommandLineRunner.CommandLineConfig |
setCodingConvention(CodingConvention codingConvention)
Sets rules and conventions to enforce.
|
(package private) AbstractCommandLineRunner.CommandLineConfig |
setCreateNameMapFiles(boolean createNameMapFiles)
If true, variable renaming and property renaming map
files will be produced as {binary name}_vars_map.out and
{binary name}_props_map.out.
|
(package private) AbstractCommandLineRunner.CommandLineConfig |
setCreateSourceMap(java.lang.String createSourceMap)
If specified, a source map file mapping the generated
source files back to the original source file will be
output to the specified path.
|
(package private) AbstractCommandLineRunner.CommandLineConfig |
setDefine(java.util.List<java.lang.String> define)
Override the value of a variable annotated @define.
|
(package private) AbstractCommandLineRunner.CommandLineConfig |
setDependencyMode(CompilerOptions.DependencyMode newVal)
Sets whether to sort files by their goog.provide/require deps,
and prune inputs that are not required.
|
(package private) AbstractCommandLineRunner.CommandLineConfig |
setEntryPoints(java.util.List<ModuleIdentifier> entryPoints)
Set module entry points, which makes the compiler only include
those files and sort them in dependency order.
|
(package private) AbstractCommandLineRunner.CommandLineConfig |
setExterns(java.util.List<java.lang.String> externs)
The file containing JavaScript externs.
|
(package private) AbstractCommandLineRunner.CommandLineConfig |
setHideWarningsFor(java.util.List<java.lang.String> hideWarningsFor)
Sets the paths for which warnings will be hidden.
|
(package private) AbstractCommandLineRunner.CommandLineConfig |
setInstrumentationTemplateFile(java.lang.String fileName) |
(package private) AbstractCommandLineRunner.CommandLineConfig |
setJs(java.util.List<java.lang.String> js)
The JavaScript filename.
|
(package private) AbstractCommandLineRunner.CommandLineConfig |
setJscompDevMode(CompilerOptions.DevMode jscompDevMode)
Turns on extra sanity checks
|
(package private) AbstractCommandLineRunner.CommandLineConfig |
setJsonStreamMode(CompilerOptions.JsonStreamMode mode) |
(package private) AbstractCommandLineRunner.CommandLineConfig |
setJsOutputFile(java.lang.String jsOutputFile)
Primary output filename.
|
(package private) AbstractCommandLineRunner.CommandLineConfig |
setJsZip(java.util.List<java.lang.String> zip)
The JavaScript zip filename.
|
(package private) AbstractCommandLineRunner.CommandLineConfig |
setLoggingLevel(java.lang.String loggingLevel)
The logging level (standard java.util.logging.Level
values) for Compiler progress.
|
(package private) AbstractCommandLineRunner.CommandLineConfig |
setManifestMaps(java.util.List<java.lang.String> manifestMaps)
Sets the execPath:rootRelativePath mappings
|
(package private) AbstractCommandLineRunner.CommandLineConfig |
setMixedJsSources(java.util.List<AbstractCommandLineRunner.FlagEntry<AbstractCommandLineRunner.JsSourceType>> mixedJsSources)
The JavaScript source file names, including .js and .zip files.
|
(package private) AbstractCommandLineRunner.CommandLineConfig |
setModule(java.util.List<java.lang.String> module)
A JavaScript module specification.
|
(package private) AbstractCommandLineRunner.CommandLineConfig |
setModuleOutputPathPrefix(java.lang.String moduleOutputPathPrefix)
Prefix for filenames of compiled JS modules.
|
(package private) AbstractCommandLineRunner.CommandLineConfig |
setModuleRoots(java.util.List<java.lang.String> jsModuleRoots)
Sets the module roots.
|
(package private) AbstractCommandLineRunner.CommandLineConfig |
setModuleWrapper(java.util.List<java.lang.String> moduleWrapper)
An output wrapper for a JavaScript module (optional).
|
(package private) AbstractCommandLineRunner.CommandLineConfig |
setNewTypeInference(boolean useNewTypeInference) |
(package private) AbstractCommandLineRunner.CommandLineConfig |
setOutputBundle(java.util.List<java.lang.String> outputBundles)
Sets whether to print output bundle files.
|
(package private) AbstractCommandLineRunner.CommandLineConfig |
setOutputManifest(java.util.List<java.lang.String> outputManifests)
Sets whether to print output manifest files.
|
(package private) AbstractCommandLineRunner.CommandLineConfig |
setOutputModuleDependencies(java.lang.String outputModuleDependencies)
Sets whether a JSON file representing the dependencies between modules
should be created.
|
(package private) AbstractCommandLineRunner.CommandLineConfig |
setOutputWrapper(java.lang.String outputWrapper)
Interpolate output into this string at the place denoted
by the marker token %output%, or %output|jsstring%
|
(package private) AbstractCommandLineRunner.CommandLineConfig |
setPrintAst(boolean printAst)
Prints a dot file describing the internal abstract syntax tree
and exits
|
(package private) AbstractCommandLineRunner.CommandLineConfig |
setPrintPassGraph(boolean printPassGraph)
Prints a dot file describing the passes that will get run and exits
|
(package private) AbstractCommandLineRunner.CommandLineConfig |
setPrintSourceAfterEachPass(boolean printSource) |
(package private) AbstractCommandLineRunner.CommandLineConfig |
setPrintTree(boolean printTree)
Prints out the parse tree and exits
|
(package private) AbstractCommandLineRunner.CommandLineConfig |
setProcessCommonJSModules(boolean processCommonJSModules)
Sets whether to process CommonJS modules.
|
(package private) AbstractCommandLineRunner.CommandLineConfig |
setPropertyMapInputFile(java.lang.String propertyMapInputFile)
File containing the serialized version of the property renaming
map produced by a previous compilation
|
(package private) AbstractCommandLineRunner.CommandLineConfig |
setPropertyMapOutputFile(java.lang.String propertyMapOutputFile)
File where the serialized version of the property renaming map
produced should be saved
|
(package private) AbstractCommandLineRunner.CommandLineConfig |
setSkipNormalOutputs(boolean skipNormalOutputs)
Sets whether the normal outputs of compilation should be skipped.
|
(package private) AbstractCommandLineRunner.CommandLineConfig |
setSourceMapDetailLevel(SourceMap.DetailLevel level)
The detail supplied in the source map file, if generated.
|
(package private) AbstractCommandLineRunner.CommandLineConfig |
setSourceMapFormat(SourceMap.Format format)
The source map format to use, if generated.
|
(package private) AbstractCommandLineRunner.CommandLineConfig |
setSourceMapInputFiles(java.util.Map<java.lang.String,java.lang.String> sourceMapInputFiles) |
(package private) AbstractCommandLineRunner.CommandLineConfig |
setSourceMapLocationMappings(java.util.List<SourceMap.LocationMapping> locationMappings)
The source map location mappings to use, if generated.
|
(package private) AbstractCommandLineRunner.CommandLineConfig |
setSummaryDetailLevel(int summaryDetailLevel)
Controls how detailed the compilation summary is.
|
(package private) AbstractCommandLineRunner.CommandLineConfig |
setTracerMode(CompilerOptions.TracerMode tracerMode) |
(package private) AbstractCommandLineRunner.CommandLineConfig |
setTransformAMDToCJSModules(boolean transformAMDToCJSModules)
Set whether to transform AMD to CommonJS modules.
|
(package private) AbstractCommandLineRunner.CommandLineConfig |
setTweak(java.util.List<java.lang.String> tweak)
Override the default value of a registered tweak.
|
(package private) AbstractCommandLineRunner.CommandLineConfig |
setTweakProcessing(CompilerOptions.TweakProcessing tweakProcessing)
Sets the kind of processing to do for goog.tweak functions.
|
(package private) AbstractCommandLineRunner.CommandLineConfig |
setVariableMapInputFile(java.lang.String variableMapInputFile)
File containing the serialized version of the variable renaming
map produced by a previous compilation
|
(package private) AbstractCommandLineRunner.CommandLineConfig |
setVariableMapOutputFile(java.lang.String variableMapOutputFile)
File where the serialized version of the variable renaming map
produced should be saved
|
(package private) AbstractCommandLineRunner.CommandLineConfig |
setWarningGuards(java.util.List<AbstractCommandLineRunner.FlagEntry<CheckLevel>> warningGuards)
Add warning guards.
|
(package private) AbstractCommandLineRunner.CommandLineConfig |
setWarningsWhitelistFile(java.lang.String fileName)
Sets a whitelist file that suppresses warnings.
|
private boolean printTree
private boolean printAst
private boolean printPassGraph
private CompilerOptions.DevMode jscompDevMode
private java.lang.String loggingLevel
private final java.util.List<java.lang.String> externs
private final java.util.List<java.lang.String> js
private final java.util.List<java.lang.String> jsZip
private final java.util.List<AbstractCommandLineRunner.FlagEntry<AbstractCommandLineRunner.JsSourceType>> mixedJsSources
private java.lang.String jsOutputFile
private final java.util.List<java.lang.String> module
private java.util.Map<java.lang.String,java.lang.String> sourceMapInputFiles
private java.lang.String variableMapInputFile
private java.lang.String propertyMapInputFile
private java.lang.String variableMapOutputFile
private boolean createNameMapFiles
private java.lang.String propertyMapOutputFile
private CodingConvention codingConvention
private int summaryDetailLevel
private java.lang.String outputWrapper
private final java.util.List<java.lang.String> moduleWrapper
private java.lang.String moduleOutputPathPrefix
private java.lang.String createSourceMap
private SourceMap.DetailLevel sourceMapDetailLevel
private SourceMap.Format sourceMapFormat
private com.google.common.collect.ImmutableList<SourceMap.LocationMapping> sourceMapLocationMappings
private java.util.ArrayList<AbstractCommandLineRunner.FlagEntry<CheckLevel>> warningGuards
private final java.util.List<java.lang.String> define
private final java.util.List<java.lang.String> tweak
private CompilerOptions.TweakProcessing tweakProcessing
private java.lang.String charset
private CompilerOptions.DependencyMode dependencyMode
private java.util.List<ModuleIdentifier> entryPoints
private java.util.List<java.lang.String> outputManifests
private java.lang.String outputModuleDependencies
private java.util.List<java.lang.String> outputBundles
private boolean skipNormalOutputs
private java.util.List<java.lang.String> manifestMaps
private boolean transformAMDToCJSModules
private boolean processCommonJSModules
private java.util.List<java.lang.String> moduleRoots
private java.lang.String warningsWhitelistFile
private java.util.List<java.lang.String> hideWarningsFor
private boolean angularPass
private CompilerOptions.TracerMode tracerMode
private boolean useNewTypeInference
private boolean printSourceAfterEachPass
private java.lang.String instrumentationTemplateFile
private CompilerOptions.JsonStreamMode jsonStreamMode
AbstractCommandLineRunner.CommandLineConfig setPrintTree(boolean printTree)
AbstractCommandLineRunner.CommandLineConfig setPrintAst(boolean printAst)
AbstractCommandLineRunner.CommandLineConfig setPrintPassGraph(boolean printPassGraph)
AbstractCommandLineRunner.CommandLineConfig setJscompDevMode(CompilerOptions.DevMode jscompDevMode)
AbstractCommandLineRunner.CommandLineConfig setLoggingLevel(java.lang.String loggingLevel)
AbstractCommandLineRunner.CommandLineConfig setExterns(java.util.List<java.lang.String> externs)
AbstractCommandLineRunner.CommandLineConfig setJs(java.util.List<java.lang.String> js)
AbstractCommandLineRunner.CommandLineConfig setJsZip(java.util.List<java.lang.String> zip)
AbstractCommandLineRunner.CommandLineConfig setMixedJsSources(java.util.List<AbstractCommandLineRunner.FlagEntry<AbstractCommandLineRunner.JsSourceType>> mixedJsSources)
AbstractCommandLineRunner.CommandLineConfig setJsOutputFile(java.lang.String jsOutputFile)
AbstractCommandLineRunner.CommandLineConfig setModule(java.util.List<java.lang.String> module)
AbstractCommandLineRunner.CommandLineConfig setSourceMapInputFiles(java.util.Map<java.lang.String,java.lang.String> sourceMapInputFiles)
AbstractCommandLineRunner.CommandLineConfig setVariableMapInputFile(java.lang.String variableMapInputFile)
AbstractCommandLineRunner.CommandLineConfig setPropertyMapInputFile(java.lang.String propertyMapInputFile)
AbstractCommandLineRunner.CommandLineConfig setVariableMapOutputFile(java.lang.String variableMapOutputFile)
AbstractCommandLineRunner.CommandLineConfig setCreateNameMapFiles(boolean createNameMapFiles)
AbstractCommandLineRunner.CommandLineConfig setPropertyMapOutputFile(java.lang.String propertyMapOutputFile)
AbstractCommandLineRunner.CommandLineConfig setCodingConvention(CodingConvention codingConvention)
AbstractCommandLineRunner.CommandLineConfig setSummaryDetailLevel(int summaryDetailLevel)
AbstractCommandLineRunner.CommandLineConfig setOutputWrapper(java.lang.String outputWrapper)
AbstractCommandLineRunner.CommandLineConfig setModuleWrapper(java.util.List<java.lang.String> moduleWrapper)
AbstractCommandLineRunner.CommandLineConfig setModuleOutputPathPrefix(java.lang.String moduleOutputPathPrefix)
AbstractCommandLineRunner.CommandLineConfig setCreateSourceMap(java.lang.String createSourceMap)
AbstractCommandLineRunner.CommandLineConfig setSourceMapDetailLevel(SourceMap.DetailLevel level)
AbstractCommandLineRunner.CommandLineConfig setSourceMapFormat(SourceMap.Format format)
AbstractCommandLineRunner.CommandLineConfig setSourceMapLocationMappings(java.util.List<SourceMap.LocationMapping> locationMappings)
AbstractCommandLineRunner.CommandLineConfig setWarningGuards(java.util.List<AbstractCommandLineRunner.FlagEntry<CheckLevel>> warningGuards)
AbstractCommandLineRunner.CommandLineConfig setDefine(java.util.List<java.lang.String> define)
AbstractCommandLineRunner.CommandLineConfig setTweak(java.util.List<java.lang.String> tweak)
AbstractCommandLineRunner.CommandLineConfig setTweakProcessing(CompilerOptions.TweakProcessing tweakProcessing)
AbstractCommandLineRunner.CommandLineConfig setCharset(java.lang.String charset)
AbstractCommandLineRunner.CommandLineConfig setDependencyMode(CompilerOptions.DependencyMode newVal)
AbstractCommandLineRunner.CommandLineConfig setEntryPoints(java.util.List<ModuleIdentifier> entryPoints)
static CompilerOptions.DependencyMode depModeFromClosureDepOptions(boolean onlyClosureDependencies, boolean manageClosureDependencies)
static java.util.List<ModuleIdentifier> entryPointsFromClosureEntryPoints(java.util.List<java.lang.String> closureEntryPoints)
AbstractCommandLineRunner.CommandLineConfig setOutputManifest(java.util.List<java.lang.String> outputManifests)
AbstractCommandLineRunner.CommandLineConfig setOutputModuleDependencies(java.lang.String outputModuleDependencies)
AbstractCommandLineRunner.CommandLineConfig setOutputBundle(java.util.List<java.lang.String> outputBundles)
AbstractCommandLineRunner.CommandLineConfig setSkipNormalOutputs(boolean skipNormalOutputs)
AbstractCommandLineRunner.CommandLineConfig setManifestMaps(java.util.List<java.lang.String> manifestMaps)
AbstractCommandLineRunner.CommandLineConfig setTransformAMDToCJSModules(boolean transformAMDToCJSModules)
AbstractCommandLineRunner.CommandLineConfig setProcessCommonJSModules(boolean processCommonJSModules)
AbstractCommandLineRunner.CommandLineConfig setModuleRoots(java.util.List<java.lang.String> jsModuleRoots)
AbstractCommandLineRunner.CommandLineConfig setWarningsWhitelistFile(java.lang.String fileName)
AbstractCommandLineRunner.CommandLineConfig setHideWarningsFor(java.util.List<java.lang.String> hideWarningsFor)
AbstractCommandLineRunner.CommandLineConfig setAngularPass(boolean angularPass)
AbstractCommandLineRunner.CommandLineConfig setTracerMode(CompilerOptions.TracerMode tracerMode)
AbstractCommandLineRunner.CommandLineConfig setNewTypeInference(boolean useNewTypeInference)
AbstractCommandLineRunner.CommandLineConfig setPrintSourceAfterEachPass(boolean printSource)
AbstractCommandLineRunner.CommandLineConfig setInstrumentationTemplateFile(java.lang.String fileName)
AbstractCommandLineRunner.CommandLineConfig setJsonStreamMode(CompilerOptions.JsonStreamMode mode)