Package ch.njol.skript.lang
Enum Class ParseContext
- All Implemented Interfaces:
Serializable
,Comparable<ParseContext>
,Constable
Used to provide context as to where an element is being parsed from.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ParseContext
Returns the enum constant of this class with the specified name.static ParseContext[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
Default parse mode -
EVENT
Used for parsing events of triggers.TODO? replace with
invalid reference
#DUMMY
SkriptParser.PARSE_LITERALS
-
COMMAND
Only used for parsing arguments of commands -
PARSE
Used for parsing text inExprParse
-
CONFIG
Used for parsing values from a config -
SCRIPT
Used for parsing variables in a script's variables section
-
-
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
-