/// <summary> Override this method to cache only certain tokens, or new tokens based /// on the old tokens. /// /// </summary> /// <param name="t">The {@link Mono.Lucene.Net.Analysis.Token} to add to the sink /// </param> public virtual void Add(Token t) { if (t == null) { return; } lst.Add((Token)t.Clone()); }
public override Token Next(Token reusableToken) { System.Diagnostics.Debug.Assert(reusableToken != null); if (iter == null) { iter = lst.GetEnumerator(); } // Since this TokenStream can be reset we have to maintain the tokens as immutable if (iter.MoveNext()) { Token nextToken = (Token)iter.Current; return((Token)nextToken.Clone()); } return(null); }
/// <summary> Override this method to cache only certain tokens, or new tokens based /// on the old tokens. /// /// </summary> /// <param name="t">The {@link Mono.Lucene.Net.Analysis.Token} to add to the sink /// </param> public virtual void Add(Token t) { if (t == null) return ; lst.Add((Token) t.Clone()); }
public override System.Object Clone() { return(new TokenWrapper((Token)delegate_Renamed.Clone())); }