Package org.apache.lucene.util
Interface AttributeReflector
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
This interface is used to reflect contents of
AttributeSource or AttributeImpl.-
Method Summary
Modifier and TypeMethodDescriptionvoidThis method gets called for every property in anAttributeImpl/AttributeSourcepassing the class name of theAttribute, a key and the actual value.
-
Method Details
-
reflect
This method gets called for every property in anAttributeImpl/AttributeSourcepassing the class name of theAttribute, a key and the actual value. E.g., an invocation ofCharTermAttributeImpl.reflectWith(org.apache.lucene.util.AttributeReflector)would call this method once usingorg.apache.lucene.analysis.tokenattributes.CharTermAttribute.classas attribute class,"term"as key and the actual value as a String.
-