Building Parsers with Java

sjm.parse.tokens
Class TokenType

java.lang.Object
  |
  +--sjm.parse.tokens.TokenType

public class TokenType
extends java.lang.Object

Objects of this class represent a type of token, such as "number" or "word".


Field Summary
protected  java.lang.String name
           
 
Constructor Summary
TokenType(java.lang.String name)
          Creates a token type of the given name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected java.lang.String name
Constructor Detail

TokenType

public TokenType(java.lang.String name)
Creates a token type of the given name.

by Steve Metsker