18 namespace Lucene.Net.Analysis
31 private System.Collections.Generic.LinkedList<
State> cache = null;
32 private System.Collections.Generic.IEnumerator<
State> iterator = null;
33 private State finalState;
39 public override bool IncrementToken()
44 cache =
new System.Collections.Generic.LinkedList<
State>();
46 iterator = cache.GetEnumerator();
49 if (!iterator.MoveNext())
55 RestoreState(iterator.Current);
59 public override void End()
61 if (finalState != null)
63 RestoreState(finalState);
67 public override void Reset()
71 iterator = cache.GetEnumerator();
75 private void FillCache()
77 while (input.IncrementToken())
79 cache.AddLast(CaptureState());
83 finalState = CaptureState();