|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.xorm.query.AbstractQueryLanguage | +--org.xorm.query.jdoql.JDOQL
This class, generated by JavaCC, contains the grammar described in the Java Data Objects specification, transformed from LALR to LL by unrolling any instances of left recursion. For the sake of clarity, I have removed the production name(), which is listed in the JDO spec. At the raw grammar level, we don't have enough contextual information to determine which IDs are fields, parameters, or variables. The symbolic names fieldAccess() and methodInvocation() are dealt with inline in the _primary() production, rather than having top-level names. The output of this parser is an instance of org.xorm.query.Expression that represents the Expression parse tree. Because Expression trees can be created from other sources for use in XORM (for example, the CodeQuery class converts JVM bytecode to Expressions) I felt it was best NOT to use JJTree.
Field Summary | |
Token |
jj_nt
|
boolean |
lookingAhead
|
Token |
token
|
JDOQLTokenManager |
token_source
|
Fields inherited from class org.xorm.query.AbstractQueryLanguage |
clazz, paramNameToType, varNameToType |
Fields inherited from interface org.xorm.query.jdoql.JDOQLConstants |
ANDC, ANDL, CHARACTER_LITERAL, COMMA, COMP, DECIMAL_LITERAL, DEFAULT, DIGIT, DIVIDE, DOT, DOUBLESUFFIX, EOF, EOL, EQ, EXPONENT, FALSE, FLOATING_POINT_LITERAL, FLOATSUFFIX, GT, GTE, ID, INTEGER_LITERAL, LETTER, LONGSUFFIX, LPAREN, LT, LTE, MINUS, NE, NOT, NULL, ORC, ORL, PLUS, RPAREN, STRING_LITERAL, THIS, TIMES, tokenImage, TRUE, UNDERSCORE, XOR |
Fields inherited from interface org.xorm.query.QueryLanguage |
LANGUAGE |
Constructor Summary | |
JDOQL()
|
|
JDOQL(InputStream stream)
|
|
JDOQL(JDOQLTokenManager tm)
|
|
JDOQL(Reader stream)
|
Method Summary | |
void |
_additive()
|
void |
_and()
|
void |
_argumentList()
|
void |
_conditionalAnd()
|
void |
_conditionalOr()
|
void |
_equality()
|
void |
_exclusiveOr()
|
void |
_inclusiveOr()
|
void |
_multiplicative()
|
void |
_primary()
|
void |
_relational()
|
void |
additive()
|
void |
and()
|
void |
argumentList()
|
void |
cast()
|
void |
clear()
This is an empty-grammar pattern that gives the expression generator a hint that it's now working on a new expression. |
void |
compile()
A hint that the implementation should undertake the work of generating the Expression object now for future use. |
void |
conditionalAnd()
|
void |
conditionalOr()
|
void |
disable_tracing()
|
void |
enable_tracing()
|
void |
equality()
|
void |
exclusiveOr()
|
void |
expression()
This is the top-level method that gets called to parse the JDOQL filter expression. |
ParseException |
generateParseException()
|
Expression |
getExpression()
Returns the query expression generated by this object. |
Token |
getNextToken()
|
Token |
getToken(int index)
|
void |
inclusiveOr()
|
void |
literal()
|
static void |
main(String[] args)
Test bootstrap. |
void |
multiplicative()
|
void |
primary()
|
static Character |
readChar(StringReader reader)
Returns the character read after escaping, or null if at the end of the input. |
void |
ReInit(InputStream stream)
|
void |
ReInit(JDOQLTokenManager tm)
|
void |
ReInit(Reader stream)
|
void |
relational()
|
void |
setFilter(Object filter)
|
void |
type()
|
void |
unary()
|
void |
unaryNotPlusMinus()
|
Methods inherited from class org.xorm.query.AbstractQueryLanguage |
addOrdering, declareParameter, declareVariable, getCandidateClass, getOrdering, getParameterNames, getParameterType, getVariableNames, getVariableType, setClass, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public JDOQLTokenManager token_source
public Token token
public Token jj_nt
public boolean lookingAhead
Constructor Detail |
public JDOQL()
public JDOQL(InputStream stream)
public JDOQL(Reader stream)
public JDOQL(JDOQLTokenManager tm)
Method Detail |
public static void main(String[] args) throws ParseException, IOException
ParseException
IOException
public void compile() throws QuerySyntaxException
QueryLanguage
compile
in interface QueryLanguage
compile
in class AbstractQueryLanguage
QuerySyntaxException
public void setFilter(Object filter)
setFilter
in class AbstractQueryLanguage
public Expression getExpression()
QueryLanguage
getExpression
in interface QueryLanguage
getExpression
in class AbstractQueryLanguage
public static Character readChar(StringReader reader)
public final void literal() throws ParseException
ParseException
public final void clear() throws ParseException
ParseException
public final void expression() throws ParseException
ParseException
public final void conditionalOr() throws ParseException
ParseException
public final void _conditionalOr() throws ParseException
ParseException
public final void conditionalAnd() throws ParseException
ParseException
public final void _conditionalAnd() throws ParseException
ParseException
public final void inclusiveOr() throws ParseException
ParseException
public final void _inclusiveOr() throws ParseException
ParseException
public final void exclusiveOr() throws ParseException
ParseException
public final void _exclusiveOr() throws ParseException
ParseException
public final void and() throws ParseException
ParseException
public final void _and() throws ParseException
ParseException
public final void equality() throws ParseException
ParseException
public final void _equality() throws ParseException
ParseException
public final void relational() throws ParseException
ParseException
public final void _relational() throws ParseException
ParseException
public final void additive() throws ParseException
ParseException
public final void _additive() throws ParseException
ParseException
public final void multiplicative() throws ParseException
ParseException
public final void _multiplicative() throws ParseException
ParseException
public final void unary() throws ParseException
ParseException
public final void unaryNotPlusMinus() throws ParseException
ParseException
public final void cast() throws ParseException
ParseException
public final void type() throws ParseException
ParseException
public final void primary() throws ParseException
ParseException
public final void _primary() throws ParseException
ParseException
public final void argumentList() throws ParseException
ParseException
public final void _argumentList() throws ParseException
ParseException
public void ReInit(InputStream stream)
public void ReInit(Reader stream)
public void ReInit(JDOQLTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public final ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |