Interface FieldAccessor.FieldNameExtractor
- All Known Implementing Classes:
FieldAccessor.FieldNameExtractor.ForBeanProperty, FieldAccessor.FieldNameExtractor.ForFixedValue
- Enclosing class:
FieldAccessor
public static interface FieldAccessor.FieldNameExtractor
A field name extractor is responsible for determining a field name to a method that is implemented
to access this method.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumAFieldAccessor.FieldNameExtractorthat determines a field name according to the rules of Java bean naming conventions.static classA field name extractor that returns a fixed value. -
Method Summary
Modifier and TypeMethodDescriptionresolve(MethodDescription methodDescription) Extracts a field name to be accessed by a getter or setter method.
-
Method Details
-
resolve
Extracts a field name to be accessed by a getter or setter method.- Parameters:
methodDescription- The method for which a field name is to be determined.- Returns:
- The name of the field to be accessed by this method.
-