uk.me.parabola.mkgmap.scan
Enum TokType

java.lang.Object
  extended by java.lang.Enum<TokType>
      extended by uk.me.parabola.mkgmap.scan.TokType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TokType>

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

The different token types.


Enum Constant Summary
EOF
          Used for end of file.
EOL
          An end of line character.
SPACE
          A sequence of space characters, not including newline.
SYMBOL
          A symbol, such as '!', '@' etc.
TEXT
          Text, an alphanumeric string.
 
Method Summary
static TokType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TokType[] 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

SYMBOL

public static final TokType SYMBOL
A symbol, such as '!', '@' etc. Currently symbols are single and do not combine. This may change.


TEXT

public static final TokType TEXT
Text, an alphanumeric string.


SPACE

public static final TokType SPACE
A sequence of space characters, not including newline. Several characters can be combined into one token, but the actual characters are available as the value.


EOL

public static final TokType EOL
An end of line character.


EOF

public static final TokType EOF
Used for end of file.

Method Detail

values

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

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

valueOf

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