public final class CannedTokenStream extends TokenStream
AttributeSource.StateDEFAULT_TOKEN_ATTRIBUTE_FACTORY| Constructor and Description |
|---|
CannedTokenStream(int finalPosInc,
int finalOffset,
Token... tokens)
If you want trailing holes, pass a non-zero
finalPosInc.
|
CannedTokenStream(Token... tokens) |
| Modifier and Type | Method and Description |
|---|---|
void |
end() |
boolean |
incrementToken() |
void |
reset() |
closeaddAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, endAttributes, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, removeAllAttributes, restoreState, toStringpublic CannedTokenStream(Token... tokens)
public CannedTokenStream(int finalPosInc,
int finalOffset,
Token... tokens)
public void end()
throws IOException
end in class TokenStreamIOExceptionpublic void reset()
throws IOException
reset in class TokenStreamIOExceptionpublic boolean incrementToken()
incrementToken in class TokenStreamCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.