Enum Token.Type

    • Enum Constant Detail

      • TT_KEYWORD

        public static final Token.Type TT_KEYWORD
      • TT_INTEGER

        public static final Token.Type TT_INTEGER
      • TT_LITSTRING

        public static final Token.Type TT_LITSTRING
      • TT_HEXSTRING

        public static final Token.Type TT_HEXSTRING
      • TT_OPENARRAY

        public static final Token.Type TT_OPENARRAY
      • TT_CLOSEARRAY

        public static final Token.Type TT_CLOSEARRAY
      • TT_OPENDICT

        public static final Token.Type TT_OPENDICT
      • TT_CLOSEDICT

        public static final Token.Type TT_CLOSEDICT
      • TT_STARTPROC

        public static final Token.Type TT_STARTPROC
      • TT_ENDPROC

        public static final Token.Type TT_ENDPROC
    • Method Detail

      • values

        public static Token.Type[] 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 (Token.Type c : Token.Type.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Token.Type 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