18 using System.Diagnostics;
19 using Lucene.Net.Analysis.Tokenattributes;
22 namespace Lucene.Net.Analysis.Miscellaneous
29 private bool _exhausted;
32 private Token _singleToken;
36 : base(
Token.TOKEN_ATTRIBUTE_FACTORY)
38 Debug.Assert(token != null,
"Token was null!");
41 _tokenAtt = (
Attribute)AddAttribute<ITermAttribute>();
43 Debug.Assert(_tokenAtt is
Token);
46 public override sealed
bool IncrementToken()
52 _singleToken.CopyTo(_tokenAtt);
58 public override void Reset()
63 protected override void Dispose(
bool disposing)
73 public void SetToken(
Token token)