Lucene++ - a full-featured, c++ search engine
API Documentation


Loading...
Searching...
No Matches
QueryParserCharStream.h
Go to the documentation of this file.
1
2// Copyright (c) 2009-2014 Alan Wright. All rights reserved.
3// Distributable under the terms of either the Apache License (Version 2.0)
4// or the GNU Lesser General Public License.
6
7#ifndef QUERYPARSERCHARSTREAM_H
8#define QUERYPARSERCHARSTREAM_H
9
10#include "LuceneObject.h"
11
12namespace Lucene {
13
23public:
25
26public:
29 virtual wchar_t readChar() = 0;
30
34 virtual int32_t getColumn() = 0;
35
39 virtual int32_t getLine() = 0;
40
43 virtual int32_t getEndColumn() = 0;
44
47 virtual int32_t getEndLine() = 0;
48
51 virtual int32_t getBeginColumn() = 0;
52
55 virtual int32_t getBeginLine() = 0;
56
60 virtual void backup(int32_t amount) = 0;
61
64 virtual wchar_t BeginToken() = 0;
65
69 virtual String GetImage() = 0;
70
73 virtual CharArray GetSuffix(int32_t length) = 0;
74
78 virtual void Done() = 0;
79};
80
81}
82
83#endif
#define LUCENE_INTERFACE(Name)
Definition LuceneObject.h:19
This interface describes a character stream that maintains line and column number positions of the ch...
Definition QueryParserCharStream.h:22
virtual String GetImage()=0
Returns a string made up of characters from the marked token beginning to the current buffer position...
virtual int32_t getBeginColumn()=0
Returns the column number of the first character for current token (being matched after the last call...
virtual int32_t getLine()=0
Returns the line number of the character last read.
virtual int32_t getEndColumn()=0
Returns the column number of the last character for current token (being matched after the last call ...
virtual wchar_t readChar()=0
Returns the next character from the selected input. The method of selecting the input is the responsi...
virtual wchar_t BeginToken()=0
Returns the next character that marks the beginning of the next token. All characters must remain in ...
virtual void backup(int32_t amount)=0
Backs up the input stream by amount steps. Lexer calls this method if it had already read some charac...
virtual int32_t getEndLine()=0
Returns the line number of the last character for current token (being matched after the last call to...
virtual int32_t getBeginLine()=0
Returns the line number of the first character for current token (being matched after the last call t...
virtual CharArray GetSuffix(int32_t length)=0
Returns an array of characters that make up the suffix of length for the currently matched token....
virtual int32_t getColumn()=0
Returns the column position of the character last read.
virtual void Done()=0
The lexer calls this function to indicate that it is done with the stream and hence implementations c...
Definition AbstractAllTermDocs.h:12

clucene.sourceforge.net