Package ch.njol.skript.lang
Enum Class ExpressionType
- All Implemented Interfaces:
Serializable
,Comparable<ExpressionType>
,Constable
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 ConstantDescriptionExpressions that contain other expressions, e.g.Deprecated.Expressions whose pattern matches (almost) everything, e.g.Property expressions, e.g.Expressions that only match simple text, e.g. -
Method Summary
Modifier and TypeMethodDescriptionstatic ExpressionType
Returns the enum constant of this class with the specified name.static ExpressionType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SIMPLE
Expressions that only match simple text, e.g. "[the] player" -
NORMAL
Deprecated.I don't know what this was used for. It will be removed or renamed in the future. -
COMBINED
Expressions that contain other expressions, e.g. "[the] distance between %location% and %location%"- See Also:
PROPERTY
-
PROPERTY
Property expressions, e.g. "[the] data value[s] of %items%"/"%items%'[s] data value[s]" -
PATTERN_MATCHES_EVERYTHING
Expressions whose pattern matches (almost) everything, e.g. "[the] [event-]<.+>"
-
-
Method Details
-
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
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
-