Enum Token.Kind

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Token.Kind>
    Enclosing class:
    Token

    public static enum Token.Kind
    extends java.lang.Enum<Token.Kind>
    • Field Detail

      • TOKEN_MAP

        private static final java.util.Map<java.lang.String,​Token.Kind> TOKEN_MAP
    • Constructor Detail

      • Kind

        private Kind()
    • Method Detail

      • values

        public static Token.Kind[] 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.Kind c : Token.Kind.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.Kind valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • determine

        public static Token.Kind determine​(java.lang.String value)
        from token text, determines kind.