Enum Class ErrorContext

java.lang.Object
java.lang.Enum<ErrorContext>
io.github.syst3ms.skriptparser.log.ErrorContext
All Implemented Interfaces:
Serializable, Comparable<ErrorContext>, Constable

public enum ErrorContext extends Enum<ErrorContext>
  • Enum Constant Details

    • RESTRICTED_SYNTAXES

      public static final ErrorContext RESTRICTED_SYNTAXES
      A syntax has been successfully parsed all the way, but it's present in a section that doesn't allow it
    • CONSTRAINT_CHECKING

      public static final ErrorContext CONSTRAINT_CHECKING
      A syntax has been successfully initialized, and it's being checked for extra constraints such as type or number
    • INITIALIZATION

      public static final ErrorContext INITIALIZATION
      A syntax has been successfully matched, and it's being initialized
    • MATCHING

      public static final ErrorContext MATCHING
      Text is being matched against a pattern
    • NO_MATCH

      public static final ErrorContext NO_MATCH
      Nothing has matched the text
  • Method Details

    • values

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