
public class PrecompileTaskOptionsImpl extends Object implements PrecompileTaskOptions
OptionMethodNameDisplayMode.ModeOPTIMIZE_LEVEL_DEFAULT, OPTIMIZE_LEVEL_DRAFT, OPTIMIZE_LEVEL_MAX| Constructor and Description |
|---|
PrecompileTaskOptionsImpl() |
PrecompileTaskOptionsImpl(CompileTaskOptions other) |
PrecompileTaskOptionsImpl(JJSOptions other) |
PrecompileTaskOptionsImpl(PrecompileTaskOptions other) |
| Modifier and Type | Method and Description |
|---|---|
void |
addModuleName(String moduleName)
Sets the name of the module.
|
void |
copyFrom(CompileTaskOptions other) |
void |
copyFrom(JJSOptions other) |
void |
copyFrom(PrecompileTaskOptions other) |
File |
getCompilerWorkDir(String moduleName) |
Properties |
getFinalProperties()
Returns the final properties.
|
int |
getFragmentCount() |
int |
getFragmentsMerge() |
File |
getGenDir()
Returns the generated resource directory.
|
WhitelistRegexFilter |
getJsInteropExportFilter() |
TreeLogger.Type |
getLogLevel()
Returns the tree logger level.
|
OptionMethodNameDisplayMode.Mode |
getMethodNameDisplayMode() |
List<String> |
getModuleNames()
Returns the list of module names.
|
JsNamespaceOption |
getNamespace() |
int |
getOptimizationLevel()
Returns the compiler's requested optimization level.
|
JsOutputOption |
getOutput()
Returns the compiler output style.
|
com.google.gwt.thirdparty.guava.common.collect.ListMultimap<String,String> |
getProperties()
Return all properties ({name->values} pairs).
|
SourceLevel |
getSourceLevel() |
String |
getSourceMapFilePrefix()
Returns the prefix to be added (or null for no prefix).
|
File |
getWorkDir()
Returns the compiler work directory.
|
boolean |
isClassMetadataDisabled() |
boolean |
isClosureCompilerFormatEnabled() |
boolean |
isCompilerMetricsEnabled()
Returns true if the compiler should output compilation metrics.
|
boolean |
isDraftCompile() |
boolean |
isEnableAssertions()
Returns true if the compiler should generate code to check assertions.
|
boolean |
isEnabledGeneratingOnShards()
Returns
true if generation is allowed to happen on shards. |
boolean |
isIncrementalCompileEnabled()
Whether monolithic recompiles should process only changed files and construct JS output by
linking old and new JS on a per class basis.
|
boolean |
isJsonSoycEnabled()
Returns true if the compiler should record and emit Compile Report information in json format.
|
boolean |
isRunAsyncEnabled()
Returns true if the compiler should code-split at runAsync boundaries.
|
boolean |
isSoycEnabled()
Returns true if the compiler should gather Story Of Your Compile data.
|
boolean |
isSoycExtra()
Returns true if the compiler should record and emit extra Compile Report information.
|
boolean |
isSoycHtmlDisabled()
Returns false if the compiler should produce HTML SOYC compile reports in
addition to XML reports.
|
boolean |
isStrict()
Returns true if the compiler should strictly fail when any input file has compilation errors.
|
boolean |
isUpdateCheckDisabled()
Check to see if update checks are disabled.
|
boolean |
isValidateOnly()
Returns true the compiler should only validate.
|
void |
setAddRuntimeChecks(boolean enabled) |
void |
setClassMetadataDisabled(boolean disabled) |
void |
setClosureCompilerFormatEnabled(boolean enabled) |
void |
setClusterSimilarFunctions(boolean enabled)
Sets whether or not the compiler should cluster similar functions.
|
void |
setCompilerMetricsEnabled(boolean enabled)
Sets whether or not the compiler should output compilation metrics.
|
void |
setDisableUpdateCheck(boolean disabled)
Sets the disable update check flag.
|
void |
setEnableAssertions(boolean enableAssertions)
Sets whether or not the compiler should generate code to check assertions.
|
void |
setEnabledGeneratingOnShards(boolean enabled)
Sets whether generation may happen on shards.
|
void |
setFinalProperties(Properties finalProperties)
Sets the list of paths to input libraries.
|
void |
setFragmentCount(int numFragments) |
void |
setFragmentsMerge(int numFragments) |
void |
setGenDir(File genDir)
Sets the generated resource directory.
|
void |
setGenerateJsInteropExports(boolean generateExports) |
void |
setIncrementalCompileEnabled(boolean enabled)
Sets whether or not monolithic recompiles should process only changed files.
|
void |
setInlineLiteralParameters(boolean enabled)
Sets whether or not the compiler should inline literal parameters.
|
void |
setJsonSoycEnabled(boolean enabled)
Sets whether or not the compiler should record and emit Compile Report information in json
format.
|
void |
setLogLevel(TreeLogger.Type logLevel)
Sets the tree logger level.
|
void |
setMethodNameDisplayMode(OptionMethodNameDisplayMode.Mode methodNameDisplayMode) |
void |
setModuleNames(List<String> moduleNames)
Sets the list of module names.
|
void |
setNamespace(JsNamespaceOption newValue) |
void |
setOptimizationLevel(int level)
Sets the compiler's requested optimization level.
|
void |
setOptimizeDataflow(boolean enabled)
Sets whether or not the compiler should optimize dataflow.
|
void |
setOrdinalizeEnums(boolean enabled)
Sets whether or not the compiler should ordinalize enums.
|
void |
setOutput(JsOutputOption output)
Sets the compiler output style.
|
void |
setPropertyValues(String name,
Iterable<String> values)
Set the value of property
name to be values. |
void |
setRemoveDuplicateFunctions(boolean enabled)
Sets whether or not the compiler should remove duplicate functions.
|
void |
setRunAsyncEnabled(boolean enabled)
Sets whether or not the compiler should code-split at runAsync boundaries.
|
void |
setSaveSource(boolean enabled)
If set to true and sourcemaps are on, source code will be saved.
|
void |
setSourceLevel(SourceLevel sourceLevel) |
void |
setSourceMapFilePrefix(String path)
Sets the prefix.
|
void |
setSoycEnabled(boolean enabled)
Sets whether or not the compiler should gather Story Of Your Compile data.
|
void |
setSoycExtra(boolean soycExtra)
Sets whether or not the compiler should record and emit extra Compile Report
information.
|
void |
setSoycHtmlDisabled(boolean disabled)
Sets whether or not the compiler should produce HTML compile reports in
addition to SOYC XML output.
|
void |
setStrict(boolean strict)
Sets whether or not the compiler should strictly fail when any input file has compilation
errors.
|
void |
setUseDetailedTypeIds(boolean detailed)
Sets whether or not type ids should be detailed.
|
void |
setValidateOnly(boolean validateOnly)
Sets whether or not the compiler should only validate.
|
void |
setWorkDir(File workDir)
Sets the compiler work directory.
|
boolean |
shouldAddRuntimeChecks() |
boolean |
shouldClusterSimilarFunctions()
Returns true if the compiler should cluster similar functions.
|
boolean |
shouldGenerateJsInteropExports() |
boolean |
shouldInlineLiteralParameters()
Returns true if the compiler should inline literal parameters.
|
boolean |
shouldJDTInlineCompileTimeConstants()
Whether constant inlining is done at the AST construction time or not.
|
boolean |
shouldOptimizeDataflow()
Returns true if the compiler should optimize dataflow.
|
boolean |
shouldOrdinalizeEnums()
Returns true if the compiler should ordinalize enums.
|
boolean |
shouldRemoveDuplicateFunctions()
Returns true if the compiler should remove duplicate functions.
|
boolean |
shouldSaveSource()
Returns false if source code should not be saved.
|
boolean |
useDetailedTypeIds()
Whether type ids in the compilation output should be detailed.
|
addModuleName, getModuleNames, setModuleNamesgetLogLevel, setLogLevelgetWorkDir, setWorkDirgetFinalProperties, setFinalPropertiespublic PrecompileTaskOptionsImpl()
public PrecompileTaskOptionsImpl(CompileTaskOptions other)
public PrecompileTaskOptionsImpl(JJSOptions other)
public PrecompileTaskOptionsImpl(PrecompileTaskOptions other)
public void copyFrom(JJSOptions other)
public void copyFrom(PrecompileTaskOptions other)
public int getFragmentCount()
getFragmentCount in interface OptionFragmentCountpublic int getFragmentsMerge()
getFragmentsMerge in interface OptionFragmentsMergepublic File getGenDir()
OptionGenDirgetGenDir in interface OptionGenDirpublic boolean shouldGenerateJsInteropExports()
shouldGenerateJsInteropExports in interface OptionGenerateJsInteropExportspublic WhitelistRegexFilter getJsInteropExportFilter()
getJsInteropExportFilter in interface OptionGenerateJsInteropExportspublic OptionMethodNameDisplayMode.Mode getMethodNameDisplayMode()
getMethodNameDisplayMode in interface OptionMethodNameDisplayModepublic JsNamespaceOption getNamespace()
getNamespace in interface OptionNamespacepublic int getOptimizationLevel()
OptionOptimizegetOptimizationLevel in interface OptionOptimizepublic JsOutputOption getOutput()
OptionScriptStylegetOutput in interface OptionScriptStylepublic com.google.gwt.thirdparty.guava.common.collect.ListMultimap<String,String> getProperties()
OptionSetPropertiesgetProperties in interface OptionSetPropertiespublic SourceLevel getSourceLevel()
getSourceLevel in interface OptionSourceLevelpublic String getSourceMapFilePrefix()
OptionSourceMapFilePrefixgetSourceMapFilePrefix in interface OptionSourceMapFilePrefixpublic boolean isClassMetadataDisabled()
isClassMetadataDisabled in interface OptionDisableClassMetadatapublic boolean isCompilerMetricsEnabled()
OptionCompilerMetricsEnabledisCompilerMetricsEnabled in interface OptionCompilerMetricsEnabledpublic boolean isDraftCompile()
public boolean isEnableAssertions()
OptionEnableAssertionsisEnableAssertions in interface OptionEnableAssertionspublic boolean isEnabledGeneratingOnShards()
OptionEnableGeneratingOnShardstrue if generation is allowed to happen on shards.isEnabledGeneratingOnShards in interface OptionEnableGeneratingOnShardspublic boolean isIncrementalCompileEnabled()
OptionIncrementalCompileisIncrementalCompileEnabled in interface OptionIncrementalCompilepublic boolean isJsonSoycEnabled()
OptionJsonSoycEnabledisJsonSoycEnabled in interface OptionJsonSoycEnabledpublic boolean isRunAsyncEnabled()
OptionRunAsyncEnabledisRunAsyncEnabled in interface OptionRunAsyncEnabledpublic boolean isSoycEnabled()
OptionSoycEnabledisSoycEnabled in interface OptionSoycEnabledpublic boolean isSoycExtra()
OptionSoycDetailedisSoycExtra in interface OptionSoycDetailedpublic boolean isSoycHtmlDisabled()
OptionSoycHtmlDisabledisSoycHtmlDisabled in interface OptionSoycHtmlDisabledpublic boolean isStrict()
OptionStrictisStrict in interface OptionStrictpublic boolean isUpdateCheckDisabled()
OptionDisableUpdateCheckisUpdateCheckDisabled in interface OptionDisableUpdateCheckpublic boolean isValidateOnly()
OptionValidateOnlyisValidateOnly in interface OptionValidateOnlypublic void setAddRuntimeChecks(boolean enabled)
setAddRuntimeChecks in interface OptionCheckedModepublic void setClassMetadataDisabled(boolean disabled)
setClassMetadataDisabled in interface OptionDisableClassMetadatapublic void setClusterSimilarFunctions(boolean enabled)
OptionClusterSimilarFunctionssetClusterSimilarFunctions in interface OptionClusterSimilarFunctionspublic void setCompilerMetricsEnabled(boolean enabled)
OptionCompilerMetricsEnabledsetCompilerMetricsEnabled in interface OptionCompilerMetricsEnabledpublic void setDisableUpdateCheck(boolean disabled)
OptionDisableUpdateChecksetDisableUpdateCheck in interface OptionDisableUpdateCheckpublic void setEnableAssertions(boolean enableAssertions)
OptionEnableAssertionssetEnableAssertions in interface OptionEnableAssertionspublic void setEnabledGeneratingOnShards(boolean enabled)
OptionEnableGeneratingOnShardssetEnabledGeneratingOnShards in interface OptionEnableGeneratingOnShardspublic void setFragmentCount(int numFragments)
setFragmentCount in interface OptionFragmentCountpublic void setFragmentsMerge(int numFragments)
setFragmentsMerge in interface OptionFragmentsMergepublic void setGenDir(File genDir)
OptionGenDirsetGenDir in interface OptionGenDirpublic void setIncrementalCompileEnabled(boolean enabled)
OptionIncrementalCompilesetIncrementalCompileEnabled in interface OptionIncrementalCompilepublic void setInlineLiteralParameters(boolean enabled)
OptionInlineLiteralParameterssetInlineLiteralParameters in interface OptionInlineLiteralParameterspublic void setGenerateJsInteropExports(boolean generateExports)
setGenerateJsInteropExports in interface OptionGenerateJsInteropExportspublic void setJsonSoycEnabled(boolean enabled)
OptionJsonSoycEnabledsetJsonSoycEnabled in interface OptionJsonSoycEnabledpublic void setMethodNameDisplayMode(OptionMethodNameDisplayMode.Mode methodNameDisplayMode)
setMethodNameDisplayMode in interface OptionMethodNameDisplayModepublic void setNamespace(JsNamespaceOption newValue)
setNamespace in interface OptionNamespacepublic void setOptimizationLevel(int level)
OptionOptimizesetOptimizationLevel in interface OptionOptimizepublic void setOptimizeDataflow(boolean enabled)
OptionOptimizeDataflowsetOptimizeDataflow in interface OptionOptimizeDataflowpublic void setOrdinalizeEnums(boolean enabled)
OptionOrdinalizeEnumssetOrdinalizeEnums in interface OptionOrdinalizeEnumspublic void setOutput(JsOutputOption output)
OptionScriptStylesetOutput in interface OptionScriptStylepublic void setRemoveDuplicateFunctions(boolean enabled)
OptionRemoveDuplicateFunctionssetRemoveDuplicateFunctions in interface OptionRemoveDuplicateFunctionspublic void setPropertyValues(String name, Iterable<String> values)
OptionSetPropertiesname to be values.setPropertyValues in interface OptionSetPropertiespublic void setRunAsyncEnabled(boolean enabled)
OptionRunAsyncEnabledsetRunAsyncEnabled in interface OptionRunAsyncEnabledpublic void setSaveSource(boolean enabled)
OptionSaveSourcesetSaveSource in interface OptionSaveSourcepublic void setSourceLevel(SourceLevel sourceLevel)
setSourceLevel in interface OptionSourceLevelpublic void setSourceMapFilePrefix(String path)
OptionSourceMapFilePrefixsetSourceMapFilePrefix in interface OptionSourceMapFilePrefixpublic void setSoycEnabled(boolean enabled)
OptionSoycEnabledsetSoycEnabled in interface OptionSoycEnabledpublic void setSoycExtra(boolean soycExtra)
OptionSoycDetailedsetSoycExtra in interface OptionSoycDetailedpublic void setSoycHtmlDisabled(boolean disabled)
OptionSoycHtmlDisabledsetSoycHtmlDisabled in interface OptionSoycHtmlDisabledpublic void setStrict(boolean strict)
OptionStrictsetStrict in interface OptionStrictpublic void setUseDetailedTypeIds(boolean detailed)
OptionUseDetailedTypeIdssetUseDetailedTypeIds in interface OptionUseDetailedTypeIdspublic void setValidateOnly(boolean validateOnly)
OptionValidateOnlysetValidateOnly in interface OptionValidateOnlypublic boolean shouldAddRuntimeChecks()
shouldAddRuntimeChecks in interface OptionCheckedModepublic boolean shouldClusterSimilarFunctions()
OptionClusterSimilarFunctionsshouldClusterSimilarFunctions in interface OptionClusterSimilarFunctionspublic boolean shouldInlineLiteralParameters()
OptionInlineLiteralParametersshouldInlineLiteralParameters in interface OptionInlineLiteralParameterspublic boolean shouldJDTInlineCompileTimeConstants()
OptionAllowJDTConstantInliningshouldJDTInlineCompileTimeConstants in interface OptionAllowJDTConstantInliningpublic boolean shouldOptimizeDataflow()
OptionOptimizeDataflowshouldOptimizeDataflow in interface OptionOptimizeDataflowpublic boolean shouldOrdinalizeEnums()
OptionOrdinalizeEnumsshouldOrdinalizeEnums in interface OptionOrdinalizeEnumspublic boolean shouldRemoveDuplicateFunctions()
OptionRemoveDuplicateFunctionsshouldRemoveDuplicateFunctions in interface OptionRemoveDuplicateFunctionspublic boolean shouldSaveSource()
OptionSaveSourceshouldSaveSource in interface OptionSaveSourcepublic boolean useDetailedTypeIds()
OptionUseDetailedTypeIdsuseDetailedTypeIds in interface OptionUseDetailedTypeIdspublic boolean isClosureCompilerFormatEnabled()
isClosureCompilerFormatEnabled in interface OptionClosureFormattedOutputpublic void setClosureCompilerFormatEnabled(boolean enabled)
setClosureCompilerFormatEnabled in interface OptionClosureFormattedOutputpublic void addModuleName(String moduleName)
OptionModuleNameaddModuleName in interface OptionModuleNamepublic void copyFrom(CompileTaskOptions other)
public Properties getFinalProperties()
OptionFinalPropertiesgetFinalProperties in interface OptionFinalPropertiespublic TreeLogger.Type getLogLevel()
OptionLogLevelgetLogLevel in interface OptionLogLevelpublic List<String> getModuleNames()
OptionModuleNamegetModuleNames in interface OptionModuleNamepublic File getWorkDir()
OptionWorkDirgetWorkDir in interface OptionWorkDirpublic void setFinalProperties(Properties finalProperties)
OptionFinalPropertiessetFinalProperties in interface OptionFinalPropertiespublic void setLogLevel(TreeLogger.Type logLevel)
OptionLogLevelsetLogLevel in interface OptionLogLevelpublic void setModuleNames(List<String> moduleNames)
OptionModuleNamesetModuleNames in interface OptionModuleNamepublic void setWorkDir(File workDir)
OptionWorkDirsetWorkDir in interface OptionWorkDirCopyright © 2018. All rights reserved.