@PublicEvolving public enum TokenType extends Enum<TokenType> implements Serializable
DIRECTIVE_NAME is represented by the
object DirectiveName.Bool,
BoolList,
ColumnName,
ColumnNameList,
DirectiveName,
Numeric,
NumericList,
Properties,
Ranges,
Expression,
Text,
TextList| Enum Constant and Description |
|---|
BOOLEAN
Represents the enumerated type for the object of
Bool type. |
BOOLEAN_LIST
Represents the enumerated type for the object of type
BoolList type. |
COLUMN_NAME
Represents the enumerated type for the object of
ColumnName type. |
COLUMN_NAME_LIST
Represents the enumerated type for the object of type
BoolList type. |
DIRECTIVE_NAME
Represents the enumerated type for the object
DirectiveName type. |
EXPRESSION
Represents the enumerated type for the object of type
Expression type. |
IDENTIFIER
Represents the enumerated type for the object of type
String with restrictions
on characters that can be present in a string. |
NUMERIC
Represents the enumerated type for the object of
Numeric type. |
NUMERIC_LIST
Represents the enumerated type for the object of type
NumericList type. |
PROPERTIES
Represents the enumerated type for the object of type
Properties type. |
RANGES
Represents the enumerated type for the object of type
Ranges types. |
TEXT
Represents the enumerated type for the object of
Text type. |
TEXT_LIST
Represents the enumerated type for the object of type
TextList type. |
| Modifier and Type | Method and Description |
|---|---|
static TokenType |
valueOf(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 DIRECTIVE_NAME
DirectiveName type.
This type is associated with the token that is recognized as a directive
name within the recipe.public static final TokenType COLUMN_NAME
ColumnName type.
This type is associated with token that represents the column as defined
by the grammar as :public static final TokenType TEXT
Text type.
This type is associated with the token that is either enclosed within a single quote(')
or a double quote (") as string.public static final TokenType NUMERIC
Numeric type.
This type is associated with the token that is either a integer or real number.public static final TokenType BOOLEAN
Bool type.
This type is associated with the token that either represents string 'true' or 'false'.public static final TokenType COLUMN_NAME_LIST
BoolList type.
This type is associated with the rule that is a collection of Boolean values
separated by comman(,). E.g.
ColumnName[,ColumnName]*
public static final TokenType TEXT_LIST
TextList type.
This type is associated with the comma separated text represented were each text
is enclosed within a single quote (') or double quote (") and each text is separated
by comma (,). E.g.
Text[,Text]*
public static final TokenType NUMERIC_LIST
NumericList type.
This type is associated with the collection of Numeric values separated by
comma(,). E.g.
Numeric[,Numeric]*
public static final TokenType BOOLEAN_LIST
BoolList type.
This type is associated with the collection of Bool values separated by
comma(,). E.g.
Boolean[,Boolean]*
public static final TokenType EXPRESSION
Expression type.
This type is associated with code block that either represents a condition or
an expression. E.g.
exp:{ }
public static final TokenType PROPERTIES
Properties type.
This type is associated with a collection of key and value pairs all separated
by a comma(,). E.g.
prop:{ =[,=]*}
public static final TokenType RANGES
Ranges types.
This type is associated with a collection of range represented in the form shown
below
:=value[,:=value]*
public static final TokenType IDENTIFIER
String with restrictions
on characters that can be present in a string.public static TokenType[] values()
for (TokenType c : TokenType.values()) System.out.println(c);
public static TokenType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2020 CDAP Licensed under the Apache License, Version 2.0.