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.Expressions that are related to the Event that are typically simple.Expressions whose pattern matches (almost) everything.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" -
EVENT
Expressions that are related to the Event that are typically simple.- See Also:
-
COMBINED
Expressions that contain other expressions, e.g. "[the] distance between %location% and %location%"- See Also:
-
PROPERTY
Property expressions, e.g. "[the] data value[s] of %items%"/"%items%'[s] data value[s]"- See Also:
-
PATTERN_MATCHES_EVERYTHING
Expressions whose pattern matches (almost) everything. Typically when using regex. Example: "[the] [loop-]invalid input: '<'.+>"
-
-
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
-