Enum Class ExpressionType

java.lang.Object
java.lang.Enum<ExpressionType>
ch.njol.skript.lang.ExpressionType
All Implemented Interfaces:
Serializable, Comparable<ExpressionType>, Constable

public enum ExpressionType extends Enum<ExpressionType>
Used to define in which order to parse expressions.
  • Enum Constant Details

    • SIMPLE

      public static final ExpressionType SIMPLE
      Expressions that only match simple text, e.g. "[the] player"
    • EVENT

      public static final ExpressionType EVENT
      Expressions that are related to the Event that are typically simple.
      See Also:
      • EventValueExpression
    • COMBINED

      public static final ExpressionType COMBINED
      Expressions that contain other expressions, e.g. "[the] distance between %location% and %location%"
      See Also:
    • PROPERTY

      public static final ExpressionType PROPERTY
      Property expressions, e.g. "[the] data value[s] of %items%"/"%items%'[s] data value[s]"
      See Also:
      • PropertyExpression
    • PATTERN_MATCHES_EVERYTHING

      public static final ExpressionType PATTERN_MATCHES_EVERYTHING
      Expressions whose pattern matches (almost) everything. Typically when using regex. Example: "[the] [loop-]invalid input: '<'.+>"
  • Method Details

    • values

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