Package org.apache.openjpa.kernel.jpql
Class JPQLTokenManager
- java.lang.Object
-
- org.apache.openjpa.kernel.jpql.JPQLTokenManager
-
- All Implemented Interfaces:
JPQLConstants
public class JPQLTokenManager extends java.lang.Object implements JPQLConstants
Token Manager.
-
-
Field Summary
Fields Modifier and Type Field Description protected char
curChar
java.io.PrintStream
debugStream
Debug output.protected JavaCharStream
input_stream
static java.lang.String[]
jjstrLiteralImages
Token literal values.static java.lang.String[]
lexStateNames
Lexer state names.-
Fields inherited from interface org.apache.openjpa.kernel.jpql.JPQLConstants
ABS, ALL, AND, ANY, AS, ASC, AVG, BETWEEN, BOOLEAN_LITERAL, BOTH, BY, CASE, CHARACTER_LITERAL, CLASS, COALESCE, COMMA, CONCAT, COUNT, CURRENT_DATE, CURRENT_TIME, CURRENT_TIMESTAMP, DATE_LITERAL, DECIMAL_LITERAL, DEFAULT, DELETE, DESC, DIGIT, DISTINCT, DIV, DOT, ELSE, EMPTY, END, ENTRY, EOF, EQ, ESCAPE, EXISTS, EXPONENT, FETCH, FROM, GE, GROUP, GT, HAVING, IDENTIFIER, IN, INDEX, INNER, INTEGER_LITERAL, IS, JOIN, KEY, LE, LEADING, LEFT, LENGTH, LETTER, LIKE, LOCATE, LOWER, LT, MAX, MEMBER, MIN, MINUS, MOD, NE, NEW, NOT, NULL, NULLIF, OBJECT, OF, OR, ORDER, OUTER, PLUS, SELECT, SET, SIZE, SOME, SQRT, STRING_LITERAL, STRING_LITERAL2, SUBSTRING, SUM, THEN, TIME_LITERAL, TIMES, TIMESTAMP_LITERAL, tokenImage, TRAILING, TRIM, TYPE, UPDATE, UPPER, VALUE, WHEN, WHERE
-
-
Constructor Summary
Constructors Constructor Description JPQLTokenManager(JavaCharStream stream)
Constructor.JPQLTokenManager(JavaCharStream stream, int lexState)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Token
getNextToken()
Get the next Token.protected Token
jjFillToken()
void
ReInit(JavaCharStream stream)
Reinitialise parser.void
ReInit(JavaCharStream stream, int lexState)
Reinitialise parser.void
setDebugStream(java.io.PrintStream ds)
Set debug output.void
SwitchTo(int lexState)
Switch to specified lex state.
-
-
-
Field Detail
-
debugStream
public java.io.PrintStream debugStream
Debug output.
-
jjstrLiteralImages
public static final java.lang.String[] jjstrLiteralImages
Token literal values.
-
lexStateNames
public static final java.lang.String[] lexStateNames
Lexer state names.
-
input_stream
protected JavaCharStream input_stream
-
curChar
protected char curChar
-
-
Constructor Detail
-
JPQLTokenManager
public JPQLTokenManager(JavaCharStream stream)
Constructor.
-
JPQLTokenManager
public JPQLTokenManager(JavaCharStream stream, int lexState)
Constructor.
-
-
Method Detail
-
setDebugStream
public void setDebugStream(java.io.PrintStream ds)
Set debug output.
-
ReInit
public void ReInit(JavaCharStream stream)
Reinitialise parser.
-
ReInit
public void ReInit(JavaCharStream stream, int lexState)
Reinitialise parser.
-
SwitchTo
public void SwitchTo(int lexState)
Switch to specified lex state.
-
jjFillToken
protected Token jjFillToken()
-
getNextToken
public Token getNextToken()
Get the next Token.
-
-