Package de.xima.fc.workflow.parser.infix
Enum ETokenKind
- java.lang.Object
-
- java.lang.Enum<ETokenKind>
-
- de.xima.fc.workflow.parser.infix.ETokenKind
-
- All Implemented Interfaces:
Serializable
,Comparable<ETokenKind>
public enum ETokenKind extends Enum<ETokenKind>
Enumeration of the possible tokens that may occur in an infix expression.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONSTANT
A constant token, such as a literal number or boolean constant.GROUP_END
A token marking the end of a group, such as a closing parenthesis)
.GROUP_START
A token marking the start of a group, such as an opening parenthesis(
.OPERATOR
An operator token that performs an operation on its arguments.VARIABLE
A variable token, i.e.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ETokenKind
valueOf(String name)
Returns the enum constant of this type with the specified name.static ETokenKind[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CONSTANT
public static final ETokenKind CONSTANT
A constant token, such as a literal number or boolean constant.
-
GROUP_END
public static final ETokenKind GROUP_END
A token marking the end of a group, such as a closing parenthesis)
.
-
GROUP_START
public static final ETokenKind GROUP_START
A token marking the start of a group, such as an opening parenthesis(
.
-
OPERATOR
public static final ETokenKind OPERATOR
An operator token that performs an operation on its arguments.
-
VARIABLE
public static final ETokenKind VARIABLE
A variable token, i.e. an identifier that references a value.
-
-
Method Detail
-
values
public static ETokenKind[] 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 (ETokenKind c : ETokenKind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ETokenKind 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
-
-