Enum TokenKind
- java.lang.Object
-
- java.lang.Enum<TokenKind>
-
- org.apache.olingo.odata2.core.uri.expression.TokenKind
-
- All Implemented Interfaces:
Serializable,Comparable<TokenKind>
public enum TokenKind extends Enum<TokenKind>
The token kind is used to categorize a singleToken. The Expression parser (FilterParserImpl) uses this information to build the expression tree.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLOSEPARENIndicates that the token is a ')' characterCOMMAIndicates that the token is a ',' characterLITERALIndicates that the token is a set of alphanumeric characters starting with a letterOPENPARENIndicates that the token is a '(' characterSIMPLE_TYPEIndicates that the token is a typed literal.SYMBOLIndicates that the token is a single symbol.TYPED_LITERAL_TODO_CHECKUNKNOWNWHITESPACEIndicates that the token is a whitespace character
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TokenKindvalueOf(String name)Returns the enum constant of this type with the specified name.static TokenKind[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
WHITESPACE
public static final TokenKind WHITESPACE
Indicates that the token is a whitespace character
-
OPENPAREN
public static final TokenKind OPENPAREN
Indicates that the token is a '(' character
-
CLOSEPAREN
public static final TokenKind CLOSEPAREN
Indicates that the token is a ')' character
-
COMMA
public static final TokenKind COMMA
Indicates that the token is a ',' character
-
SIMPLE_TYPE
public static final TokenKind SIMPLE_TYPE
Indicates that the token is a typed literal. That may be a Edm.String like 'TEST' Edm.Double like '1.1D' or any other Edm.Simple Type
-
SYMBOL
public static final TokenKind SYMBOL
Indicates that the token is a single symbol. That may be a '-', '=', '/', '?', '.' or a '*' character
-
LITERAL
public static final TokenKind LITERAL
Indicates that the token is a set of alphanumeric characters starting with a letter
-
TYPED_LITERAL_TODO_CHECK
public static final TokenKind TYPED_LITERAL_TODO_CHECK
-
UNKNOWN
public static final TokenKind UNKNOWN
-
-
Method Detail
-
values
public static TokenKind[] 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 (TokenKind c : TokenKind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TokenKind 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
-
-