23 using System.Collections.Generic;
26 using Lucene.Net.Analysis.Tokenattributes;
28 namespace Lucene.Net.Analysis.Position
38 private int positionIncrement = 0;
41 private bool firstTokenPositioned =
false;
54 posIncrAtt = AddAttribute<IPositionIncrementAttribute>();
68 this.positionIncrement = positionIncrement;
71 public sealed
override bool IncrementToken()
73 if (input.IncrementToken())
75 if (firstTokenPositioned)
77 posIncrAtt.PositionIncrement = positionIncrement;
81 firstTokenPositioned =
true;
91 public override void Reset()
94 firstTokenPositioned =
false;