Package com.yahoo.prelude.query.parser
Enum Token.Kind
- java.lang.Object
-
- java.lang.Enum<Token.Kind>
-
- com.yahoo.prelude.query.parser.Token.Kind
-
- All Implemented Interfaces:
Serializable
,Comparable<Token.Kind>
- Enclosing class:
- Token
public static enum Token.Kind extends Enum<Token.Kind>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Token.Kind
valueOf(String name)
Returns the enum constant of this type with the specified name.static Token.Kind[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EOF
public static final Token.Kind EOF
-
NUMBER
public static final Token.Kind NUMBER
-
WORD
public static final Token.Kind WORD
-
LETTER
public static final Token.Kind LETTER
-
DIGIT
public static final Token.Kind DIGIT
-
SPACE
public static final Token.Kind SPACE
-
NOISE
public static final Token.Kind NOISE
-
LATINSIGN
public static final Token.Kind LATINSIGN
-
QUOTE
public static final Token.Kind QUOTE
-
MINUS
public static final Token.Kind MINUS
-
PLUS
public static final Token.Kind PLUS
-
DOT
public static final Token.Kind DOT
-
COMMA
public static final Token.Kind COMMA
-
COLON
public static final Token.Kind COLON
-
LBRACE
public static final Token.Kind LBRACE
-
RBRACE
public static final Token.Kind RBRACE
-
LSQUAREBRACKET
public static final Token.Kind LSQUAREBRACKET
-
RSQUAREBRACKET
public static final Token.Kind RSQUAREBRACKET
-
SEMICOLON
public static final Token.Kind SEMICOLON
-
GREATER
public static final Token.Kind GREATER
-
SMALLER
public static final Token.Kind SMALLER
-
EXCLAMATION
public static final Token.Kind EXCLAMATION
-
UNDERSCORE
public static final Token.Kind UNDERSCORE
-
HAT
public static final Token.Kind HAT
-
STAR
public static final Token.Kind STAR
-
DOLLAR
public static final Token.Kind DOLLAR
-
DEFAULT
public static final Token.Kind DEFAULT
-
-
Field Detail
-
image
public final String image
-
-
Method Detail
-
values
public static Token.Kind[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Token.Kind c : Token.Kind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Token.Kind valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-