@Deprecated public final class SingleTokenTokenStream extends TokenStream
TokenStream
containing a single token.AttributeSource.State
DEFAULT_TOKEN_ATTRIBUTE_FACTORY
DEFAULT_ATTRIBUTE_FACTORY
Constructor and Description |
---|
SingleTokenTokenStream(Token token)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Token |
getToken()
Deprecated.
|
boolean |
incrementToken()
Deprecated.
|
void |
reset()
Deprecated.
|
void |
setToken(Token token)
Deprecated.
|
close, end
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, restoreState, toString
public SingleTokenTokenStream(Token token)
public final boolean incrementToken()
incrementToken
in class TokenStream
public void reset()
reset
in class TokenStream
public Token getToken()
public void setToken(Token token)
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.