jsyntaxpane
Enum Constant and Description |
---|
COMMENT |
COMMENT2 |
DEFAULT |
DELIMITER |
ERROR |
IDENTIFIER |
KEYWORD |
KEYWORD2 |
NUMBER |
OPERATOR |
REGEX |
REGEX2 |
STRING |
STRING2 |
TYPE |
TYPE2 |
TYPE3 |
WARNING |
Modifier and Type | Method and Description |
---|---|
static boolean |
isComment(Token t)
Tests if the given token is a Comment Token.
|
static boolean |
isKeyword(Token t)
Tests if the given token is a Keyword Token.
|
static boolean |
isString(Token t)
Tests if the given token is a String Token.
|
static TokenType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TokenType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TokenType OPERATOR
public static final TokenType DELIMITER
public static final TokenType KEYWORD
public static final TokenType KEYWORD2
public static final TokenType IDENTIFIER
public static final TokenType NUMBER
public static final TokenType STRING
public static final TokenType STRING2
public static final TokenType COMMENT
public static final TokenType COMMENT2
public static final TokenType REGEX
public static final TokenType REGEX2
public static final TokenType TYPE
public static final TokenType TYPE2
public static final TokenType TYPE3
public static final TokenType DEFAULT
public static final TokenType WARNING
public static final TokenType ERROR
public static TokenType[] values()
for (TokenType c : TokenType.values()) System.out.println(c);
public static TokenType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static boolean isComment(Token t)
t
- public static boolean isKeyword(Token t)
t
- public static boolean isString(Token t)
t
-