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,
java.lang.String typeToMatch) |
TokenTypeSinkTokenizer(java.util.List input,
java.lang.String typeToMatch) |
TokenTypeSinkTokenizer(java.lang.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(java.lang.String typeToMatch)
public TokenTypeSinkTokenizer(int initCap,
java.lang.String typeToMatch)
public TokenTypeSinkTokenizer(java.util.List input,
java.lang.String typeToMatch)
public void add(Token t)
SinkTokenizeradd in class SinkTokenizert - The Token to add to the sinkCopyright © 2000-2014 Apache Software Foundation. All Rights Reserved.