@FunctionalInterface
public interface AttributeReflector
AttributeSource or AttributeImpl.| Modifier and Type | Method and Description |
|---|---|
void |
reflect(java.lang.Class<? extends Attribute> attClass,
java.lang.String key,
java.lang.Object value)
This method gets called for every property in an
AttributeImpl/AttributeSource
passing the class name of the Attribute, a key and the actual value. |
void reflect(java.lang.Class<? extends Attribute> attClass, java.lang.String key, java.lang.Object value)
AttributeImpl/AttributeSource
passing the class name of the Attribute, a key and the actual value.
E.g., an invocation of CharTermAttributeImpl.reflectWith(org.apache.lucene.util.AttributeReflector)
would call this method once using org.apache.lucene.analysis.tokenattributes.CharTermAttribute.class
as attribute class, "term" as key and the actual value as a String.Copyright © 2000–2025 The Apache Software Foundation. All rights reserved.