Enum Class SourceKey

java.lang.Object
java.lang.Enum<SourceKey>
com.wyu4.snowberryjam.compiler.enums.SourceKey
All Implemented Interfaces:
Serializable, Comparable<SourceKey>, Constable

public enum SourceKey extends Enum<SourceKey>
The keys that can be found in a Snowberry Jam source code.
  • Enum Constant Details

    • ARRAY

      public static final SourceKey ARRAY
    • BODY

      public static final SourceKey BODY
    • ELSE

      public static final SourceKey ELSE
    • EVENTS

      public static final SourceKey EVENTS
    • ID

      public static final SourceKey ID
    • NAME

      public static final SourceKey NAME
    • PARAM_A

      public static final SourceKey PARAM_A
    • PARAM_B

      public static final SourceKey PARAM_B
    • PARAM_I

      public static final SourceKey PARAM_I
    • VARIABLES

      public static final SourceKey VARIABLES
    • VALUE

      public static final SourceKey VALUE
  • Field Details

    • key

      private final String key
      The string format of the enum
  • Constructor Details

    • SourceKey

      private SourceKey(String key)
  • Method Details

    • values

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