Package org.apache.lucene.util
Class AttributeSource.AttributeFactory
java.lang.Object
org.apache.lucene.util.AttributeSource.AttributeFactory
- Direct Known Subclasses:
Token.TokenAttributeFactory
- Enclosing class:
- AttributeSource
An AttributeFactory creates instances of
AttributeImpl
s.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AttributeSource.AttributeFactory
This is the default factory that createsAttributeImpl
s using the class name of the suppliedAttribute
interface class by appendingImpl
to it. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract AttributeImpl
createAttributeInstance
(Class<? extends Attribute> attClass) returns anAttributeImpl
for the suppliedAttribute
interface class.
-
Field Details
-
DEFAULT_ATTRIBUTE_FACTORY
This is the default factory that createsAttributeImpl
s using the class name of the suppliedAttribute
interface class by appendingImpl
to it.
-
-
Constructor Details
-
AttributeFactory
public AttributeFactory()
-
-
Method Details
-
createAttributeInstance
returns anAttributeImpl
for the suppliedAttribute
interface class.
-