Class Option
java.lang.Object
simula.compiler.utilities.Option
Compile Time Options.
Link to GitHub: Source File.
- Author:
- Øystein Myhre Andersen
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
The Compiler Modes.static class
Testing and debugging options -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic boolean
Source file is case sensitive.static Option.CompilerMode
The Compiler mode.static boolean
false: Disable all language extensions.static boolean
true: Don't execute generated .jar filestatic boolean
TRUE:Do not create popUps at runtimestatic boolean
Output messages about what the compiler is doing.static boolean
Generate warning messages -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static JCheckBox
Editor Utility: Create a checkBox with tooltips.private static JCheckBox
Editor Utility: Create a checkBox with tooltips.static void
getCompilerOptions
(Properties properties) Get Compiler options from property file.static boolean
Returns the option name 'id'getSelectedButtonText
(ButtonGroup buttonGroup) Utility to get SelectedButtonText.static void
Initiate Compiler options.static void
Editor Utility: Select Compiler Options.static void
Editor Utility: Set Compiler Mode.static void
Editor Utility: Set Compiler Mode.static void
setCompilerOptions
(Properties properties) Set Compiler options in property file.static void
Set the option named 'id' to the given value
-
Field Details
-
compilerMode
The Compiler mode. -
CaseSensitive
public static boolean CaseSensitiveSource file is case sensitive. -
verbose
public static boolean verboseOutput messages about what the compiler is doing. -
WARNINGS
public static boolean WARNINGSGenerate warning messages -
noPopup
public static boolean noPopupTRUE:Do not create popUps at runtime -
noExecution
public static boolean noExecutiontrue: Don't execute generated .jar file -
EXTENSIONS
public static boolean EXTENSIONSfalse: 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
Get Compiler options from property file.- Parameters:
properties
- the properties used.
-
setCompilerOptions
Set Compiler options in property file.- Parameters:
properties
- the properties used.
-
setCompilerMode
public static void setCompilerMode()Editor Utility: Set Compiler Mode. -
setCompilerMode
Editor Utility: Set Compiler Mode.- Parameters:
id
- the mode String.
-
getSelectedButtonText
Utility to get SelectedButtonText.- Parameters:
buttonGroup
- the button group to inspect.- Returns:
- the selected String.
-
getOption
Returns the option name 'id'- Parameters:
id
- option id- Returns:
- the option name 'id'
-
setOption
Set the option named 'id' to the given value- Parameters:
id
- option idval
- new option value
-
selectCompilerOptions
public static void selectCompilerOptions()Editor Utility: Select Compiler Options. -
checkBox
-
checkBox
-