Class GwtCompileOptionsImpl
- java.lang.Object
-
- org.docstr.gradle.plugins.gwt.internal.GwtCompileOptionsImpl
-
- All Implemented Interfaces:
GwtCompileOptions
public class GwtCompileOptionsImpl extends java.lang.Object implements GwtCompileOptions
Default implementation ofGwtCompileOptions.
-
-
Constructor Summary
Constructors Constructor Description GwtCompileOptionsImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.BooleangetClosureFormattedOutput()java.lang.BooleangetCompileReport()java.lang.BooleangetCompilerMetrics()java.lang.BooleangetDisableAggressiveOptimization()java.lang.BooleangetDisableCastChecking()java.lang.BooleangetDisableClassMetadata()java.lang.BooleangetDisableGeneratingOnShards()java.lang.BooleangetDisableRunAsync()java.lang.BooleangetDisableSoycHtml()java.lang.BooleangetDraftCompile()java.lang.BooleangetEa()java.lang.BooleangetEnforceStrictResources()java.lang.IntegergetFragmentCount()java.lang.BooleangetIncrementalCompileWarnings()java.lang.IntegergetLocalWorkers()java.io.FilegetMissingDepsFile()NamespacegetNamespace()java.lang.IntegergetOptimize()java.lang.BooleangetOverlappingSourceWarnings()java.lang.BooleangetSaveSource()java.io.FilegetSaveSourceOutput()java.lang.BooleangetSoycDetailed()java.lang.BooleangetStrict()StylegetStyle()java.lang.BooleangetValidateOnly()voidsetClosureFormattedOutput(java.lang.Boolean closureFormattedOutput)If set to true, this adds the parameter -XclosureFormattedOutput.voidsetCompileReport(java.lang.Boolean compileReport)If set to true, this adds the "-compileReport" flag.voidsetCompilerMetrics(java.lang.Boolean compilerMetrics)If set to true, this adds the "-XcompilerMetrics" flag.voidsetDisableAggressiveOptimization(java.lang.Boolean disableAggressiveOptimization)If set to true, this adds the "-XdisableAggressiveOptimization" flag.voidsetDisableCastChecking(java.lang.Boolean disableCastChecking)If set to true, this adds the "-XdisableCastChecking" flag.voidsetDisableClassMetadata(java.lang.Boolean disableClassMetadata)If set to true, this adds the "-XdisableClassMetadata" flag.voidsetDisableGeneratingOnShards(java.lang.Boolean disableGeneratingOnShards)If set to true, this adds the "-XdisableGeneratingOnShards" flag.voidsetDisableRunAsync(java.lang.Boolean disableRunAsync)If set to true, this adds the "-XdisableRunAsync" flag.voidsetDisableSoycHtml(java.lang.Boolean disableSoycHtml)If set to true, this adds the "-XdisableSoycHtml" flag.voidsetDraftCompile(java.lang.Boolean draftCompile)If set to true, this adds the "-draftCompile" flag.voidsetEa(java.lang.Boolean ea)If set to true, this adds the "-ea" (enable assertions) flag.voidsetEnforceStrictResources(java.lang.Boolean enforceStrictResources)voidsetFragmentCount(java.lang.Integer fragmentCount)Sets the "-XfragmentCount" option.voidsetIncrementalCompileWarnings(java.lang.Boolean incrementalCompileWarnings)voidsetLocalWorkers(java.lang.Integer localWorkers)Sets the "-localWorkers" option.voidsetMissingDepsFile(java.io.File missingDepsFile)voidsetNamespace(Namespace namespace)voidsetOptimize(java.lang.Integer optimize)Sets the "-optimize" option.voidsetOverlappingSourceWarnings(java.lang.Boolean overlappingSourceWarnings)voidsetSaveSource(java.lang.Boolean saveSource)voidsetSaveSourceOutput(java.io.File saveSourceOutput)voidsetSoycDetailed(java.lang.Boolean soycDetailed)If set to true, this adds the "-XsoycDetailed" flag.voidsetStrict(java.lang.Boolean strict)If set to true, this adds the "-strict" flag.voidsetStyle(Style style)Sets the "-style" option.voidsetValidateOnly(java.lang.Boolean validateOnly)If set to true, this adds the "-validateOnly" flag.
-
-
-
Method Detail
-
getLocalWorkers
public java.lang.Integer getLocalWorkers()
- Specified by:
getLocalWorkersin interfaceGwtCompileOptions
-
setLocalWorkers
public void setLocalWorkers(java.lang.Integer localWorkers)
Sets the "-localWorkers" option.- Specified by:
setLocalWorkersin interfaceGwtCompileOptions- Parameters:
localWorkers- Whether to add the "-localWorkers" option.
-
getDraftCompile
public java.lang.Boolean getDraftCompile()
- Specified by:
getDraftCompilein interfaceGwtCompileOptions
-
setDraftCompile
public void setDraftCompile(java.lang.Boolean draftCompile)
If set to true, this adds the "-draftCompile" flag.- Specified by:
setDraftCompilein interfaceGwtCompileOptions- Parameters:
draftCompile- Whether to add the "-draftCompile" flag.
-
getCompileReport
public java.lang.Boolean getCompileReport()
- Specified by:
getCompileReportin interfaceGwtCompileOptions
-
setCompileReport
public void setCompileReport(java.lang.Boolean compileReport)
If set to true, this adds the "-compileReport" flag.- Specified by:
setCompileReportin interfaceGwtCompileOptions- Parameters:
compileReport- Whether to add the "-compileReport" flag.
-
getCompilerMetrics
public java.lang.Boolean getCompilerMetrics()
- Specified by:
getCompilerMetricsin interfaceGwtCompileOptions
-
setCompilerMetrics
public void setCompilerMetrics(java.lang.Boolean compilerMetrics)
If set to true, this adds the "-XcompilerMetrics" flag.- Specified by:
setCompilerMetricsin interfaceGwtCompileOptions- Parameters:
compilerMetrics- Whether to add the "-XcompilerMetrics" flag.
-
getValidateOnly
public java.lang.Boolean getValidateOnly()
- Specified by:
getValidateOnlyin interfaceGwtCompileOptions
-
setValidateOnly
public void setValidateOnly(java.lang.Boolean validateOnly)
If set to true, this adds the "-validateOnly" flag.- Specified by:
setValidateOnlyin interfaceGwtCompileOptions- Parameters:
validateOnly- Whether to add the "-validateOnly" flag.
-
getDisableGeneratingOnShards
public java.lang.Boolean getDisableGeneratingOnShards()
- Specified by:
getDisableGeneratingOnShardsin interfaceGwtCompileOptions
-
setDisableGeneratingOnShards
public void setDisableGeneratingOnShards(java.lang.Boolean disableGeneratingOnShards)
If set to true, this adds the "-XdisableGeneratingOnShards" flag.- Specified by:
setDisableGeneratingOnShardsin interfaceGwtCompileOptions- Parameters:
disableGeneratingOnShards- Whether to add the "-XdisableGeneratingOnShards" flag.
-
getOptimize
public java.lang.Integer getOptimize()
- Specified by:
getOptimizein interfaceGwtCompileOptions
-
setOptimize
public void setOptimize(java.lang.Integer optimize)
Sets the "-optimize" option.- Specified by:
setOptimizein interfaceGwtCompileOptions- Parameters:
optimize- the optimization level to set. Valid values are in the interval [0, 9].
-
getDisableAggressiveOptimization
public java.lang.Boolean getDisableAggressiveOptimization()
- Specified by:
getDisableAggressiveOptimizationin interfaceGwtCompileOptions
-
setDisableAggressiveOptimization
public void setDisableAggressiveOptimization(java.lang.Boolean disableAggressiveOptimization)
If set to true, this adds the "-XdisableAggressiveOptimization" flag.- Specified by:
setDisableAggressiveOptimizationin interfaceGwtCompileOptions- Parameters:
disableAggressiveOptimization- Whether to add the "-XdisableAggressiveOptimization" flag.
-
getDisableClassMetadata
public java.lang.Boolean getDisableClassMetadata()
- Specified by:
getDisableClassMetadatain interfaceGwtCompileOptions
-
setDisableClassMetadata
public void setDisableClassMetadata(java.lang.Boolean disableClassMetadata)
If set to true, this adds the "-XdisableClassMetadata" flag.- Specified by:
setDisableClassMetadatain interfaceGwtCompileOptions- Parameters:
disableClassMetadata- Whether to add the "-XdisableClassMetadata" flag.
-
getDisableCastChecking
public java.lang.Boolean getDisableCastChecking()
- Specified by:
getDisableCastCheckingin interfaceGwtCompileOptions
-
setDisableCastChecking
public void setDisableCastChecking(java.lang.Boolean disableCastChecking)
If set to true, this adds the "-XdisableCastChecking" flag.- Specified by:
setDisableCastCheckingin interfaceGwtCompileOptions- Parameters:
disableCastChecking- Whether to add the "-XdisableCastChecking" flag.
-
getEa
public java.lang.Boolean getEa()
- Specified by:
getEain interfaceGwtCompileOptions
-
setEa
public void setEa(java.lang.Boolean ea)
If set to true, this adds the "-ea" (enable assertions) flag.- Specified by:
setEain interfaceGwtCompileOptions- Parameters:
ea- Whether to add the "-ea" (enable assertions) flag.
-
getDisableRunAsync
public java.lang.Boolean getDisableRunAsync()
- Specified by:
getDisableRunAsyncin interfaceGwtCompileOptions
-
setDisableRunAsync
public void setDisableRunAsync(java.lang.Boolean disableRunAsync)
If set to true, this adds the "-XdisableRunAsync" flag.- Specified by:
setDisableRunAsyncin interfaceGwtCompileOptions- Parameters:
disableRunAsync- Whether to add the "-XdisableRunAsync" flag.
-
getStyle
public Style getStyle()
- Specified by:
getStylein interfaceGwtCompileOptions
-
setStyle
public void setStyle(Style style)
Sets the "-style" option.- Specified by:
setStylein interfaceGwtCompileOptions- Parameters:
style- Whether to add the "-style" option.
-
getSoycDetailed
public java.lang.Boolean getSoycDetailed()
- Specified by:
getSoycDetailedin interfaceGwtCompileOptions
-
setSoycDetailed
public void setSoycDetailed(java.lang.Boolean soycDetailed)
If set to true, this adds the "-XsoycDetailed" flag.- Specified by:
setSoycDetailedin interfaceGwtCompileOptions- Parameters:
soycDetailed- Whether to addthe "-XsoycDetailed" flag.
-
getStrict
public java.lang.Boolean getStrict()
- Specified by:
getStrictin interfaceGwtCompileOptions
-
setStrict
public void setStrict(java.lang.Boolean strict)
If set to true, this adds the "-strict" flag.- Specified by:
setStrictin interfaceGwtCompileOptions- Parameters:
strict- Whether to add the "-strict" flag.
-
getDisableSoycHtml
public java.lang.Boolean getDisableSoycHtml()
- Specified by:
getDisableSoycHtmlin interfaceGwtCompileOptions
-
setDisableSoycHtml
public void setDisableSoycHtml(java.lang.Boolean disableSoycHtml)
If set to true, this adds the "-XdisableSoycHtml" flag.- Specified by:
setDisableSoycHtmlin interfaceGwtCompileOptions- Parameters:
disableSoycHtml- Whether to add the "-XdisableSoycHtml" flag.
-
getFragmentCount
public java.lang.Integer getFragmentCount()
- Specified by:
getFragmentCountin interfaceGwtCompileOptions
-
setFragmentCount
public void setFragmentCount(java.lang.Integer fragmentCount)
Sets the "-XfragmentCount" option.- Specified by:
setFragmentCountin interfaceGwtCompileOptions- Parameters:
fragmentCount- The "-XfragmentCount" option specified.
-
getMissingDepsFile
public java.io.File getMissingDepsFile()
- Specified by:
getMissingDepsFilein interfaceGwtCompileOptions
-
setMissingDepsFile
public void setMissingDepsFile(java.io.File missingDepsFile)
- Specified by:
setMissingDepsFilein interfaceGwtCompileOptions- Parameters:
missingDepsFile- the missingDepsFile to set
-
getNamespace
public Namespace getNamespace()
- Specified by:
getNamespacein interfaceGwtCompileOptions
-
setNamespace
public void setNamespace(Namespace namespace)
- Specified by:
setNamespacein interfaceGwtCompileOptions- Parameters:
namespace- the namespace to set
-
getEnforceStrictResources
public java.lang.Boolean getEnforceStrictResources()
- Specified by:
getEnforceStrictResourcesin interfaceGwtCompileOptions
-
setEnforceStrictResources
public void setEnforceStrictResources(java.lang.Boolean enforceStrictResources)
- Specified by:
setEnforceStrictResourcesin interfaceGwtCompileOptions- Parameters:
enforceStrictResources- the enforceStrictResources to set
-
getIncrementalCompileWarnings
public java.lang.Boolean getIncrementalCompileWarnings()
- Specified by:
getIncrementalCompileWarningsin interfaceGwtCompileOptions
-
setIncrementalCompileWarnings
public void setIncrementalCompileWarnings(java.lang.Boolean incrementalCompileWarnings)
- Specified by:
setIncrementalCompileWarningsin interfaceGwtCompileOptions- Parameters:
incrementalCompileWarnings- the incrementalCompileWarnings to set
-
getOverlappingSourceWarnings
public java.lang.Boolean getOverlappingSourceWarnings()
- Specified by:
getOverlappingSourceWarningsin interfaceGwtCompileOptions
-
setOverlappingSourceWarnings
public void setOverlappingSourceWarnings(java.lang.Boolean overlappingSourceWarnings)
- Specified by:
setOverlappingSourceWarningsin interfaceGwtCompileOptions- Parameters:
overlappingSourceWarnings- the overlappingSourceWarnings to set
-
getSaveSource
public java.lang.Boolean getSaveSource()
- Specified by:
getSaveSourcein interfaceGwtCompileOptions
-
setSaveSource
public void setSaveSource(java.lang.Boolean saveSource)
- Specified by:
setSaveSourcein interfaceGwtCompileOptions- Parameters:
saveSource- the saveSource to set
-
getSaveSourceOutput
public java.io.File getSaveSourceOutput()
- Specified by:
getSaveSourceOutputin interfaceGwtCompileOptions
-
setSaveSourceOutput
public void setSaveSourceOutput(java.io.File saveSourceOutput)
- Specified by:
setSaveSourceOutputin interfaceGwtCompileOptions- Parameters:
saveSourceOutput- the saveSourceOutput to set
-
getClosureFormattedOutput
public java.lang.Boolean getClosureFormattedOutput()
- Specified by:
getClosureFormattedOutputin interfaceGwtCompileOptions
-
setClosureFormattedOutput
public void setClosureFormattedOutput(java.lang.Boolean closureFormattedOutput)
If set to true, this adds the parameter -XclosureFormattedOutput. If set to false, this adds the parameter -XnoclosureFormattedOutput. Added in GWT 2.8.- Specified by:
setClosureFormattedOutputin interfaceGwtCompileOptions- Parameters:
closureFormattedOutput- The closure formatted output.
-
-