Enum Class Binding.Visibility

java.lang.Object
java.lang.Enum<Binding.Visibility>
org.jfuncmachine.compiler.model.expr.Binding.Visibility
All Implemented Interfaces:
Serializable, Comparable<Binding.Visibility>, Constable
Enclosing class:
Binding

public static enum Binding.Visibility extends Enum<Binding.Visibility>
The Visibility parameter controls whether or not binding variables are visible to other binding pair expressions within the same binding.
  • Separate
    means that a binding expression does not see its own variable nor those of any of the other BindingPair objects in this binding (but if this binding occurs inside another binding, it can see all the variables in the outer binding).
  • Previous
    means that each binding pair can see the variables in the binding pairs that came before it in the current binding (as well as any variables defined in a parent binding).
  • Enum Constant Details

    • Separate

      public static final Binding.Visibility Separate
      The binding expression does not see its own variable or any others in the current binding
    • Previous

      public static final Binding.Visibility Previous
      The binding expression does not see its own variable but sees those in the current binding that occur before it
  • Method Details

    • values

      public static Binding.Visibility[] 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 Binding.Visibility 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