Enum Class TrafCod.Token
- All Implemented Interfaces:
Serializable
,Comparable<TrafCod.Token>
,Constable
- Enclosing class:
- TrafCod
Types of TrafCOD tokens.
- Author:
- Peter Knoppers
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAssignment rule.Closing parenthesis.Integer follows.True if following variable has just ended.End rule.Equals to (=).Equals rule.Greater than (>).Greater than or equal to (>=).Timer initialize rule.Less than (<).Less than or equal to (<=).Subtraction operator.Not equals rule.Variable that follows must be logically negated.Not equal to (!Opening parenthesis.Addition operator.Timer re-initialize rule.True if following variable has just started.Start rule.Multiplication operator.Unary minus operator.Variable follows. -
Method Summary
Modifier and TypeMethodDescriptionstatic TrafCod.Token
Returns the enum constant of this class with the specified name.static TrafCod.Token[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EQUALS_RULE
Equals rule. -
NEG_EQUALS_RULE
Not equals rule. -
ASSIGNMENT
Assignment rule. -
START_RULE
Start rule. -
END_RULE
End rule. -
INIT_TIMER
Timer initialize rule. -
REINIT_TIMER
Timer re-initialize rule. -
UNARY_MINUS
Unary minus operator. -
LEEQ
Less than or equal to (<=). -
NOTEQ
Not equal to (!=). -
LE
Less than (<). -
GTEQ
Greater than or equal to (>=). -
GT
Greater than (>). -
EQ
Equals to (=). -
START
True if following variable has just started. -
END
True if following variable has just ended. -
VARIABLE
Variable follows. -
NEG_VARIABLE
Variable that follows must be logically negated. -
CONSTANT
Integer follows. -
PLUS
Addition operator. -
MINUS
Subtraction operator. -
TIMES
Multiplication operator. -
OPEN_PAREN
Opening parenthesis. -
CLOSE_PAREN
Closing parenthesis.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-