예제 #1
0
 /// <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());
 }
예제 #2
0
 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);
 }
예제 #3
0
		/// <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());
		}
예제 #4
0
 public override System.Object Clone()
 {
     return(new TokenWrapper((Token)delegate_Renamed.Clone()));
 }