|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<TokenType> jsyntaxpane.TokenType
public enum TokenType
These are the various token types supported by JSyntaxPane.
Method Summary | |
---|---|
java.lang.String |
getDescription()
|
java.lang.String |
getName()
|
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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
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 final TokenType PREDICATE
public static final TokenType COMBININGRULE
public static final TokenType CONSTANT
public static final TokenType VARIABLE
public static final TokenType PREDICATEKEY
public static final TokenType UNFINISHED
public static final TokenType PARAMETER
Method Detail |
---|
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 name
java.lang.NullPointerException
- if the argument is nullpublic java.lang.String getName()
public java.lang.String getDescription()
public static boolean isComment(Token t)
t
-
public static boolean isKeyword(Token t)
t
-
public static boolean isString(Token t)
t
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |