Enum Class ExpressionType

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

@Deprecated(since="2.14", forRemoval=true) public enum ExpressionType extends Enum<ExpressionType>
Deprecated, for removal: This API element is subject to removal in a future version.
This has been replaced by Priority. See the documentation of each element to determine their replacements.
Used to define in which order to parse expressions.
  • Enum Constant Details

    • SIMPLE

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

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

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

      public static final ExpressionType PROPERTY
      Deprecated.
      Use PropertyExpression.DEFAULT_PRIORITY.
      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()
      Deprecated, for removal: This API element is subject to removal in a future version.
      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)
      Deprecated, for removal: This API element is subject to removal in a future version.
      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
    • priority

      public Priority priority()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      The Priority equivalent of this ExpressionType.
    • fromModern

      @Nullable public static @Nullable ExpressionType fromModern(Priority priority)
      Deprecated, for removal: This API element is subject to removal in a future version.