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


 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | Static Public Member Functions | Data Fields | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Static Protected Attributes
Lucene::QueryParserTokenManager Class Reference

Token Manager. More...

#include <QueryParserTokenManager.h>

+ Inheritance diagram for Lucene::QueryParserTokenManager:

Public Member Functions

 QueryParserTokenManager (QueryParserCharStreamPtr stream)
 
 QueryParserTokenManager (QueryParserCharStreamPtr stream, int32_t lexState)
 
virtual ~QueryParserTokenManager ()
 
virtual String getClassName ()
 
boost::shared_ptr
< QueryParserTokenManager
shared_from_this ()
 
void setDebugStream (InfoStreamPtr debugStream)
 Set debug output. More...
 
void ReInit (QueryParserCharStreamPtr stream)
 Reinitialise parser. More...
 
void ReInit (QueryParserCharStreamPtr stream, int32_t lexState)
 Reinitialise parser. More...
 
void SwitchTo (int32_t lexState)
 Switch to specified lex state. More...
 
QueryParserTokenPtr getNextToken ()
 Get the next Token. More...
 
- Public Member Functions inherited from Lucene::QueryParserConstants
virtual ~QueryParserConstants ()
 
- Public Member Functions inherited from Lucene::LuceneObject
virtual ~LuceneObject ()
 
virtual void initialize ()
 Called directly after instantiation to create objects that depend on this object being fully constructed. More...
 
virtual LuceneObjectPtr clone (LuceneObjectPtr other=LuceneObjectPtr())
 Return clone of this object. More...
 
virtual int32_t hashCode ()
 Return hash code for this object. More...
 
virtual bool equals (LuceneObjectPtr other)
 Return whether two objects are equal. More...
 
virtual int32_t compareTo (LuceneObjectPtr other)
 Compare two objects. More...
 
virtual String toString ()
 Returns a string representation of the object. More...
 
- Public Member Functions inherited from Lucene::LuceneSync
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 Public Member Functions inherited from Lucene::QueryParserConstants
static String _getClassName ()
 

Data Fields

InfoStreamPtr debugStream
 Debug output. More...
 

Protected Member Functions

int32_t jjStopStringLiteralDfa_3 (int32_t pos, int64_t active0)
 
int32_t jjStartNfa_3 (int32_t pos, int64_t active0)
 
int32_t jjStopAtPos (int32_t pos, int32_t kind)
 
int32_t jjMoveStringLiteralDfa0_3 ()
 
int32_t jjStartNfaWithStates_3 (int32_t pos, int32_t kind, int32_t state)
 
int32_t jjMoveNfa_3 (int32_t startState, int32_t curPos)
 
int32_t jjStopStringLiteralDfa_1 (int32_t pos, int64_t active0)
 
int32_t jjStartNfa_1 (int32_t pos, int64_t active0)
 
int32_t jjMoveStringLiteralDfa0_1 ()
 
int32_t jjMoveStringLiteralDfa1_1 (int64_t active0)
 
int32_t jjStartNfaWithStates_1 (int32_t pos, int32_t kind, int32_t state)
 
int32_t jjMoveNfa_1 (int32_t startState, int32_t curPos)
 
int32_t jjMoveStringLiteralDfa0_0 ()
 
int32_t jjMoveNfa_0 (int32_t startState, int32_t curPos)
 
int32_t jjStopStringLiteralDfa_2 (int32_t pos, int64_t active0)
 
int32_t jjStartNfa_2 (int32_t pos, int64_t active0)
 
int32_t jjMoveStringLiteralDfa0_2 ()
 
int32_t jjMoveStringLiteralDfa1_2 (int64_t active0)
 
int32_t jjStartNfaWithStates_2 (int32_t pos, int32_t kind, int32_t state)
 
int32_t jjMoveNfa_2 (int32_t startState, int32_t curPos)
 
void ReInitRounds ()
 
QueryParserTokenPtr jjFillToken ()
 
void jjCheckNAdd (int32_t state)
 
void jjAddStates (int32_t start, int32_t end)
 
void jjCheckNAddTwoStates (int32_t state1, int32_t state2)
 
void jjCheckNAddStates (int32_t start, int32_t end)
 
- Protected Member Functions inherited from Lucene::QueryParserConstants
 QueryParserConstants ()
 
- Protected Member Functions inherited from Lucene::LuceneObject
 LuceneObject ()
 

Static Protected Member Functions

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)
 
static bool jjCanMove_2 (int32_t hiByte, int32_t i1, int32_t i2, int64_t l1, int64_t l2)
 

Protected Attributes

int32_t curLexState
 
int32_t defaultLexState
 
int32_t jjnewStateCnt
 
int32_t jjround
 
int32_t jjmatchedPos
 
int32_t jjmatchedKind
 
QueryParserCharStreamPtr input_stream
 
