public class TokenTypeSinkTokenizer extends SinkTokenizer
Token.type() matches the passed in typeToMatch then
add it to the sinkiter, lst| Constructor and Description |
|---|
TokenTypeSinkTokenizer(int initCap,
String typeToMatch) |
TokenTypeSinkTokenizer(List input,
String typeToMatch) |
TokenTypeSinkTokenizer(String typeToMatch) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Token t)
Override this method to cache only certain tokens, or new tokens based
on the old tokens.
|
close, getTokens, next, resetnextpublic TokenTypeSinkTokenizer(String typeToMatch)
public TokenTypeSinkTokenizer(int initCap,
String typeToMatch)
public void add(Token t)
SinkTokenizeradd in class SinkTokenizert - The Token to add to the sinkCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.