Example usage for Java org.apache.lucene.util AttributeSource fields, constructors, methods, implement or subclass
The text is from its open source code.
AttributeSource() An AttributeSource using the default attribute factory AttributeFactory#DEFAULT_ATTRIBUTE_FACTORY . |
T | addAttribute(Class The caller must pass in a Class<? |
State | captureState() Captures the state of all Attributes. |
void | clearAttributes() Resets all Attributes in this AttributeSource by calling AttributeImpl#clear() on each Attribute implementation. |
AttributeSource | cloneAttributes() Performs a clone of all AttributeImpl instances returned in a new AttributeSource instance. |
void | copyTo(AttributeSource target) Copies the contents of this AttributeSource to the given target AttributeSource . |
T | getAttribute(Class Returns the instance of the passed in Attribute contained in this AttributeSource The caller must pass in a Class<? |
Iterator | getAttributeClassesIterator() Returns a new iterator that iterates the attribute classes in the same order they were added in. |
AttributeFactory | getAttributeFactory() returns the used AttributeFactory. |
boolean | hasAttribute(Class extends Attribute> attClass) The caller must pass in a Class<? |
void | reflectWith(AttributeReflector reflector) This method is for introspection of attributes, it should simply add the key/values this AttributeSource holds to the given AttributeReflector . |