|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--com.neoworks.rdc.Parser
|
+--com.neoworks.jukex.query.JukeXParser
A recursive descent compiler which parses the JukeX Query Language into an object which represents a query.
| Field Summary | |
static int |
SORT_ASC
Result sorting (ORDER BY) flag indicating that results should be sorted in ascending order |
static int |
SORT_DESC
Result sorting (ORDER BY) flag indicating that results should be sorted in descending order |
static int |
SORT_NONE
Result sorting (ORDER BY) flag indicating that results should not be sorted |
| Fields inherited from class com.neoworks.rdc.Parser |
DUMMY, fVerbose, ID, LOOKAHEAD_TYPE, LOOKAHEAD_VALUE, NONE, NUM, STRING |
| Method Summary | |
static JukeXParser |
createParser(java.lang.String parseString)
Create a new parser for the supplied String |
Expression |
expression()
Parse an expression |
java.util.Set |
getAttributes()
Returns a Set of String objects representing
the set of attribute names present in the query. |
java.util.List |
getSelectAttributes()
Get a List of Strings representing the attributes present in the SELECT statement of the query. |
Expression |
logicalop()
Parse a logical operation |
Query |
parse()
Parse the string. |
Expression |
prefixop()
Parse a prefix operation. |
Expression |
relopexpression()
Parse a relational operation. |
| Methods inherited from class com.neoworks.rdc.Parser |
configure, displayMessageVerbose, getLookAheadData, getLookAheadType, getLookAheadValue, getVerbose, lookAhead, lookAhead, lookupTokenID, match, match, match, parseError, parseError, parseError, parseError, setVerbose |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int SORT_NONE
public static final int SORT_ASC
public static final int SORT_DESC
| Method Detail |
public static JukeXParser createParser(java.lang.String parseString)
parseString - The String to parse
public Query parse()
throws ParserException
ParserException - If the string does not represent a valid query
public Expression expression()
throws ParserException
ParserException - If there is a parse error
public Expression logicalop()
throws ParserException
ParserException - If there is a parse error
public Expression prefixop()
throws ParserException
ParserException - If there is a parse error
public Expression relopexpression()
throws ParserException
ParserException - If there is a parse errorpublic java.util.Set getAttributes()
Set of String objects representing
the set of attribute names present in the query.
Set of String objectspublic java.util.List getSelectAttributes()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||