|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.appengine.api.search.query.ParserUtils
public class ParserUtils
A helper class that holds various, state-less utility functions used by the query parser.
| Method Summary | |
|---|---|
static boolean |
isDate(java.lang.String text)
Returns if the given string looks like a date to us. |
static boolean |
isNumber(java.lang.String text)
Returns whether or not the given text looks like a number. |
static java.lang.String |
normalizePhrase(java.lang.String phrase)
Normalizes the phrase text. |
static java.lang.String |
trimLast(java.lang.String text)
Removes the last character from the given text |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.lang.String trimLast(java.lang.String text)
public static java.lang.String normalizePhrase(java.lang.String phrase)
phrase - the phrase to be normalized
public static boolean isNumber(java.lang.String text)
text - the text tested if it looks like a number
public static boolean isDate(java.lang.String text)
text - text checked if it looks like a date
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||