IntArray jjrounds
 
IntArray jjstateSet
 
wchar_t curChar
 

Static Protected Attributes

static const int64_t jjbitVec0 []
 
static const int64_t jjbitVec1 []
 
static const int64_t jjbitVec3 []
 
static const int64_t jjbitVec4 []
 
static const int32_t jjnextStates []
 
static const wchar_t * jjstrLiteralImages []
 Token literal values. More...
 
static const wchar_t * lexStateNames []
 Lexer state names. More...
 
static const int32_t jjnewLexState []
 Lex State array. More...
 
static const int64_t jjtoToken []
 
static const int64_t jjtoSkip []
 
- Static Protected Attributes inherited from Lucene::QueryParserConstants
static const wchar_t * _tokenImage []
 Literal token values. More...
 

Additional Inherited Members

- Public Types inherited from Lucene::QueryParserConstants
enum  RegularExpressionId {
  _EOF = 0, _NUM_CHAR = 1, _ESCAPED_CHAR = 2, _TERM_START_CHAR = 3,
  _TERM_CHAR = 4, _WHITESPACE = 5, _QUOTED_CHAR = 6, AND = 8,
  OR = 9, NOT = 10, PLUS = 11, MINUS = 12,
  LPAREN = 13, RPAREN = 14, COLON = 15, STAR = 16,
  CARAT = 17, QUOTED = 18, TERM = 19, FUZZY_SLOP = 20,
  PREFIXTERM = 21, WILDTERM = 22, RANGEIN_START = 23, RANGEEX_START = 24,
  NUMBER = 25, RANGEIN_TO = 26, RANGEIN_END = 27, RANGEIN_QUOTED = 28,
  RANGEIN_GOOP = 29, RANGEEX_TO = 30, RANGEEX_END = 31, RANGEEX_QUOTED = 32,
  RANGEEX_GOOP = 33
}
 
enum  LexicalState { Boost = 0, RangeEx = 1, RangeIn = 2, DEFAULT = 3 }
 
- Static Public Attributes inherited from Lucene::QueryParserConstants
static Collection< String > tokenImage
 Literal token values. More...
 

Detailed Description

Token Manager.

Constructor & Destructor Documentation

Lucene::QueryParserTokenManager::QueryParserTokenManager ( QueryParserCharStreamPtr  stream)
Lucene::QueryParserTokenManager::QueryParserTokenManager ( QueryParserCharStreamPtr  stream,
int32_t  lexState 
)
virtual Lucene::QueryParserTokenManager::~QueryParserTokenManager ( )
virtual

Member Function Documentation

static String Lucene::QueryParserTokenManager::_getClassName ( )
inlinestatic
virtual String Lucene::QueryParserTokenManager::getClassName ( )
inlinevirtual

Reimplemented from Lucene::QueryParserConstants.

QueryParserTokenPtr Lucene::QueryParserTokenManager::getNextToken ( )

Get the next Token.

