Interface Reflector

All Known Implementing Classes:
StdReflector

public interface Reflector
Common interface for slightly different reflection logic (for Java POJOs, Java records, Kotlin data classes etc.) used in YOJ data-binding to build a schema with fields.
  • Method Summary

    Modifier and Type
    Method
    Description
    reflectFieldType(Type genericType, FieldValueType bindingType)
    Gets reflection information for a field, potentially a deep sub-field of some type which can have schema.
    <T> ReflectType<T>
    Gets reflection information for a root type, that is, a type that can have a schema: a public concrete class.
  • Method Details

    • reflectRootType

      <T> ReflectType<T> reflectRootType(Class<T> type)
      Gets reflection information for a root type, that is, a type that can have a schema: a public concrete class.
      Type Parameters:
      T - type to get reflection information for
      Parameters:
      type - type to get reflection information for
      Returns:
      basic reflection information for type
    • reflectFieldType

      ReflectType<?> reflectFieldType(Type genericType, FieldValueType bindingType)
      Gets reflection information for a field, potentially a deep sub-field of some type which can have schema.
      Parameters:
      genericType - generic type of field to get reflection information for
      bindingType - value type suitable for data-binding of type genericType
      Returns:
      basic reflection information for the field