Package ch.njol.skript.lang
Enum Class ExpressionType
- All Implemented Interfaces:
Serializable,Comparable<ExpressionType>,Constable
Deprecated, for removal: This API element is subject to removal in a future version.
Used to define in which order to parse expressions.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDeprecated.UseSyntaxInfo.COMBINED.Deprecated.UseEventValueExpression.DEFAULT_PRIORITY.Deprecated.Deprecated.UsePropertyExpression.DEFAULT_PRIORITY.Deprecated.UseSyntaxInfo.SIMPLE. -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable ExpressionTypefromModern(Priority priority) Deprecated, for removal: This API element is subject to removal in a future version.priority()Deprecated, for removal: This API element is subject to removal in a future version.static ExpressionTypeDeprecated, for removal: This API element is subject to removal in a future version.Returns the enum constant of this class with the specified name.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.
-
Enum Constant Details
-
SIMPLE
Deprecated.UseSyntaxInfo.SIMPLE.Expressions that only match simple text, e.g. "[the] player" -
EVENT
Deprecated.UseEventValueExpression.DEFAULT_PRIORITY.Expressions that are related to the Event that are typically simple.- See Also:
-
COMBINED
Deprecated.UseSyntaxInfo.COMBINED.Expressions that contain other expressions, e.g. "[the] distance between %location% and %location%"- See Also:
-
PROPERTY
Deprecated.UsePropertyExpression.DEFAULT_PRIORITY.Property expressions, e.g. "[the] data value[s] of %items%"/"%items%'[s] data value[s]"- See Also:
-
PATTERN_MATCHES_EVERYTHING
Deprecated.Expressions whose pattern matches (almost) everything. Typically when using regex. Example: "[the] [loop-]invalid input: '<'.+>"
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
priority
Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- The Priority equivalent of this ExpressionType.
-
fromModern
Deprecated, for removal: This API element is subject to removal in a future version.
-
Priority. See the documentation of each element to determine their replacements.