org.exolab.castor.jdo.oql

Class Token

public class Token extends Object implements TokenTypes

Represents tokens which are generated by the Lexer from the String OQL representation. Tokens contain a token type and the string value.

Version: $Revision: 1.1.1.1 $ $Date: 2003/03/03 07:08:25 $

Author: Nissim Karpenstein

Constructor Summary
Token(int tokenType, String tokenValue)
Creates a new Token with the supplied type and value.
Method Summary
intgetTokenType()
Token Type accessor method.
StringgetTokenValue()
Token value accessor method.
StringtoString()

Constructor Detail

Token

public Token(int tokenType, String tokenValue)
Creates a new Token with the supplied type and value.

Parameters: tokenType The Token Type for this token tokenValue The Token Value for this token

Method Detail

getTokenType

public int getTokenType()
Token Type accessor method.

Returns: The Token Type for this token

getTokenValue

public String getTokenValue()
Token value accessor method.

Returns: The Token Value for this token

toString

public String toString()
Intalio Inc. (C) 1999-2004. All rights reserved http://www.intalio.com