com.springsource.util.parser.manifest.internal
Enum TokenKind

java.lang.Object
  extended by java.lang.Enum<TokenKind>
      extended by com.springsource.util.parser.manifest.internal.TokenKind
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TokenKind>

public enum TokenKind
extends java.lang.Enum<TokenKind>

Token kinds created by the Manifest lexer.

Concurrent Semantics
This class is thread safe.

Author:
Andy Clement

Enum Constant Summary
COLON
           
NAME
           
NEWLINE
           
VALUE
           
 
Field Summary
private  java.lang.String tokenString
           
 
Method Summary
 java.lang.String getTokenString()
           
static boolean isColon(Token t)
           
static boolean isName(Token t)
           
static boolean isNewline(Token t)
           
static boolean isValue(Token t)
           
static TokenKind valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TokenKind[] 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

NAME

public static final TokenKind NAME

VALUE

public static final TokenKind VALUE

COLON

public static final TokenKind COLON

NEWLINE

public static final TokenKind NEWLINE
Field Detail

tokenString

private java.lang.String tokenString
Method Detail

values

public static TokenKind[] 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 (TokenKind c : TokenKind.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static TokenKind 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

isNewline

public static boolean isNewline(Token t)

isName

public static boolean isName(Token t)

isValue

public static boolean isValue(Token t)

isColon

public static boolean isColon(Token t)

getTokenString

public java.lang.String getTokenString()