Package jetbrains.mps

Class 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 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:
        true if 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:
        true if node cast shall throw an exception. if false, bad cast results in a log warning only.