Package rekit.persistence.level.parser
Enum Class TokenType
- All Implemented Interfaces:
Serializable
,Comparable<TokenType>
,Constable
This class defines the different TokenTypes which exist in the LevelLanguage.
- Author:
- Dominik Fuchss
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAn Alias.Begin of an Level or an LevelLine (equals "{").A setting which belongs to a boss.Token for an delimiter of an Setting or Alias (equals "::").End of an Level or an LevelLine (equals "}").End of String Token.Mapping.Token for RAW content.A normal setting for the level. -
Method Summary
-
Enum Constant Details
-
SETTING
A normal setting for the level. -
BOSS_SETTING
A setting which belongs to a boss. -
ALIAS
An Alias. -
MAPPING
Mapping. -
BEGIN
Begin of an Level or an LevelLine (equals "{"). -
END
End of an Level or an LevelLine (equals "}"). -
EOS
End of String Token. -
RAW
Token for RAW content. -
DELIMITER
Token for an delimiter of an Setting or Alias (equals "::").
-
-
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
-
calcType
Calculate type.- Parameters:
input
- the input- Returns:
- the token type
-