void Lucene::QueryParserTokenManager::jjAddStates ( int32_t  start,
int32_t  end 
)
protected
static bool Lucene::QueryParserTokenManager::jjCanMove_0 ( int32_t  hiByte,
int32_t  i1,
int32_t  i2,
int64_t  l1,
int64_t  l2 
)
staticprotected
static bool Lucene::QueryParserTokenManager::jjCanMove_1 ( int32_t  hiByte,
int32_t  i1,
int32_t  i2,
int64_t  l1,
int64_t  l2 
)
staticprotected
static bool Lucene::QueryParserTokenManager::jjCanMove_2 ( int32_t  hiByte,
int32_t  i1,
int32_t  i2,
int64_t  l1,
int64_t  l2 
)
staticprotected
void Lucene::QueryParserTokenManager::jjCheckNAdd ( int32_t  state)
protected
void Lucene::QueryParserTokenManager::jjCheckNAddStates ( int32_t  start,
int32_t  end 
)
protected
void Lucene::QueryParserTokenManager::jjCheckNAddTwoStates ( int32_t  state1,
int32_t  state2 
)
protected
QueryParserTokenPtr Lucene::QueryParserTokenManager::jjFillToken ( )
protected
int32_t Lucene::QueryParserTokenManager::jjMoveNfa_0 ( int32_t  startState,
int32_t  curPos 
)
protected
int32_t Lucene::QueryParserTokenManager::jjMoveNfa_1 ( int32_t  startState,
int32_t  curPos 
)
protected
int32_t Lucene::QueryParserTokenManager::jjMoveNfa_2 ( int32_t  startState,
int32_t  curPos 
)
protected
int32_t Lucene::QueryParserTokenManager::jjMoveNfa_3 ( int32_t  startState,
int32_t  curPos 
)
protected
int32_t Lucene::QueryParserTokenManager::jjMoveStringLiteralDfa0_0 ( )
protected
int32_t Lucene::QueryParserTokenManager::jjMoveStringLiteralDfa0_1 ( )
protected
int32_t Lucene::QueryParserTokenManager::jjMoveStringLiteralDfa0_2 ( )
protected
int32_t Lucene::QueryParserTokenManager::jjMoveStringLiteralDfa0_3 ( )
protected
int32_t Lucene::QueryParserTokenManager::jjMoveStringLiteralDfa1_1 ( int64_t  active0)
protected
int32_t Lucene::QueryParserTokenManager::jjMoveStringLiteralDfa1_2 ( int64_t  active0)
protected
int32_t Lucene::QueryParserTokenManager::jjStartNfa_1 ( int32_t  pos,
int64_t  active0 
)
protected
int32_t Lucene::QueryParserTokenManager::jjStartNfa_2 ( int32_t  pos,
int64_t  active0 
)
protected
int32_t Lucene::QueryParserTokenManager::jjStartNfa_3 ( int32_t  pos,
int64_t  active0 
)
protected
int32_t Lucene::QueryParserTokenManager::jjStartNfaWithStates_1 ( int32_t  pos,
int32_t  kind,
int32_t  state 
)
protected
int32_t Lucene::QueryParserTokenManager::jjStartNfaWithStates_2 ( int32_t  pos,
int32_t  kind,
int32_t  state 
)
protected
int32_t Lucene::QueryParserTokenManager::jjStartNfaWithStates_3 ( int32_t  pos,
int32_t  kind,
int32_t  state 
)
protected
int32_t Lucene::QueryParserTokenManager::jjStopAtPos ( int32_t  pos,
int32_t  kind 
)
protected
int32_t Lucene::QueryParserTokenManager::jjStopStringLiteralDfa_1 ( int32_t  pos,
int64_t  active0 
)
protected
int32_t Lucene::QueryParserTokenManager::jjStopStringLiteralDfa_2 ( int32_t  pos,
int64_t  active0 
)
protected
int32_t Lucene::QueryParserTokenManager::jjStopStringLiteralDfa_3 ( int32_t  pos,
int64_t  active0 
)
protected
void Lucene::QueryParserTokenManager::ReInit ( QueryParserCharStreamPtr  stream)

Reinitialise parser.

void Lucene::QueryParserTokenManager::ReInit ( QueryParserCharStreamPtr  stream,
int32_t  lexState 
)

Reinitialise parser.

void Lucene::QueryParserTokenManager::ReInitRounds ( )
protected
void Lucene::QueryParserTokenManager::setDebugStream ( InfoStreamPtr  debugStream)

Set debug output.

boost::shared_ptr< QueryParserTokenManager > Lucene::QueryParserTokenManager::shared_from_this ( )
inline
void Lucene::QueryParserTokenManager::SwitchTo ( int32_t  lexState)

Switch to specified lex state.

Field Documentation

wchar_t Lucene::QueryParserTokenManager::curChar
protected
int32_t Lucene::QueryParserTokenManager::curLexState
protected
InfoStreamPtr Lucene::QueryParserTokenManager::debugStream

Debug output.

int32_t Lucene::QueryParserTokenManager::defaultLexState
protected
QueryParserCharStreamPtr Lucene::QueryParserTokenManager::input_stream
protected
const int64_t Lucene::QueryParserTokenManager::jjbitVec0[]
staticprotected
const int64_t Lucene::QueryParserTokenManager::jjbitVec1[]
staticprotected
const int64_t Lucene::QueryParserTokenManager::jjbitVec3[]
staticprotected
const int64_t Lucene::QueryParserTokenManager::jjbitVec4[]
staticprotected
int32_t Lucene::QueryParserTokenManager::jjmatchedKind
protected
int32_t Lucene::QueryParserTokenManager::jjmatchedPos
protected
const int32_t Lucene::QueryParserTokenManager::jjnewLexState[]
staticprotected

Lex State array.

int32_t Lucene::QueryParserTokenManager::jjnewStateCnt
protected
const int32_t Lucene::QueryParserTokenManager::jjnextStates[]
staticprotected
int32_t Lucene::QueryParserTokenManager::jjround
protected
IntArray Lucene::QueryParserTokenManager::jjrounds
protected
IntArray Lucene::QueryParserTokenManager::jjstateSet
protected
const wchar_t* Lucene::QueryParserTokenManager::jjstrLiteralImages[]
staticprotected

Token literal values.

const int64_t Lucene::QueryParserTokenManager::jjtoSkip[]
staticprotected
const int64_t Lucene::QueryParserTokenManager::jjtoToken[]
staticprotected
const wchar_t* Lucene::QueryParserTokenManager::lexStateNames[]
staticprotected

Lexer state names.


The documentation for this class was generated from the following file:

clucene.sourceforge.net