org.eobjects.metamodel.query.parser
Class QueryParser
java.lang.Object
org.eobjects.metamodel.query.parser.QueryParser
public class QueryParser
- extends Object
A parser class of for full SQL-like queries.
|
Method Summary |
protected int[] |
indexesOf(String string,
int[] previousIndices)
Finds the start and end indexes of a string in the query. |
Query |
parse()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QueryParser
public QueryParser(DataContext dataContext,
String queryString)
parse
public Query parse()
throws QueryParserException
- Throws:
QueryParserException
indexesOf
protected int[] indexesOf(String string,
int[] previousIndices)
- Finds the start and end indexes of a string in the query. The string
parameter of this method is expected to be in upper case, while the query
itself is tolerant of case differences.
- Parameters:
string - previousIndices -
- Returns:
Copyright © 2007-2013. All Rights Reserved.