Package jetbrains.mps
Class RuntimeFlags
- java.lang.Object
 - 
- jetbrains.mps.RuntimeFlags
 
 
- 
public final class RuntimeFlags extends Object
Replacement for MPSCore#isMergeDriverMode and MPSCore#isTestMode as these flags has nothing to do with component initialization that occurs in MPSCore class, nor with dependencies of mps core component. In fact, I'm not even sure they has to be part of kernel module, rather some workbench or platform? 
- 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TestModegetTestMode()static booleanisExceptionOnBadCast()Default value: system property"mps.disableNodeCastExceptions"static booleanisInternalMode()static booleanisMergeDriverMode()FIXME bad name, it's not necessarily merge we run at, e.g.static booleanisTestMode()static booleanisUseInterpretedLanguages()static voidsetInternalMode(boolean internalMode)static voidsetMergeDriverMode(boolean mergeDriverMode)static voidsetTestMode(TestMode testMode)static voidsetUseInterpretedLanguages(boolean useInterpretedLanguages) 
 - 
 
- 
- 
Method Detail
- 
getTestMode
public static TestMode getTestMode()
 
- 
isTestMode
public static boolean isTestMode()
 
- 
setTestMode
public static void setTestMode(TestMode testMode)
 
- 
isInternalMode
public static boolean isInternalMode()
 
- 
setInternalMode
public static void setInternalMode(boolean internalMode)
 
- 
isMergeDriverMode
public static boolean isMergeDriverMode()
FIXME bad name, it's not necessarily merge we run at, e.g. ConvertToBinary task uses it as well (set to true), it's rather 'No MPS runtime' mode- Returns:
 trueif no regular MPS facilities shall be expected (e.g. LanguageRegistry, ConceptRegistry and alike).
 
- 
setMergeDriverMode
public static void setMergeDriverMode(boolean mergeDriverMode)
 
- 
isUseInterpretedLanguages
public static boolean isUseInterpretedLanguages()
 
- 
setUseInterpretedLanguages
public static void setUseInterpretedLanguages(boolean useInterpretedLanguages)
 
- 
isExceptionOnBadCast
public static boolean isExceptionOnBadCast()
Default value: system property"mps.disableNodeCastExceptions"- Returns:
 trueif node cast shall throw an exception. iffalse, bad cast results in a log warning only.
 
 - 
 
 -