public class QueryParser
extends java.util.ArrayList<java.lang.String>
| Modifier and Type | Class and Description | 
|---|---|
| class  | QueryParser.PositionThe Class Position. | 
| Constructor and Description | 
|---|
| QueryParser(java.lang.String query)Instantiates a new query parser. | 
| Modifier and Type | Method and Description | 
|---|---|
| QueryParser.Position | getPosition()Gets the position. | 
| boolean | hasNext()Checks for next. | 
| java.lang.String | peek()Peek. | 
| java.lang.String | remainingString()Used to obtain the unparsed query string. | 
| java.lang.String | searchToken(java.lang.String[] tokenList)Search the remaining tokens in the query for any of the tokens
 in the array received as a parameter. | 
| java.lang.String[] | searchTwoTokens(java.lang.String[] firstToken,
               java.lang.String[] nextToken)Search for any of the tokens in the list of firstTokens. | 
| void | setPosition(QueryParser.Position newPosition)Sets the position. | 
| java.lang.String | textBeforeTwoTokens(java.lang.String[] operators,
                   java.lang.String[] tokens)returns the text from the current position to the position of the next two tokens. | 
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizepublic QueryParser(java.lang.String query)
query - the querypublic java.lang.String peek()
public boolean hasNext()
public QueryParser.Position getPosition()
public void setPosition(QueryParser.Position newPosition)
newPosition - the new positionpublic java.lang.String searchToken(java.lang.String[] tokenList)
tokenList - the token listpublic java.lang.String[] searchTwoTokens(java.lang.String[] firstToken,
                                          java.lang.String[] nextToken)
firstToken - the first tokennextToken - the next tokenpublic java.lang.String remainingString()
public java.lang.String textBeforeTwoTokens(java.lang.String[] operators,
                                            java.lang.String[] tokens)
operators - the operatorstokens - the tokensCopyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa