View Javadoc

1   package com.wutka.dtd;
2   
3   /*** Token returned by the lexical scanner
4    *
5    * @author Mark Wutka
6    * @version $Revision: 1.16 $ $Date: 2002/07/19 01:20:11 $ by $Author: wutka $
7    */
8   class Token
9   {
10  	public TokenType type;
11  	public String value;
12  
13  	public Token(TokenType aType)
14  	{
15  		type = aType;
16  		value = null;
17  	}
18  
19  	public Token(TokenType aType, String aValue)
20  	{
21  		type = aType;
22  		value = aValue;
23  	}
24  }