Enum Class MustExecutePosition.Scope

java.lang.Object
java.lang.Enum<MustExecutePosition.Scope>
org.ek9lang.compiler.support.MustExecutePosition.Scope
All Implemented Interfaces:
Serializable, Comparable<MustExecutePosition.Scope>, Constable
Enclosing class:
MustExecutePosition

public static enum MustExecutePosition.Scope extends Enum<MustExecutePosition.Scope>
How far the walk climbs: to the enclosing BODY (BODY, FE77), to the evaluation that owns the code in its statement form (STATEMENT), or to the nearest conditionally evaluated operand too (EVALUATION).
  • Enum Constant Details

    • BODY

      public static final MustExecutePosition.Scope BODY
      Does the code run every time its enclosing BODY runs.
    • STATEMENT

      public static final MustExecutePosition.Scope STATEMENT
      Does the code run every time the block statement it is part of runs.
    • EVALUATION

      public static final MustExecutePosition.Scope EVALUATION
      Does the code run every time the evaluation that owns it runs: its block statement (or initialiser), or the nearest conditionally evaluated operand it is part of (the operands IR generation wraps in their own owned region).
  • Method Details

    • values

      public static MustExecutePosition.Scope[] 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 MustExecutePosition.Scope 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