org.exolab.castor.jdo.oql
Class Token
java.lang.Object
org.exolab.castor.jdo.oql.Token
public final class Token
- extends java.lang.Object
Represents tokens which are generated by the Lexer
from 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
Constructor Summary |
Token(int tokenType,
java.lang.String tokenValue)
Creates a new Token with the supplied type and value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
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 tokentokenValue
- The Token Value for this token
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
Copyright © 2011. All Rights Reserved.