Package org.apache.lucene.util
Interface AttributeReflector
-
public interface AttributeReflector
This interface is used to reflect contents ofAttributeSource
orAttributeImpl
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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 anAttributeImpl
/AttributeSource
passing the class name of theAttribute
, a key and the actual value.
-
-
-
Method Detail
-
reflect
void reflect(java.lang.Class<? extends Attribute> attClass, java.lang.String key, java.lang.Object value)
This method gets called for every property in anAttributeImpl
/AttributeSource
passing 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.class
as attribute class,"term"
as key and the actual value as a String.
-
-