org.exolab.castor.jdo.oql
Class Token

java.lang.Object
  extended by org.exolab.castor.jdo.oql.Token

public final class Token
extends java.lang.Object

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

Version:
$Revision: 8994 $ $Date: 2011-08-02 01:40:59 +0200 (Di, 02 Aug 2011) $
Author:
Nissim Karpenstein

Field Summary
static Token ARROW
           
static Token COLON
           
static Token COMMA
           
static Token CONCAT
           
static Token DIVIDE
           
static Token DOLLAR
           
static Token DOT
           
static Token END_OF_QUERY
           
static Token EQUAL
           
static Token GT
           
static Token GTE
           
static Token KEYWORD_AS
           
static Token LPAREN
           
static Token LT
           
static Token LTE
           
static Token MINUS
           
static Token NOT_EQUAL
           
static Token PLUS
           
static Token RPAREN
           
static Token TIMES
           
 
Constructor Summary
Token(int tokenType, java.lang.String tokenValue)
          Creates a new Token with the supplied type and value.
 
Method Summary
 int getTokenType()
          Token Type accessor method.
 java.lang.String getTokenValue()
          Token value accessor method.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ARROW

public static final Token ARROW

COLON

public static final Token COLON

COMMA

public static final Token COMMA

CONCAT

public static final Token CONCAT

DIVIDE

public static final Token DIVIDE

DOLLAR

public static final Token DOLLAR

DOT

public static final Token DOT

END_OF_QUERY

public static final Token END_OF_QUERY

EQUAL

public static final Token EQUAL

GT

public static final Token GT

GTE

public static final Token GTE

LPAREN

public static final Token LPAREN

LT

public static final Token LT

LTE

public static final Token LTE

MINUS

public static final Token MINUS

NOT_EQUAL

public static final Token NOT_EQUAL

PLUS

public static final Token PLUS

RPAREN

public static final Token RPAREN

TIMES

public static final Token TIMES

KEYWORD_AS

public static final Token KEYWORD_AS
Constructor Detail

Token

public Token(int tokenType,
             java.lang.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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getTokenType

public int getTokenType()
Token Type accessor method.

Returns:
The Token Type for this token

getTokenValue

public java.lang.String getTokenValue()
Token value accessor method.

Returns:
The Token Value for this token


Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com