com.springsource.util.osgi.manifest.parse.standard
Enum HeaderTokenKind

java.lang.Object
  extended by java.lang.Enum<HeaderTokenKind>
      extended by 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

Enum Constant Summary
ALPHANUMERIC
           
ALPHAS
           
COLONEQUALS
           
COMMA
           
DOT
           
DOTSTAR
           
EQUALS
           
IDENTIFIER
           
NUMBER
           
PATHELEMENT
           
QUOTEDSTRING
           
SEMICOLON
           
SLASH
           
STAR
           
TOKEN
           
 
Field Summary
private  boolean canBeTreatedAsToken
           
private  java.lang.String tokenString
           
 
Method Summary
static boolean canBeTreatedAsExtendedToken(HeaderToken argumentToken)
           
static boolean canBeTreatedAsIdentifier(HeaderToken t)
           
static boolean canBeTreatedAsPathElement(HeaderToken t)
           
static boolean canBeTreatedAsToken(HeaderToken token)
           
 java.lang.String getString()
           
static boolean isAlphanumeric(HeaderToken token)
           
static boolean isAlphas(HeaderToken token)
           
static boolean isColonEquals(HeaderToken token)
           
static boolean isComma(HeaderToken token)
           
static boolean isDot(HeaderToken token)
           
static boolean isDotStar(HeaderToken token2)
           
static boolean isEquals(HeaderToken token)
           
static boolean isIdentifier(HeaderToken token)
           
static boolean isNumber(HeaderToken token)
           
static boolean isQuotedString(HeaderToken token)
           
static boolean isSemicolon(HeaderToken token)
           
static boolean isSemicolonOrComma(HeaderToken t)
           
static boolean isSlash(HeaderToken token)
           
static boolean isStar(HeaderToken token)
           
static boolean isToken(HeaderToken token)
           
static HeaderTokenKind valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static HeaderTokenKind[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
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
 

Enum Constant Detail

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
Field Detail

tokenString

private java.lang.String tokenString

canBeTreatedAsToken

private boolean canBeTreatedAsToken
Method Detail

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)