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


Loading...
Searching...
No Matches
QueryParserToken.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 QUERYPARSERTOKEN_H
8#define QUERYPARSERTOKEN_H
9
10#include "LuceneObject.h"
11
12namespace Lucene {
13
15class LPPAPI QueryParserToken : public LuceneObject {
16public:
18 QueryParserToken(int32_t kind = 0, const String& image = EmptyString);
19
21
23
24public:
26 int32_t kind;
27
29 int32_t beginLine;
30
32 int32_t beginColumn;
33
35 int32_t endLine;
36
38 int32_t endColumn;
39
41 String image;
42
48
57
58public:
60 virtual String toString();
61
65 static QueryParserTokenPtr newToken(int32_t ofKind, const String& image = EmptyString);
66};
67
68}
69
70#endif
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
Base class for all Lucene classes.
Definition LuceneObject.h:31
Describes the input token stream.
Definition QueryParserToken.h:15
String image
The string image of the token.
Definition QueryParserToken.h:41
QueryParserTokenPtr specialToken
This field is used to access special tokens that occur prior to this token, but after the immediately...
Definition QueryParserToken.h:56
int32_t beginColumn
The column number of the first character of this Token.
Definition QueryParserToken.h:32
static QueryParserTokenPtr newToken(int32_t ofKind, const String &image=EmptyString)
Returns a new Token object, by default. However, if you want, you can create and return subclass obje...
int32_t beginLine
The line number of the first character of this Token.
Definition QueryParserToken.h:29
int32_t endLine
The line number of the last character of this Token.
Definition QueryParserToken.h:35
int32_t kind
An integer that describes the kind of this token.
Definition QueryParserToken.h:26
QueryParserToken(int32_t kind=0, const String &image=EmptyString)
Constructs a new token for the specified Image and Kind.
virtual String toString()
Returns the image.
int32_t endColumn
The column number of the last character of this Token.
Definition QueryParserToken.h:38
QueryParserTokenPtr next
A reference to the next regular (non-special) token from the input stream. If this is the last token ...
Definition QueryParserToken.h:47
Definition AbstractAllTermDocs.h:12
boost::shared_ptr< QueryParserToken > QueryParserTokenPtr
Definition LuceneTypes.h:273

clucene.sourceforge.net