Пример #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();
 }
Пример #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
        }
Пример #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
        }
Пример #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();
		}
Пример #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();
		}
Пример #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();
		}
Пример #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();
 }
Пример #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();
 }
Пример #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
        }
Пример #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
        }