Package org.openzen.zenscript.lexer
Enum Class ZSTokenType
- All Implemented Interfaces:
Serializable,Comparable<ZSTokenType>,Constable,TokenType
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic ZSTokenTypeReturns the enum constant of this class with the specified name.static ZSTokenType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
T_COMMENT_SCRIPT
-
T_COMMENT_SINGLELINE
-
T_COMMENT_MULTILINE
-
T_WHITESPACE_SPACE
-
T_WHITESPACE_TAB
-
T_WHITESPACE_NEWLINE
-
T_WHITESPACE_CARRIAGE_RETURN
-
T_IDENTIFIER
-
T_LOCAL_IDENTIFIER
-
T_FLOAT
-
T_PREFIXED_INT
-
T_INT
-
T_STRING_DQ
-
T_STRING_DQ_WYSIWYG
-
T_STRING_SQ
-
T_STRING_SQ_WYSIWYG
-
T_AOPEN
-
T_ACLOSE
-
T_SQOPEN
-
T_SQCLOSE
-
T_DOT3
-
T_DOT2
-
T_DOT
-
T_COMMA
-
T_INCREMENT
-
T_ADDASSIGN
-
T_ADD
-
T_DECREMENT
-
T_SUBASSIGN
-
T_SUB
-
T_CATASSIGN
-
T_CAT
-
T_MULASSIGN
-
T_MUL
-
T_DIVASSIGN
-
T_DIV
-
T_MODASSIGN
-
T_MOD
-
T_ORASSIGN
-
T_OROR
-
T_OR
-
T_ANDASSIGN
-
T_ANDAND
-
T_AND
-
T_XORASSIGN
-
T_XOR
-
T_COALESCE
-
T_OPTCALL
-
T_QUEST
-
T_COLON
-
T_BROPEN
-
T_BRCLOSE
-
T_SEMICOLON
-
T_LESSEQ
-
T_SHLASSIGN
-
T_SHL
-
T_LESS
-
T_GREATEREQ
-
T_USHR
-
T_USHRASSIGN
-
T_SHRASSIGN
-
T_SHR
-
T_GREATER
-
T_LAMBDA
-
T_EQUAL3
-
T_EQUAL2
-
T_ASSIGN
-
T_NOTEQUAL2
-
T_NOTEQUAL
-
T_NOT
-
T_DOLLAR
-
T_BACKTICK
-
K_IMPORT
-
K_ALIAS
-
K_CLASS
-
K_FUNCTION
-
K_INTERFACE
-
K_ENUM
-
K_STRUCT
-
K_EXPAND
-
K_VARIANT
-
K_ABSTRACT
-
K_FINAL
-
K_OVERRIDE
-
K_CONST
-
K_PRIVATE
-
K_PUBLIC
-
K_EXPORT
-
K_INTERNAL
-
K_STATIC
-
K_PROTECTED
-
K_IMPLICIT
-
K_VIRTUAL
-
K_EXTERN
-
K_IMMUTABLE
-
K_VAL
-
K_VAR
-
K_GET
-
K_IMPLEMENTS
-
K_SET
-
K_VOID
-
K_BOOL
-
K_BYTE
-
K_SBYTE
-
K_SHORT
-
K_USHORT
-
K_INT
-
K_UINT
-
K_LONG
-
K_ULONG
-
K_USIZE
-
K_FLOAT
-
K_DOUBLE
-
K_CHAR
-
K_STRING
-
K_IF
-
K_ELSE
-
K_DO
-
K_WHILE
-
K_FOR
-
K_THROW
-
K_PANIC
-
K_LOCK
-
K_TRY
-
K_CATCH
-
K_FINALLY
-
K_RETURN
-
K_BREAK
-
K_CONTINUE
-
K_SWITCH
-
K_CASE
-
K_DEFAULT
-
K_IN
-
K_IS
-
K_AS
-
K_MATCH
-
K_THROWS
-
K_SUPER
-
K_THIS
-
K_NULL
-
K_TRUE
-
K_FALSE
-
K_NEW
-
INVALID
-
EOF
-
-
Field Details
-
flyweight
-
isKeyword
public final boolean isKeyword -
multiline
public final boolean multiline
-
-
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
-
getRegexp
-
isWhitespace
public boolean isWhitespace()- Specified by:
isWhitespacein interfaceTokenType
-