Enum Class ScriptScopeStyle

java.lang.Object
java.lang.Enum<ScriptScopeStyle>
com.inductiveautomation.ignition.common.script.ScriptScopeStyle
All Implemented Interfaces:
Serializable, Comparable<ScriptScopeStyle>, Constable

public enum ScriptScopeStyle extends Enum<ScriptScopeStyle>
  • Enum Constant Details

    • Python21

      public static final ScriptScopeStyle 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

      public static final ScriptScopeStyle 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

      public static ScriptScopeStyle[] 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

      public static ScriptScopeStyle valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • toString

      public String toString()
      Overrides:
      toString in class Enum<ScriptScopeStyle>