Property | Type | Description | |
---|---|---|---|
getNextPrefixInputToken | Token | ||
getNextSuffixInputToken | Token |
Method | Description | |
---|---|---|
PrefixAwareTokenFilter ( TokenStream prefix, TokenStream suffix ) | ||
close ( ) : void | ||
end ( ) : void | ||
incrementToken ( ) : bool | ||
reset ( ) : void | ||
updateSuffixToken ( Token suffixToken, Token lastPrefixToken ) : Token |
The default implementation adds last prefix token end offset to the suffix token start and end offsets.
|
Method | Description | |
---|---|---|
getNextPrefixInputToken ( Token token ) : Token | ||
getNextSuffixInputToken ( Token token ) : Token |
public PrefixAwareTokenFilter ( TokenStream prefix, TokenStream suffix ) | ||
prefix | TokenStream | |
suffix | TokenStream |
public updateSuffixToken ( Token suffixToken, Token lastPrefixToken ) : Token | ||
suffixToken | Token | a token from the suffix stream |
lastPrefixToken | Token | the last token from the prefix stream |
return | Token |