|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.aliasi.tokenizer.ModifiedTokenizerFactory
public abstract class ModifiedTokenizerFactory
A ModifiedTokenizerFactory is an abstract tokenizer factory
that modifies a tokenizer returned by a base tokenizer factory.
The abstract method modify(Tokenizer) implements
the modification.
| Constructor Summary | |
|---|---|
ModifiedTokenizerFactory(TokenizerFactory baseFactory)
Construct a modified tokenizer factory with the specified base factory. |
|
| Method Summary | |
|---|---|
TokenizerFactory |
baseTokenizerFactory()
Return the base tokenizer factory. |
protected abstract Tokenizer |
modify(Tokenizer tokenizer)
Return a modified form of the specified tokenizer. |
Tokenizer |
tokenizer(char[] cs,
int start,
int length)
Return the tokenizer for the specified character array slice, which is generated by the base tokenizer and modified with the modify method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ModifiedTokenizerFactory(TokenizerFactory baseFactory)
baseFactory - Underlying tokenizer factory whose
tokenizers are modified.| Method Detail |
|---|
public TokenizerFactory baseTokenizerFactory()
public Tokenizer tokenizer(char[] cs,
int start,
int length)
tokenizer in interface TokenizerFactorycs - Characters to tokenize.start - Index of first character to tokenize.length - Number of characters to tokenize.protected abstract Tokenizer modify(Tokenizer tokenizer)
tokenizer(char[],int,int).
tokenizer - Tokenizer to modify.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||