Interface FieldPartExtractor<T>
- Type Parameters:
T- the type of the extracted part
- All Known Implementing Classes:
DtoOptionsExtractor,EnumOptionsExtractor,IdentityExtractor,RelationshipExtractor,SearchOptionsExtractor,SecurityExtractor,ValidationExtractor
public interface FieldPartExtractor<T>
Interface for extracting parts of a field from a VariableElement.
-
Method Summary
Modifier and TypeMethodDescriptionextract(VariableElement field, ProcessingEnvironment env) Extracts a part of the field from the given VariableElement.static voidlog(Messager messager, Diagnostic.Kind kind, VariableElement field, String msg) Logs a message related to the field extraction.
-
Method Details
-
extract
Extracts a part of the field from the given VariableElement.- Parameters:
field- the VariableElement representing the fieldenv- the ProcessingEnvironment for accessing annotations and other processing features- Returns:
- the extracted part of the field
-
log
Logs a message related to the field extraction.- Parameters:
messager- the Messager for logging messageskind- the kind of message (e.g., ERROR, WARNING, etc.)field- the VariableElement representing the fieldmsg- the message to log
-