Lucene++ - a full-featured, c++ search engine
API Documentation
Utility class to handle query parse errors. More...
#include <QueryParseError.h>
Public Member Functions | |
virtual | ~QueryParseError () |
virtual String | getClassName () |
boost::shared_ptr< QueryParseError > | shared_from_this () |
![]() | |
virtual | ~LuceneObject () |
virtual void | initialize () |
Called directly after instantiation to create objects that depend on this object being fully constructed. More... | |
virtual LuceneObjectPtr | clone (const LuceneObjectPtr &other=LuceneObjectPtr()) |
Return clone of this object. More... | |
virtual int32_t | hashCode () |
Return hash code for this object. More... | |
virtual bool | equals (const LuceneObjectPtr &other) |
Return whether two objects are equal. More... | |
virtual int32_t | compareTo (const LuceneObjectPtr &other) |
Compare two objects. More... | |
virtual String | toString () |
Returns a string representation of the object. More... | |
![]() | |
virtual | ~LuceneSync () |
virtual SynchronizePtr | getSync () |
Return this object synchronize lock. More... | |
virtual LuceneSignalPtr | getSignal () |
Return this object signal. More... | |
virtual void | lock (int32_t timeout=0) |
Lock this object using an optional timeout. More... | |
virtual void | unlock () |
Unlock this object. More... | |
virtual bool | holdsLock () |
Returns true if this object is currently locked by current thread. More... | |
virtual void | wait (int32_t timeout=0) |
Wait for signal using an optional timeout. More... | |
virtual void | notifyAll () |
Notify all threads waiting for signal. More... | |
Static Public Member Functions | |
static String | _getClassName () |
static String | lexicalError (bool EOFSeen, int32_t lexState, int32_t errorLine, int32_t errorColumn, const String &errorAfter, wchar_t curChar) |
Returns a detailed message for the Error when it is thrown by the token manager to indicate a lexical error. More... | |
static String | parseError (const QueryParserTokenPtr ¤tToken, Collection< Collection< int32_t > > expectedTokenSequences, Collection< String > tokenImage) |
Generate a parse error message and returns it. More... | |
Static Protected Member Functions | |
static String | addEscapes (const String &str) |
Replaces unprintable characters by their escaped (or unicode escaped) equivalents in the given string. More... | |
Additional Inherited Members | |
![]() | |
LuceneObject () | |
![]() | |
SynchronizePtr | objectLock |
LuceneSignalPtr | objectSignal |
Utility class to handle query parse errors.
|
virtual |
|
inlinestatic |
|
staticprotected |
Replaces unprintable characters by their escaped (or unicode escaped) equivalents in the given string.
|
inlinevirtual |
|
static |
Returns a detailed message for the Error when it is thrown by the token manager to indicate a lexical error.
EOFSeen | Indicates if EOF caused the lexical error |
curLexState | Lexical state in which this error occurred |
errorLine | Line number when the error occurred |
errorColumn | Column number when the error occurred |
errorAfter | Prefix that was seen before this error occurred |
curChar | The offending character |
|
static |
Generate a parse error message and returns it.
currentToken | This is the last token that has been consumed successfully. If this object has been created due to a parse error, the token following this token will (therefore) be the first error token. |
expectedTokenSequences | Each entry in this array is an array of integers. Each array of integers represents a sequence of tokens (by their ordinal values) that is expected at this point of the parse. |
tokenImage | This is a reference to the "tokenImage" array of the generated parser within which the parse error occurred. |
|
inline |