Enum TrafCOD.Token

    • 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.
      • 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 (!=).
      • GTEQ

        public static final TrafCOD.Token GTEQ
        Greater than or equal 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 name
        NullPointerException - if the argument is null