Enum Class IScope.ScopeType

java.lang.Object
java.lang.Enum<IScope.ScopeType>
org.ek9lang.compiler.symbols.IScope.ScopeType
All Implemented Interfaces:
Serializable, Comparable<IScope.ScopeType>, Constable
Enclosing interface:
IScope

public static enum IScope.ScopeType extends Enum<IScope.ScopeType>
The main type of scope in use a block is just like a set of instruction inside an if block or a while block whereas a non-block is as the whole class/function/component level. A dynamic-block is to de-mark a dynamic class or a dynamic function. For some operations (especially around generic/template processing) it is important to find the top-most block all the code has been defined in. So for variable definition it follows that same sort of logic as java not C/C++. You can have fields as variables with a name say 'v1' and parameters and block declarations of something as 'v1'. But once in a block scope then you cannot redefine 'v1'.
  • Enum Constant Details

  • Method Details

    • values

      public static IScope.ScopeType[] 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 IScope.ScopeType 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