Class Option

java.lang.Object
simula.compiler.utilities.Option

public final class Option extends Object

Compile Time Options.

Link to GitHub: Source File.

Author:
Øystein Myhre Andersen
  • Field Details

    • compilerMode

      public static Option.CompilerMode compilerMode
      The Compiler mode.
    • CaseSensitive

      public static boolean CaseSensitive
      Source file is case sensitive.
    • verbose

      public static boolean verbose
      Output messages about what the compiler is doing.
    • WARNINGS

      public static boolean WARNINGS
      Generate warning messages
    • noPopup

      public static boolean noPopup
      TRUE:Do not create popUps at runtime
    • noExecution

      public static boolean noExecution
      true: Don't execute generated .jar file
    • EXTENSIONS

      public static boolean EXTENSIONS
      false: Disable all language extensions. In other words, follow the Simula Standard literally
  • Constructor Details

    • Option

      private Option()
      The default constructor
  • Method Details

    • InitCompilerOptions

      public static void InitCompilerOptions()
      Initiate Compiler options.
    • getCompilerOptions

      public static void getCompilerOptions(Properties properties)
      Get Compiler options from property file.
      Parameters:
      properties - the properties used.
    • setCompilerOptions

      public static void setCompilerOptions(Properties properties)
      Set Compiler options in property file.
      Parameters:
      properties - the properties used.
    • setCompilerMode

      public static void setCompilerMode()
      Editor Utility: Set Compiler Mode.
    • setCompilerMode

      public static void setCompilerMode(String id)
      Editor Utility: Set Compiler Mode.
      Parameters:
      id - the mode String.
    • getSelectedButtonText

      public String getSelectedButtonText(ButtonGroup buttonGroup)
      Utility to get SelectedButtonText.
      Parameters:
      buttonGroup - the button group to inspect.
      Returns:
      the selected String.
    • getOption

      public static boolean getOption(String id)
      Returns the option name 'id'
      Parameters:
      id - option id
      Returns:
      the option name 'id'
    • setOption

      public static void setOption(String id, boolean val)
      Set the option named 'id' to the given value
      Parameters:
      id - option id
      val - new option value
    • selectCompilerOptions

      public static void selectCompilerOptions()
      Editor Utility: Select Compiler Options.
    • checkBox

      private static JCheckBox checkBox(String id, String tooltip)
      Editor Utility: Create a checkBox with tooltips.
      Parameters:
      id - option id
      tooltip - option's tooltip or null
      Returns:
      the resulting check box
    • checkBox

      private static JCheckBox checkBox(String id, String tooltip, boolean selected)
      Editor Utility: Create a checkBox with tooltips.
      Parameters:
      id - option id.
      tooltip - option's tooltip or null.
      selected - true: this checkBox is selected.
      Returns:
      the resulting check box.