Package jetbrains.mps.generator
Class DefaultModifiableGenerationSettings
- java.lang.Object
 - 
- jetbrains.mps.generator.DefaultModifiableGenerationSettings
 
 
- 
- All Implemented Interfaces:
 IGenerationSettings,IModifiableGenerationSettings
public class DefaultModifiableGenerationSettings extends Object implements IModifiableGenerationSettings
 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from interface jetbrains.mps.generator.IGenerationSettings
IGenerationSettings.GenTraceSettings 
- 
Nested classes/interfaces inherited from interface jetbrains.mps.generator.IModifiableGenerationSettings
IModifiableGenerationSettings.Listener 
 - 
 
- 
Constructor Summary
Constructors Constructor Description DefaultModifiableGenerationSettings() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddListener(IModifiableGenerationSettings.Listener l)booleancreateStaticReferences()For references we've got resolve info only, we can create either a dynamic reference and let it get resolved by name through scope, or we can resolve it right away (or on the first read) and keep it static.voidenableInplaceTransformations(boolean enabled)intgetNumberOfModelsToKeep()intgetNumberOfParallelThreads()intgetPerformanceTracingLevel()IGenerationSettings.GenTraceSettingsgetTraceSettings()Presentation options of the new generation tracer.booleanisCheckModelsBeforeGeneration()booleanisGenerateDebugInfo()booleanisKeepModelsWithWarnings()booleanisParallelGenerator()booleanisSaveTransientModels()booleanisShowBadChildWarning()booleanisShowInfo()booleanisShowWarnings()booleanisStrictMode()voidremoveListener(IModifiableGenerationSettings.Listener l)voidsetCheckModelsBeforeGeneration(boolean checkModelsBeforeGeneration)voidsetCreateStaticReferences(boolean createStaticRefs)voidsetGenerateDebugInfo(boolean generateDebugInfo)voidsetKeepModelsWithWarnings(boolean keepModelsWithWarnings)voidsetNumberOfModelsToKeep(int numberOfModelsToKeep)voidsetNumberOfParallelThreads(int coreNumber)voidsetParallelGenerator(boolean useNewGenerator)voidsetPerformanceTracingLevel(int performanceTracingLevel)voidsetSaveTransientModels(boolean saveTransientModels)voidsetShowBadChildWarning(boolean showBadChildWarning)voidsetShowInfo(boolean showInfo)voidsetShowWarnings(boolean showWarnings)voidsetStrictMode(boolean strictMode)voidsetTraceSettings(IGenerationSettings.GenTraceSettings settings)booleanuseInplaceTransformations() 
 - 
 
- 
- 
Method Detail
- 
isSaveTransientModels
public boolean isSaveTransientModels()
- Specified by:
 isSaveTransientModelsin interfaceIGenerationSettings
 
- 
setSaveTransientModels
public void setSaveTransientModels(boolean saveTransientModels)
- Specified by:
 setSaveTransientModelsin interfaceIModifiableGenerationSettings
 
- 
isCheckModelsBeforeGeneration
public boolean isCheckModelsBeforeGeneration()
- Specified by:
 isCheckModelsBeforeGenerationin interfaceIModifiableGenerationSettings
 
- 
setCheckModelsBeforeGeneration
public void setCheckModelsBeforeGeneration(boolean checkModelsBeforeGeneration)
- Specified by:
 setCheckModelsBeforeGenerationin interfaceIModifiableGenerationSettings
 
- 
isParallelGenerator
public boolean isParallelGenerator()
- Specified by:
 isParallelGeneratorin interfaceIGenerationSettings
 
- 
setParallelGenerator
public void setParallelGenerator(boolean useNewGenerator)
- Specified by:
 setParallelGeneratorin interfaceIModifiableGenerationSettings
 
- 
isStrictMode
public boolean isStrictMode()
- Specified by:
 isStrictModein interfaceIGenerationSettings
 
- 
setStrictMode
public void setStrictMode(boolean strictMode)
- Specified by:
 setStrictModein interfaceIModifiableGenerationSettings
 
- 
getNumberOfParallelThreads
public int getNumberOfParallelThreads()
- Specified by:
 getNumberOfParallelThreadsin interfaceIGenerationSettings
 
- 
setNumberOfParallelThreads
public void setNumberOfParallelThreads(int coreNumber)
- Specified by:
 setNumberOfParallelThreadsin interfaceIModifiableGenerationSettings
 
- 
getPerformanceTracingLevel
public int getPerformanceTracingLevel()
- Specified by:
 getPerformanceTracingLevelin interfaceIGenerationSettings
 
