C# Класс Lucene.Net.Analysis.Standard.ClassicTokenizerImpl

This class implements the classic lucene StandardTokenizer up until 3.0
Наследование: StandardTokenizerInterface
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
ACRONYM int
ACRONYM_DEP int
ALPHANUM int
APOSTROPHE int
CJ int
COMPANY int
EMAIL int
HOST int
NUM int
TOKEN_TYPES string[]
YYEOF int

Открытые методы

Метод Описание
GetNextToken ( ) : int

Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.

GetText ( ICharTermAttribute t ) : void

Fills CharTermAttribute with the current token text.

YyBegin ( int newState ) : void

Enters a new lexical state

YyCharAt ( int pos ) : char

Returns the character at position pos from the matched text. It is equivalent to YyText().charAt(pos), but faster

YyClose ( ) : void

Closes the input stream.

YyPushBack ( int number ) : void

Pushes the specified amount of characters back into the input stream. They will be read again by then next call of the scanning method

YyReset ( TextReader.TextReader reader ) : void

Resets the scanner to read from a new input stream. Does not close the old reader. All internal variables are reset, the old input stream cannot be reused (internal buffer is discarded and lost). Lexical state is set to ZZ_INITIAL. Internal scan buffer is resized down to its initial length, if it has grown.

Приватные методы

Метод Описание
ClassicTokenizerImpl ( TextReader.TextReader @in ) : System

Creates a new scanner

ZzRefill ( ) : bool

Refills the input buffer.

ZzScanError ( int errorCode ) : void

Reports an error that occured while scanning. In a wellformed scanner (no or only correct usage of YyPushBack(int) and a match-all fallback rule) this method will only be called with things that "Can't Possibly Happen". If this method is called, something is seriously wrong (e.g. a JFlex bug producing a faulty scanner etc.). Usual syntax/scanner level error handling should be done in error fallback rules.

ZzUnpackAction ( string packed, int offset, int result ) : int
ZzUnpackAction ( ) : int[]
ZzUnpackAttribute ( string packed, int offset, int result ) : int
ZzUnpackAttribute ( ) : int[]
ZzUnpackCMap ( string packed ) : char[]

Unpacks the compressed character translation table.

ZzUnpackRowMap ( string packed, int offset, int result ) : int
ZzUnpackRowMap ( ) : int[]
ZzUnpackTrans ( string packed, int offset, int result ) : int
ZzUnpackTrans ( ) : int[]

Описание методов

GetNextToken() публичный Метод

Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.
if any I/O-Error occurs
public GetNextToken ( ) : int
Результат int

GetText() публичный Метод

Fills CharTermAttribute with the current token text.
public GetText ( ICharTermAttribute t ) : void
t ICharTermAttribute
Результат void

YyBegin() публичный Метод

Enters a new lexical state
public YyBegin ( int newState ) : void
newState int the new lexical state
Результат void

YyCharAt() публичный Метод

Returns the character at position pos from the matched text. It is equivalent to YyText().charAt(pos), but faster
public YyCharAt ( int pos ) : char
pos int the position of the character to fetch. /// A value from 0 to YyLength()-1. ///
Результат char

YyClose() публичный Метод

Closes the input stream.
public YyClose ( ) : void
Результат void

YyPushBack() публичный Метод

Pushes the specified amount of characters back into the input stream. They will be read again by then next call of the scanning method
public YyPushBack ( int number ) : void
number int the number of characters to be read again. /// This number must not be greater than YyLength()!
Результат void

YyReset() публичный Метод

Resets the scanner to read from a new input stream. Does not close the old reader. All internal variables are reset, the old input stream cannot be reused (internal buffer is discarded and lost). Lexical state is set to ZZ_INITIAL. Internal scan buffer is resized down to its initial length, if it has grown.
public YyReset ( TextReader.TextReader reader ) : void
reader System.IO.TextReader.TextReader the new input stream
Результат void

Описание свойств

ACRONYM публичное статическое свойство

public static int ACRONYM
Результат int

ACRONYM_DEP публичное статическое свойство

public static int ACRONYM_DEP
Результат int

ALPHANUM публичное статическое свойство

public static int ALPHANUM
Результат int

APOSTROPHE публичное статическое свойство

public static int APOSTROPHE
Результат int

CJ публичное статическое свойство

public static int CJ
Результат int

COMPANY публичное статическое свойство

public static int COMPANY
Результат int

EMAIL публичное статическое свойство

public static int EMAIL
Результат int

HOST публичное статическое свойство

public static int HOST
Результат int

NUM публичное статическое свойство

public static int NUM
Результат int

TOKEN_TYPES публичное статическое свойство

public static string[] TOKEN_TYPES
Результат string[]

YYEOF публичное статическое свойство

This character denotes the end of file
public static int YYEOF
Результат int