Exemple #1
0
 /// <summary>
 /// Stores the given <see cref="TokenStreamComponents"/> as the reusable components for the
 /// field with the give name.
 /// </summary>
 /// <param name="analyzer"> Analyzer </param>
 /// <param name="fieldName"> Name of the field whose <see cref="TokenStreamComponents"/> are being set </param>
 /// <param name="components"> <see cref="TokenStreamComponents"/> which are to be reused for the field </param>
 public abstract void SetReusableComponents(Analyzer analyzer, string fieldName, TokenStreamComponents components);
Exemple #2
0
 public override void SetReusableComponents(Analyzer analyzer, string fieldName, TokenStreamComponents components)
 {
     SetStoredValue(analyzer, components);
 }
Exemple #3
0
 /// <summary>
 /// Gets the reusable <see cref="TokenStreamComponents"/> for the field with the given name.
 /// </summary>
 /// <param name="analyzer"> <see cref="Analyzer"/> from which to get the reused components. Use
 ///        <see cref="GetStoredValue(Analyzer)"/> and <see cref="SetStoredValue(Analyzer, object)"/>
 ///        to access the data on the <see cref="Analyzer"/>. </param>
 /// <param name="fieldName"> Name of the field whose reusable <see cref="TokenStreamComponents"/>
 ///        are to be retrieved </param>
 /// <returns> Reusable <see cref="TokenStreamComponents"/> for the field, or <c>null</c>
 ///         if there was no previous components for the field </returns>
 public abstract TokenStreamComponents GetReusableComponents(Analyzer analyzer, string fieldName);
Exemple #4
0
 public override TokenStreamComponents GetReusableComponents(Analyzer analyzer, string fieldName)
 {
     return((TokenStreamComponents)GetStoredValue(analyzer));
 }