|
| FastCharStream (const ReaderPtr &reader) |
| Constructs from a Reader.
|
|
virtual | ~FastCharStream () |
|
virtual String | getClassName () |
|
boost::shared_ptr< FastCharStream > | shared_from_this () |
|
virtual wchar_t | readChar () |
| Returns the next character from the selected input. The method of selecting the input is the responsibility of the class implementing this interface.
|
|
virtual wchar_t | BeginToken () |
| Returns the next character that marks the beginning of the next token. All characters must remain in the buffer between two successive calls to this method to implement backup correctly.
|
|
virtual void | backup (int32_t amount) |
| Backs up the input stream by amount steps. Lexer calls this method if it had already read some characters, but could not use them to match a (longer) token. So, they will be used again as the prefix of the next token and it is the implementation's's responsibility to do this right.
|
|
virtual String | GetImage () |
| Returns a string made up of characters from the marked token beginning to the current buffer position. Implementations have the choice of returning anything that they want to. For example, for efficiency, one might decide to just return null, which is a valid implementation.
|
|
virtual CharArray | GetSuffix (int32_t length) |
| Returns an array of characters that make up the suffix of length for the currently matched token. This is used to build up the matched string for use in actions in the case of MORE.
|
|
virtual void | Done () |
| The lexer calls this function to indicate that it is done with the stream and hence implementations can free any resources held by this class. Again, the body of this function can be just empty and it will not affect the lexer's operation.
|
|
virtual int32_t | getColumn () |
| Returns the column position of the character last read.
|
|
virtual int32_t | getLine () |
| Returns the line number of the character last read.
|
|
virtual int32_t | getEndColumn () |
| Returns the column number of the last character for current token (being matched after the last call to BeginToken).
|
|
virtual int32_t | getEndLine () |
| Returns the line number of the last character for current token (being matched after the last call to BeginToken).
|
|
virtual int32_t | getBeginColumn () |
| Returns the column number of the first character for current token (being matched after the last call to BeginToken).
|
|
virtual int32_t | getBeginLine () |
| Returns the line number of the first character for current token (being matched after the last call to BeginToken).
|
|
virtual | ~LuceneObject () |
|
virtual void | initialize () |
| Called directly after instantiation to create objects that depend on this object being fully constructed.
|
|
virtual LuceneObjectPtr | clone (const LuceneObjectPtr &other=LuceneObjectPtr()) |
| Return clone of this object.
|
|
virtual int32_t | hashCode () |
| Return hash code for this object.
|
|
virtual bool | equals (const LuceneObjectPtr &other) |
| Return whether two objects are equal.
|
|
virtual int32_t | compareTo (const LuceneObjectPtr &other) |
| Compare two objects.
|
|
virtual String | toString () |
| Returns a string representation of the object.
|
|
virtual | ~LuceneSync () |
|
virtual SynchronizePtr | getSync () |
| Return this object synchronize lock.
|
|
virtual LuceneSignalPtr | getSignal () |
| Return this object signal.
|
|
virtual void | lock (int32_t timeout=0) |
| Lock this object using an optional timeout.
|
|
virtual void | unlock () |
| Unlock this object.
|
|
virtual bool | holdsLock () |
| Returns true if this object is currently locked by current thread.
|
|
virtual void | wait (int32_t timeout=0) |
| Wait for signal using an optional timeout.
|
|
virtual void | notifyAll () |
| Notify all threads waiting for signal.
|
|
An efficient implementation of QueryParserCharStream interface.
Note that this does not do line-number counting, but instead keeps track of the character position of the token in the input, as required by Lucene's Token
API.