- 
setPerformanceTracingLevel
public void setPerformanceTracingLevel(int performanceTracingLevel)
- Specified by:
 setPerformanceTracingLevelin interfaceIModifiableGenerationSettings
 
- 
getNumberOfModelsToKeep
public int getNumberOfModelsToKeep()
- Specified by:
 getNumberOfModelsToKeepin interfaceIGenerationSettings
 
- 
setNumberOfModelsToKeep
public void setNumberOfModelsToKeep(int numberOfModelsToKeep)
- Specified by:
 setNumberOfModelsToKeepin interfaceIModifiableGenerationSettings
 
- 
isShowInfo
public boolean isShowInfo()
- Specified by:
 isShowInfoin interfaceIGenerationSettings
 
- 
setShowInfo
public void setShowInfo(boolean showInfo)
- Specified by:
 setShowInfoin interfaceIModifiableGenerationSettings
 
- 
isShowWarnings
public boolean isShowWarnings()
- Specified by:
 isShowWarningsin interfaceIGenerationSettings
 
- 
setShowWarnings
public void setShowWarnings(boolean showWarnings)
- Specified by:
 setShowWarningsin interfaceIModifiableGenerationSettings
 
- 
isKeepModelsWithWarnings
public boolean isKeepModelsWithWarnings()
- Specified by:
 isKeepModelsWithWarningsin interfaceIGenerationSettings
 
- 
setKeepModelsWithWarnings
public void setKeepModelsWithWarnings(boolean keepModelsWithWarnings)
- Specified by:
 setKeepModelsWithWarningsin interfaceIModifiableGenerationSettings
 
- 
isGenerateDebugInfo
public boolean isGenerateDebugInfo()
- Specified by:
 isGenerateDebugInfoin interfaceIGenerationSettings
 
- 
setGenerateDebugInfo
public void setGenerateDebugInfo(boolean generateDebugInfo)
- Specified by:
 setGenerateDebugInfoin interfaceIModifiableGenerationSettings
 
- 
isShowBadChildWarning
public boolean isShowBadChildWarning()
- Specified by:
 isShowBadChildWarningin interfaceIGenerationSettings
 
- 
setShowBadChildWarning
public void setShowBadChildWarning(boolean showBadChildWarning)
- Specified by:
 setShowBadChildWarningin interfaceIModifiableGenerationSettings
 
- 
enableInplaceTransformations
public void enableInplaceTransformations(boolean enabled)
- Specified by:
 enableInplaceTransformationsin interfaceIModifiableGenerationSettings
 
- 
useInplaceTransformations
public boolean useInplaceTransformations()
- Specified by:
 useInplaceTransformationsin interfaceIGenerationSettings
 
- 
setCreateStaticReferences
public void setCreateStaticReferences(boolean createStaticRefs)
- Specified by:
 setCreateStaticReferencesin interfaceIModifiableGenerationSettings
 
- 
createStaticReferences
public boolean createStaticReferences()
Description copied from interface:IGenerationSettingsFor references we've got resolve info only, we can create either a dynamic reference and let it get resolved by name through scope, or we can resolve it right away (or on the first read) and keep it static. It looks that use of dynamic references by default wasn't sensible decision at the first place, as resolution of dynamic reference requires scope each time reference is accessed. It didn't induce any issue unless we got thousands of DynamicReferences, and their resolution became nightmare. However, it's not obvious we do need dynamic references in the first place, for any node we refer to by name.- Specified by:
 createStaticReferencesin interfaceIGenerationSettings
 
- 
getTraceSettings
@NotNull public IGenerationSettings.GenTraceSettings getTraceSettings()
Description copied from interface:IGenerationSettingsPresentation options of the new generation tracer. At the moment, they affect the way trace is represented, not collected, and as such might not fit IGenerationSettings, but (a) trace functionality is inherently generator-related; (b) I don't want to introduce another location for settings- Specified by:
 getTraceSettingsin interfaceIGenerationSettings
 
- 
setTraceSettings
public void setTraceSettings(@NotNull IGenerationSettings.GenTraceSettings settings)
 
- 
addListener
public void addListener(IModifiableGenerationSettings.Listener l)
- Specified by:
 addListenerin interfaceIModifiableGenerationSettings
 
- 
removeListener
public void removeListener(IModifiableGenerationSettings.Listener l)
- Specified by:
 removeListenerin interfaceIModifiableGenerationSettings
 
 - 
 
 -