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


Loading...
Searching...
No Matches
QueryParserTokenManager.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 QUERYPARSERTOKENMANAGER_H
8#define QUERYPARSERTOKENMANAGER_H
9
11
12namespace Lucene {
13
16public:
18 QueryParserTokenManager(const QueryParserCharStreamPtr& stream, int32_t lexState);
19
21
23
24public:
27
28protected:
29 static const int64_t jjbitVec0[];
30 static const int64_t jjbitVec1[];
31 static const int64_t jjbitVec3[];
32 static const int64_t jjbitVec4[];
33 static const int32_t jjnextStates[];
34
36 static const wchar_t* jjstrLiteralImages[];
37
39 static const wchar_t* lexStateNames[];
40
42 static const int32_t jjnewLexState[];
43 static const int64_t jjtoToken[];
44 static const int64_t jjtoSkip[];
45
46 int32_t curLexState;
49 int32_t jjround;
50 int32_t jjmatchedPos;
52
54 IntArray jjrounds;
55 IntArray jjstateSet;
56 wchar_t curChar;
57
58public:
60 void setDebugStream(const InfoStreamPtr& debugStream);
61
63 void ReInit(const QueryParserCharStreamPtr& stream);
64
66 void ReInit(const QueryParserCharStreamPtr& stream, int32_t lexState);
67
69 void SwitchTo(int32_t lexState);
70
73
74protected:
75 int32_t jjStopStringLiteralDfa_3(int32_t pos, int64_t active0);
76 int32_t jjStartNfa_3(int32_t pos, int64_t active0);
77 int32_t jjStopAtPos(int32_t pos, int32_t kind);
79 int32_t jjStartNfaWithStates_3(int32_t pos, int32_t kind, int32_t state);
80 int32_t jjMoveNfa_3(int32_t startState, int32_t curPos);
81 int32_t jjStopStringLiteralDfa_1(int32_t pos, int64_t active0);
82 int32_t jjStartNfa_1(int32_t pos, int64_t active0);
84 int32_t jjMoveStringLiteralDfa1_1(int64_t active0);
85 int32_t jjStartNfaWithStates_1(int32_t pos, int32_t kind, int32_t state);
86 int32_t jjMoveNfa_1(int32_t startState, int32_t curPos);
88 int32_t jjMoveNfa_0(int32_t startState, int32_t curPos);
89 int32_t jjStopStringLiteralDfa_2(int32_t pos, int64_t active0);
90 int32_t jjStartNfa_2(int32_t pos, int64_t active0);
92 int32_t jjMoveStringLiteralDfa1_2(int64_t active0);
93 int32_t jjStartNfaWithStates_2(int32_t pos, int32_t kind, int32_t state);
94 int32_t jjMoveNfa_2(int32_t startState, int32_t curPos);
95
96 static bool jjCanMove_0(int32_t hiByte, int32_t i1, int32_t i2, int64_t l1, int64_t l2);
97 static bool jjCanMove_1(int32_t hiByte, int32_t i1, int32_t i2, int64_t l1, int64_t l2);
98 static bool jjCanMove_2(int32_t hiByte, int32_t i1, int32_t i2, int64_t l1, int64_t l2);
99
102
103 void jjCheckNAdd(int32_t state);
104 void jjAddStates(int32_t start, int32_t end);
105 void jjCheckNAddTwoStates(int32_t state1, int32_t state2);
106 void jjCheckNAddStates(int32_t start, int32_t end);
107};
108
109}
110
111#endif
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
Base class for all Lucene classes.
Definition LuceneObject.h:31
Token literal values and constants.
Definition QueryParserConstants.h:15
Token Manager.
Definition QueryParserTokenManager.h:15
int32_t jjmatchedKind
Definition QueryParserTokenManager.h:51
int32_t jjStartNfaWithStates_3(int32_t pos, int32_t kind, int32_t state)
int32_t defaultLexState
Definition QueryParserTokenManager.h:47
int32_t jjStartNfa_3(int32_t pos, int64_t active0)
int32_t jjMoveNfa_0(int32_t startState, int32_t curPos)
int32_t jjmatchedPos
Definition QueryParserTokenManager.h:50
int32_t jjround
Definition QueryParserTokenManager.h:49
QueryParserCharStreamPtr input_stream
Definition QueryParserTokenManager.h:53
static bool jjCanMove_0(int32_t hiByte, int32_t i1, int32_t i2, int64_t l1, int64_t l2)
static bool jjCanMove_1(int32_t hiByte, int32_t i1, int32_t i2, int64_t l1, int64_t l2)
IntArray jjstateSet
Definition QueryParserTokenManager.h:55
static bool jjCanMove_2(int32_t hiByte, int32_t i1, int32_t i2, int64_t l1, int64_t l2)
int32_t jjStopStringLiteralDfa_1(int32_t pos, int64_t active0)
int32_t jjStartNfaWithStates_1(int32_t pos, int32_t kind, int32_t state)
void jjAddStates(int32_t start, int32_t end)
QueryParserTokenManager(const QueryParserCharStreamPtr &stream)
wchar_t curChar
Definition QueryParserTokenManager.h:56
int32_t jjStopStringLiteralDfa_2(int32_t pos, int64_t active0)
int32_t jjMoveStringLiteralDfa1_2(int64_t active0)
void jjCheckNAdd(int32_t state)
int32_t jjStartNfa_2(int32_t pos, int64_t active0)
int32_t jjMoveNfa_2(int32_t startState, int32_t curPos)
int32_t jjMoveNfa_3(int32_t startState, int32_t curPos)
void ReInit(const QueryParserCharStreamPtr &stream)
Reinitialise parser.
int32_t jjMoveStringLiteralDfa1_1(int64_t active0)
int32_t jjnewStateCnt
Definition QueryParserTokenManager.h:48
void jjCheckNAddStates(int32_t start, int32_t end)
void ReInit(const QueryParserCharStreamPtr &stream, int32_t lexState)
Reinitialise parser.
int32_t curLexState
Definition QueryParserTokenManager.h:46
void jjCheckNAddTwoStates(int32_t state1, int32_t state2)
int32_t jjStopStringLiteralDfa_3(int32_t pos, int64_t active0)
QueryParserTokenPtr getNextToken()
Get the next Token.
void setDebugStream(const InfoStreamPtr &debugStream)
Set debug output.
int32_t jjStartNfa_1(int32_t pos, int64_t active0)
int32_t jjStartNfaWithStates_2(int32_t pos, int32_t kind, int32_t state)
QueryParserTokenManager(const QueryParserCharStreamPtr &stream, int32_t lexState)
int32_t jjMoveNfa_1(int32_t startState, int32_t curPos)
QueryParserTokenPtr jjFillToken()
InfoStreamPtr debugStream
Debug output.
Definition QueryParserTokenManager.h:26
int32_t jjStopAtPos(int32_t pos, int32_t kind)
IntArray jjrounds
Definition QueryParserTokenManager.h:54
void SwitchTo(int32_t lexState)
Switch to specified lex state.
Definition AbstractAllTermDocs.h:12
boost::shared_ptr< InfoStream > InfoStreamPtr
Definition LuceneTypes.h:532
boost::shared_ptr< QueryParserCharStream > QueryParserCharStreamPtr
Definition LuceneTypes.h:271
boost::shared_ptr< QueryParserToken > QueryParserTokenPtr
Definition LuceneTypes.h:273

clucene.sourceforge.net