Enum TokenLexer.LexMode

    • Enum Constant Detail

      • COOKED

        public static final TokenLexer.LexMode COOKED
        When in cooked mode identify the token type.
      • RAW

        public static final TokenLexer.LexMode RAW
        When in raw mode, collect characters until the terminating delimiter is found. RAW is used to read in all characters between parens, braces, etc. RAW mode will read in an entire file if the open, close delimiters are mismatched.
    • Method Detail

      • values

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

        public static TokenLexer.LexMode 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