Exemple #1
0
 /// <summary> A <see cref="TokenStream"/> using the default attribute factory.</summary>
 #pragma warning disable 618
 protected internal TokenStream() :
     base(onlyUseNewAPI ? AttributeFactory.DEFAULT_ATTRIBUTE_FACTORY : TokenStream.DEFAULT_TOKEN_WRAPPER_ATTRIBUTE_FACTORY)
 {
     InitBlock();
     tokenWrapper = InitTokenWrapper(null);
     Check();
 }
Exemple #2
0
        #pragma warning restore 618

        /// <summary> A <see cref="TokenStream"/> that uses the same attributes as the supplied one.</summary>
        protected internal TokenStream(AttributeSource input) : base(input)
        {
            InitBlock();

            // REMOVE: in 3.0
            #pragma warning disable 618
            tokenWrapper = InitTokenWrapper(input);
            Check();
            #pragma warning restore 618
        }
Exemple #3
0
        /// <summary>
        ///     A <see cref="TokenStream"/> using the supplied AttributeFactory for creating
        ///     new <see cref="IAttribute"/> instances.
        /// </summary>
        #pragma warning disable 618
        protected internal TokenStream(AttributeFactory factory)
            : base(onlyUseNewAPI? factory: new TokenWrapperAttributeFactory(factory))
        {
            InitBlock();

            // REMOVE: in 3.0

            tokenWrapper = InitTokenWrapper(null);
            Check();
            #pragma warning restore 618
        }
Exemple #4
0
		/// <summary> A TokenStream using the supplied AttributeFactory for creating new {@link Attribute} instances.</summary>
		protected internal TokenStream(AttributeFactory factory):base(onlyUseNewAPI?factory:new TokenWrapperAttributeFactory(factory))
		{
			InitBlock();
			tokenWrapper = InitTokenWrapper(null);
			Check();
		}
Exemple #5
0
		/// <summary> A TokenStream that uses the same attributes as the supplied one.</summary>
		protected internal TokenStream(AttributeSource input):base(input)
		{
			InitBlock();
			tokenWrapper = InitTokenWrapper(input);
			Check();
		}
Exemple #6
0
		/// <summary> A TokenStream using the default attribute factory.</summary>
		protected internal TokenStream():base(onlyUseNewAPI?AttributeFactory.DEFAULT_ATTRIBUTE_FACTORY:TokenStream.DEFAULT_TOKEN_WRAPPER_ATTRIBUTE_FACTORY)
		{
			InitBlock();
			tokenWrapper = InitTokenWrapper(null);
			Check();
		}
Exemple #7
0
 /// <summary> A TokenStream using the supplied AttributeFactory for creating new {@link Attribute} instances.</summary>
 protected internal TokenStream(AttributeFactory factory) : base(onlyUseNewAPI?factory:new TokenWrapperAttributeFactory(factory))
 {
     InitBlock();
     tokenWrapper = InitTokenWrapper(null);
     Check();
 }
Exemple #8
0
 /// <summary> A TokenStream that uses the same attributes as the supplied one.</summary>
 protected internal TokenStream(AttributeSource input) : base(input)
 {
     InitBlock();
     tokenWrapper = InitTokenWrapper(input);
     Check();
 }
Exemple #9
0
        /// <summary> 
        ///     A <see cref="TokenStream"/> using the supplied AttributeFactory for creating 
        ///     new <see cref="IAttribute"/> instances.
        /// </summary>
        #pragma warning disable 618
        protected internal TokenStream(AttributeFactory factory)
            :base( onlyUseNewAPI? factory: new TokenWrapperAttributeFactory(factory))
		{
			InitBlock();

            // REMOVE: in 3.0
           
            tokenWrapper = InitTokenWrapper(null);
			Check();
            #pragma warning restore 618
        }
Exemple #10
0
        #pragma warning restore 618

        /// <summary> A <see cref="TokenStream"/> that uses the same attributes as the supplied one.</summary>
		protected internal TokenStream(AttributeSource input):base(input)
		{
			InitBlock();
            
            // REMOVE: in 3.0
            #pragma warning disable 618
            tokenWrapper = InitTokenWrapper(input);
			Check();
            #pragma warning restore 618
        }