Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class Token.TokenAttributeFactory

    Expert: Creates a Token.TokenAttributeFactory returning Token as instance for the basic attributes and for all other attributes calls the given delegate factory. @since 3.0

    Inheritance
    object
    AttributeSource.AttributeFactory
    Token.TokenAttributeFactory
    Inherited Members
    AttributeSource.AttributeFactory.DEFAULT_ATTRIBUTE_FACTORY
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Lucene.Net.Analysis
    Assembly: Lucene.Net.dll
    Syntax
    public sealed class Token.TokenAttributeFactory : AttributeSource.AttributeFactory

    Constructors

    TokenAttributeFactory(AttributeFactory)

    Expert: Creates an AttributeSource.AttributeFactory returning Token as instance for the basic attributes and for all other attributes calls the given delegate factory.

    Declaration
    public TokenAttributeFactory(AttributeSource.AttributeFactory @delegate)
    Parameters
    Type Name Description
    AttributeSource.AttributeFactory delegate

    Methods

    CreateAttributeInstance<T>()

    returns an Attribute for the supplied IAttribute interface.

    Declaration
    public override Attribute CreateAttributeInstance<T>() where T : IAttribute
    Returns
    Type Description
    Attribute
    Type Parameters
    Name Description
    T
    Overrides
    AttributeSource.AttributeFactory.CreateAttributeInstance<T>()

    Equals(object)

    Determines whether the specified object is equal to the current object.

    Declaration
    public override bool Equals(object other)
    Parameters
    Type Name Description
    object other
    Returns
    Type Description
    bool

    true if the specified object is equal to the current object; otherwise, false.

    Overrides
    object.Equals(object)

    GetHashCode()

    Serves as the default hash function.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    A hash code for the current object.

    Overrides
    object.GetHashCode()
    Back to top Copyright © 2024 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.