Class LookaheadTokenFilter<T>
Inheritance
System.Object
LookaheadTokenFilter<T>
Assembly: Lucene.Net.TestFramework.dll
Syntax
public abstract class LookaheadTokenFilter<T> : TokenFilter where T : LookaheadTokenFilter.Position
Type Parameters
Name | Description |
---|---|
T |
Constructors
Name | Description |
---|---|
LookaheadTokenFilter(TokenStream) |
Fields
Name | Description |
---|---|
DEBUG | |
end | |
InputPos | |
OffsetAtt | |
OutputPos | |
PosIncAtt | |
positions | |
PosLenAtt |
Methods
Name | Description |
---|---|
AfterPosition() | this is called when all input tokens leaving a given position have been returned. Override this and call insertToken and then set whichever token's attributes you want, if you want to inject a token starting from this position. |
InsertToken() | Call this only from within afterPosition, to insert a new token. After calling this you should set any necessary token you need. |
NewPosition() | |
NextToken() | Call this when you are done looking ahead; it will set the next token to return. Return the boolean back to the caller. |
PeekToken() | Returns true if there is a new token. |
Reset() |