org.exolab.castor.jdo.oql

Class 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: 5951 $ $Date: 2006-01-03 17:47:48 -0700 (Tue, 03 Jan 2006) $
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, String tokenValue)
Creates a new Token with the supplied type and value.

Method Summary

int
getTokenType()
Token Type accessor method.
String
getTokenValue()
Token value accessor method.
String
toString()

Field Details

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

KEYWORD_AS

public static final Token KEYWORD_AS

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

Constructor Details

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 Details

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-2006. All rights reserved http://www.intalio.com