
public class JJSOptionsImpl extends Object implements JJSOptions, Serializable
OptionMethodNameDisplayMode.ModeOPTIMIZE_LEVEL_DEFAULT, OPTIMIZE_LEVEL_DRAFT, OPTIMIZE_LEVEL_MAX| Constructor and Description |
|---|
JJSOptionsImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
copyFrom(JJSOptions other) |
int |
getFragmentCount() |
int |
getFragmentsMerge() |
WhitelistRegexFilter |
getJsInteropExportFilter() |
OptionMethodNameDisplayMode.Mode |
getMethodNameDisplayMode() |
JsNamespaceOption |
getNamespace() |
int |
getOptimizationLevel()
Returns the compiler's requested optimization level.
|
JsOutputOption |
getOutput()
Returns the compiler output style.
|
SourceLevel |
getSourceLevel() |
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 |
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.
|
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 |
setEnableAssertions(boolean enabled)
Sets whether or not the compiler should generate code to check assertions.
|
void |
setFragmentCount(int numFragments) |
void |
setFragmentsMerge(int numFragments) |
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 |
setMethodNameDisplayMode(OptionMethodNameDisplayMode.Mode methodNameDisplayMode) |
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 |
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 |
setSourceLevel(SourceLevel sourceLevel) |
void |
setSoycEnabled(boolean enabled)
Sets whether or not the compiler should gather Story Of Your Compile data.
|
void |
setSoycExtra(boolean enabled)
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 enabled)
Sets whether or not the compiler should strictly fail when any input file has compilation
errors.
|
void |
setUseDetailedTypeIds(boolean enabled)
Sets whether or not type ids should be detailed.
|
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 |
useDetailedTypeIds()
Whether type ids in the compilation output should be detailed.
|
public void copyFrom(JJSOptions other)
public int getFragmentCount()
getFragmentCount in interface OptionFragmentCountpublic int getFragmentsMerge()
getFragmentsMerge in interface OptionFragmentsMergepublic 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 SourceLevel getSourceLevel()
getSourceLevel in interface OptionSourceLevelpublic boolean isClassMetadataDisabled()
isClassMetadataDisabled in interface OptionDisableClassMetadatapublic boolean isCompilerMetricsEnabled()
OptionCompilerMetricsEnabledisCompilerMetricsEnabled in interface OptionCompilerMetricsEnabledpublic boolean isDraftCompile()
public boolean isEnableAssertions()
OptionEnableAssertionsisEnableAssertions in interface OptionEnableAssertionspublic 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 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 setIncrementalCompileEnabled(boolean enabled)
OptionIncrementalCompilesetIncrementalCompileEnabled in interface OptionIncrementalCompilepublic void setCompilerMetricsEnabled(boolean enabled)
OptionCompilerMetricsEnabledsetCompilerMetricsEnabled in interface OptionCompilerMetricsEnabledpublic void setEnableAssertions(boolean enabled)
OptionEnableAssertionssetEnableAssertions in interface OptionEnableAssertionspublic void setFragmentCount(int numFragments)
setFragmentCount in interface OptionFragmentCountpublic void setFragmentsMerge(int numFragments)
setFragmentsMerge in interface OptionFragmentsMergepublic void setInlineLiteralParameters(boolean enabled)
OptionInlineLiteralParameterssetInlineLiteralParameters in interface OptionInlineLiteralParameterspublic 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 setRunAsyncEnabled(boolean enabled)
OptionRunAsyncEnabledsetRunAsyncEnabled in interface OptionRunAsyncEnabledpublic void setSourceLevel(SourceLevel sourceLevel)
setSourceLevel in interface OptionSourceLevelpublic void setSoycEnabled(boolean enabled)
OptionSoycEnabledsetSoycEnabled in interface OptionSoycEnabledpublic void setSoycExtra(boolean enabled)
OptionSoycDetailedsetSoycExtra in interface OptionSoycDetailedpublic void setSoycHtmlDisabled(boolean disabled)
OptionSoycHtmlDisabledsetSoycHtmlDisabled in interface OptionSoycHtmlDisabledpublic void setStrict(boolean enabled)
OptionStrictsetStrict in interface OptionStrictpublic void setUseDetailedTypeIds(boolean enabled)
OptionUseDetailedTypeIdssetUseDetailedTypeIds in interface OptionUseDetailedTypeIdspublic boolean shouldAddRuntimeChecks()
shouldAddRuntimeChecks in interface OptionCheckedModepublic boolean shouldClusterSimilarFunctions()
OptionClusterSimilarFunctionsshouldClusterSimilarFunctions in interface OptionClusterSimilarFunctionspublic boolean isIncrementalCompileEnabled()
OptionIncrementalCompileisIncrementalCompileEnabled in interface OptionIncrementalCompilepublic 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 shouldGenerateJsInteropExports()
shouldGenerateJsInteropExports in interface OptionGenerateJsInteropExportspublic void setGenerateJsInteropExports(boolean generateExports)
setGenerateJsInteropExports in interface OptionGenerateJsInteropExportspublic WhitelistRegexFilter getJsInteropExportFilter()
getJsInteropExportFilter in interface OptionGenerateJsInteropExportspublic boolean useDetailedTypeIds()
OptionUseDetailedTypeIdsuseDetailedTypeIds in interface OptionUseDetailedTypeIdspublic boolean isClosureCompilerFormatEnabled()
isClosureCompilerFormatEnabled in interface OptionClosureFormattedOutputpublic void setClosureCompilerFormatEnabled(boolean enabled)
setClosureCompilerFormatEnabled in interface OptionClosureFormattedOutputCopyright © 2018. All rights reserved.