public class Filter extends Object implements Sequence<Token>
Modifier and Type | Field and Description |
---|---|
Sequence<Token> |
prev
The Tokenizer used by Filter.
|
Constructor and Description |
---|
Filter(Sequence<Token> prev)
Constructor for the Filter object.
|
Modifier and Type | Method and Description |
---|---|
Token |
action(Token t)
Used for changing tokens of the input tokenizer.
|
Sequence<Token> |
getPrevTokenizer()
Return the tokenizer this filter reads from.
|
Token |
next()
The next token of input tokenizer is modified by
action(org.egothor.core.Token) and the product is also the product of
this method. |
void |
setPrevTokenizer(Sequence<Token> prev)
Set the tokenizer this filter reads from.
|
public final void setPrevTokenizer(Sequence<Token> prev)
prev
- the new Tokenizerpublic final Sequence<Token> getPrevTokenizer()
public Token next()
action(org.egothor.core.Token)
and the product is also the product of
this method.Copyright © 2016 Egothor. All Rights Reserved.