All Known Implementing Classes:
JavaCompilerFieldValuesParser
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface FieldValuesParser
Parser which can be used to obtain the field values from an TypeElement.
Since:
1.1.2
See Also:
  • Field Details

  • Method Details

    • getFieldValues

      Map<String,Object> getFieldValues(TypeElement element) throws Exception
      Return the field values for the given element.
      Parameters:
      element - the element to inspect
      Returns:
      a map of field names to values.
      Throws:
      Exception - if the values cannot be extracted