Enum Class VariableIndex.IndexType

java.lang.Object
java.lang.Enum<VariableIndex.IndexType>
me.topchetoeu.j2s.compilation.scope.VariableIndex.IndexType
All Implemented Interfaces:
Serializable, Comparable<VariableIndex.IndexType>, Constable
Enclosing class:
VariableIndex

public static enum VariableIndex.IndexType extends Enum<VariableIndex.IndexType>
  • Enum Constant Details

    • LOCALS

      public static final VariableIndex.IndexType LOCALS
      A simple variable that is only ever used within the function
    • CAPTURABLES

      public static final VariableIndex.IndexType CAPTURABLES
      A variable that has the ability to be captured by children functions
    • CAPTURES

      public static final VariableIndex.IndexType CAPTURES
      A variable that has been captured from the parent function
  • Method Details

    • values

      public static VariableIndex.IndexType[] 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 VariableIndex.IndexType 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