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 Details

    • extract

      T extract(VariableElement field, ProcessingEnvironment env)
      Extracts a part of the field from the given VariableElement.
      Parameters:
      field - the VariableElement representing the field
      env - the ProcessingEnvironment for accessing annotations and other processing features
      Returns:
      the extracted part of the field
    • log

      static void log(Messager messager, Diagnostic.Kind kind, VariableElement field, String msg)
      Logs a message related to the field extraction.
      Parameters:
      messager - the Messager for logging messages
      kind - the kind of message (e.g., ERROR, WARNING, etc.)
      field - the VariableElement representing the field
      msg - the message to log