Enum TrafCOD.Token
- java.lang.Object
-
- java.lang.Enum<TrafCOD.Token>
-
- org.opentrafficsim.trafficcontrol.trafcod.TrafCOD.Token
-
- All Implemented Interfaces:
Serializable
,Comparable<TrafCOD.Token>
- Enclosing class:
- TrafCOD
static enum TrafCOD.Token extends Enum<TrafCOD.Token>
Types of TrafCOD tokens.- Author:
- Peter Knoppers
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ASSIGNMENT
Assignment rule.CLOSE_PAREN
Closing parenthesis.CONSTANT
Integer follows.END
True if following variable has just ended.END_RULE
End rule.EQ
Equals to (=).EQUALS_RULE
Equals rule.GT
Greater than (>).GTEQ
Greater than or equal to (>=).INIT_TIMER
Timer initialize rule.LE
Less than (<).LEEQ
Less than or equal to (<=).MINUS
Subtraction operator.NEG_EQUALS_RULE
Not equals rule.NEG_VARIABLE
Variable that follows must be logically negated.NOTEQ
Not equal to (!=).OPEN_PAREN
Opening parenthesis.PLUS
Addition operator.REINIT_TIMER
Timer re-initialize rule.START
True if following variable has just started.START_RULE
Start rule.TIMES
Multiplication operator.UNARY_MINUS
Unary minus operator.VARIABLE
Variable follows.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TrafCOD.Token
valueOf(String name)
Returns the enum constant of this type with the specified name.static TrafCOD.Token[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EQUALS_RULE
public static final TrafCOD.Token EQUALS_RULE
Equals rule.
-
NEG_EQUALS_RULE
public static final TrafCOD.Token NEG_EQUALS_RULE
Not equals rule.
-
ASSIGNMENT
public static final TrafCOD.Token ASSIGNMENT
Assignment rule.
-
START_RULE
public static final TrafCOD.Token START_RULE
Start rule.
-
END_RULE
public static final TrafCOD.Token END_RULE
End rule.
-
INIT_TIMER
public static final TrafCOD.Token INIT_TIMER
Timer initialize rule.
-
REINIT_TIMER
public static final TrafCOD.Token REINIT_TIMER
Timer re-initialize rule.
-
UNARY_MINUS
public static final TrafCOD.Token UNARY_MINUS
Unary minus operator.
-
LEEQ
public static final TrafCOD.Token LEEQ
Less than or equal to (<=).
-
NOTEQ
public static final TrafCOD.Token NOTEQ
Not equal to (!=).
-
LE
public static final TrafCOD.Token LE
Less than (<).
-
GTEQ
public static final TrafCOD.Token GTEQ
Greater than or equal to (>=).
-
GT
public static final TrafCOD.Token GT
Greater than (>).
-
EQ
public static final TrafCOD.Token EQ
Equals to (=).
-
START
public static final TrafCOD.Token START
True if following variable has just started.
-
END
public static final TrafCOD.Token END
True if following variable has just ended.
-
VARIABLE
public static final TrafCOD.Token VARIABLE
Variable follows.
-
NEG_VARIABLE
public static final TrafCOD.Token NEG_VARIABLE
Variable that follows must be logically negated.
-
CONSTANT
public static final TrafCOD.Token CONSTANT
Integer follows.
-
PLUS
public static final TrafCOD.Token PLUS
Addition operator.
-
MINUS
public static final TrafCOD.Token MINUS
Subtraction operator.
-
TIMES
public static final TrafCOD.Token TIMES
Multiplication operator.
-
OPEN_PAREN
public static final TrafCOD.Token OPEN_PAREN
Opening parenthesis.
-
CLOSE_PAREN
public static final TrafCOD.Token CLOSE_PAREN
Closing parenthesis.
-
-
Method Detail
-
values
public static TrafCOD.Token[] 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 (TrafCOD.Token c : TrafCOD.Token.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TrafCOD.Token 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
-
-