Enum Class ScriptScopeStyle
- All Implemented Interfaces:
Serializable, Comparable<ScriptScopeStyle>, Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptiontoString()static ScriptScopeStyleReturns the enum constant of this class with the specified name.static ScriptScopeStyle[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Python21
Python 2.1 scope style is how all scripts ran prior to Ignition 7.7. This scope style meant that all scripts executed by a ScriptManager shared the same globals map. The downside of this scoping style is that methods defined in a module were unable to reference other names defined by that module. -
Python25
Python 2.5 scope style is how many scripts run in Ignition 7.7 and later. This scope style gives each script module its own global scope. The class global scope can still be referenced through system.util.getGlobals()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
toString
- Overrides:
toStringin classEnum<ScriptScopeStyle>
-