Enum ETokenKind

    • 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 name
        NullPointerException - if the argument is null