| |
|
| java.lang.Object org.xorm.query.AbstractQueryLanguage org.xorm.query.jdoql.JDOQL
JDOQL | public class JDOQL extends AbstractQueryLanguage implements JDOQLConstants(Code) | | 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.
author: Wes Biggs |
Inner Class :final static class JJCalls | |
lookingAhead | public boolean lookingAhead(Code) | | |
clear | final public void clear() throws ParseException(Code) | | This is an empty-grammar pattern that gives the expression
generator a hint that it's now working on a new expression.
|
disable_tracing | final public void disable_tracing()(Code) | | |
enable_tracing | final public void enable_tracing()(Code) | | |
expression | final public void expression() throws ParseException(Code) | | This is the top-level method that gets called to parse the JDOQL
filter expression.
|
main | public static void main(String args) throws ParseException, IOException(Code) | | Test bootstrap. Allows you to enter JDOQL expressions using
STDIN and see the results. For the purposes of testing,
variables var, var2 and var3 and parameters param, param2,
and param3 are declared.
|
readChar | public static Character readChar(StringReader reader)(Code) | | Returns the character read after escaping, or null if
at the end of the input.
|
|
|
|