com.springsource.util.osgi.manifest.parse.standard
Enum HeaderTokenKind
java.lang.Object
java.lang.Enum<HeaderTokenKind>
com.springsource.util.osgi.manifest.parse.standard.HeaderTokenKind
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<HeaderTokenKind>
public enum HeaderTokenKind
- extends java.lang.Enum<HeaderTokenKind>
Enumeration of token kinds created by the lexer. Very confusing that the grammar defines a token called TOKEN.
Concurrent Semantics
Threadsafe.
- Author:
- Andy Clement
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
NUMBER
public static final HeaderTokenKind NUMBER
ALPHAS
public static final HeaderTokenKind ALPHAS
ALPHANUMERIC
public static final HeaderTokenKind ALPHANUMERIC
DOT
public static final HeaderTokenKind DOT
DOTSTAR
public static final HeaderTokenKind DOTSTAR
TOKEN
public static final HeaderTokenKind TOKEN
QUOTEDSTRING
public static final HeaderTokenKind QUOTEDSTRING
IDENTIFIER
public static final HeaderTokenKind IDENTIFIER
SEMICOLON
public static final HeaderTokenKind SEMICOLON
COLONEQUALS
public static final HeaderTokenKind COLONEQUALS
COMMA
public static final HeaderTokenKind COMMA
EQUALS
public static final HeaderTokenKind EQUALS
STAR
public static final HeaderTokenKind STAR
SLASH
public static final HeaderTokenKind SLASH
PATHELEMENT
public static final HeaderTokenKind PATHELEMENT
tokenString
private java.lang.String tokenString
canBeTreatedAsToken
private boolean canBeTreatedAsToken
values
public static HeaderTokenKind[] 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 (HeaderTokenKind c : HeaderTokenKind.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static HeaderTokenKind 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
getString
public java.lang.String getString()
isNumber
public static boolean isNumber(HeaderToken token)
isAlphas
public static boolean isAlphas(HeaderToken token)
isAlphanumeric
public static boolean isAlphanumeric(HeaderToken token)
isToken
public static boolean isToken(HeaderToken token)
isEquals
public static boolean isEquals(HeaderToken token)
isColonEquals
public static boolean isColonEquals(HeaderToken token)
isQuotedString
public static boolean isQuotedString(HeaderToken token)
isDot
public static boolean isDot(HeaderToken token)
isSemicolon
public static boolean isSemicolon(HeaderToken token)
isSlash
public static boolean isSlash(HeaderToken token)
isComma
public static boolean isComma(HeaderToken token)
isIdentifier
public static boolean isIdentifier(HeaderToken token)
canBeTreatedAsIdentifier
public static boolean canBeTreatedAsIdentifier(HeaderToken t)
canBeTreatedAsToken
public static boolean canBeTreatedAsToken(HeaderToken token)
canBeTreatedAsExtendedToken
public static boolean canBeTreatedAsExtendedToken(HeaderToken argumentToken)
isSemicolonOrComma
public static boolean isSemicolonOrComma(HeaderToken t)
isStar
public static boolean isStar(HeaderToken token)
isDotStar
public static boolean isDotStar(HeaderToken token2)
canBeTreatedAsPathElement
public static boolean canBeTreatedAsPathElement(HeaderToken t)