/// <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(); }
#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 }
/// <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 }
/// <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(); }
/// <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(); }
/// <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(); }
/// <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(); }
/// <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(); }
/// <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 }
#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 }