public final class CannedTokenStream extends TokenStream
AttributeSource.State
DEFAULT_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() |
close
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, endAttributes, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, removeAllAttributes, restoreState, toString
public CannedTokenStream(Token... tokens)
public CannedTokenStream(int finalPosInc, int finalOffset, Token... tokens)
public void end() throws IOException
end
in class TokenStream
IOException
public void reset() throws IOException
reset
in class TokenStream
IOException
public boolean incrementToken()
incrementToken
in class TokenStream
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.