com.hs.mail.imap.parser
Enum Token.Type
java.lang.Object
java.lang.Enum<Token.Type>
com.hs.mail.imap.parser.Token.Type
- All Implemented Interfaces:
- Serializable, Comparable<Token.Type>
- Enclosing class:
- Token
public static enum Token.Type
- extends Enum<Token.Type>
Method Summary |
static Token.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Token.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they're declared. |
ASTRING
public static final Token.Type ASTRING
ATOM
public static final Token.Type ATOM
CRLF
public static final Token.Type CRLF
DATE
public static final Token.Type DATE
DATE_TIME
public static final Token.Type DATE_TIME
KEYWORD
public static final Token.Type KEYWORD
LIST_MAILBOX
public static final Token.Type LIST_MAILBOX
LITERAL
public static final Token.Type LITERAL
LITERAL_SYNC
public static final Token.Type LITERAL_SYNC
LPAREN
public static final Token.Type LPAREN
MAILBOX
public static final Token.Type MAILBOX
NSTRING
public static final Token.Type NSTRING
NUMBER
public static final Token.Type NUMBER
NZ_NUMBER
public static final Token.Type NZ_NUMBER
QUOTED
public static final Token.Type QUOTED
RPAREN
public static final Token.Type RPAREN
SEQ_NUMBER
public static final Token.Type SEQ_NUMBER
SEQ_RANGE
public static final Token.Type SEQ_RANGE
SP
public static final Token.Type SP
STRING
public static final Token.Type STRING
TAG
public static final Token.Type TAG
values
public static final Token.Type[] values()
- Returns an array containing the constants of this enum type, in
the order they're 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're 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
Copyright © 2011. All Rights Reserved.