@Test public void testReifyNonAbstractProperty() { assertEquals(String.class, new TypeReflector<>(TestClass.class).reifyPropertyType("value")); }
public Class reifyPropertyType(String property) { PropertyDescriptor propertyDescriptor = propertyDescriptorIndex.get(property); if (propertyDescriptor == null) { throw new IllegalArgumentException("Property '" + property + "' does not exist."); } return reifyPropertyType(propertyDescriptor); }
TypeReflector { public Class reifyPropertyType(String property) { PropertyDescriptor propertyDescriptor = propertyDescriptorIndex.get(property); if (propertyDescriptor == null) { throw new IllegalArgumentException("Property '" + property + "' does not exist."); } return reifyPropertyType(propertyDescriptor); } }
TypeReflector { public Class reifyPropertyType(String property) { PropertyDescriptor propertyDescriptor = propertyDescriptorIndex.get(property); if (propertyDescriptor == null) { throw new IllegalArgumentException("Property '" + property + "' does not exist."); } return reifyPropertyType(propertyDescriptor); } TypeReflector(Class<T> clazz);  TypeReflector(JavaType javaType); }
TypeReflector { public Class reifyPropertyType(String property) { PropertyDescriptor propertyDescriptor = propertyDescriptorIndex.get(property); if (propertyDescriptor == null) { throw new IllegalArgumentException("Property '" + property + "' does not exist."); } return reifyPropertyType(propertyDescriptor); } TypeReflector(Class<T> clazz);  TypeReflector(JavaType javaType); @Override boolean equals(Object o); @Override int hashCode(); JavaType getJavaType(); @SuppressWarnings("unchecked") Class<T> getTypeClass(); T instantiate(); List<PropertyDescriptor> getPropertyDescriptors(); Map<String, PropertyDescriptor> getPropertyDescriptorIndex(); Object get(T bean, String name); void set(T bean, String name, Object value); A getAnnotation(Class<A> annotationClass); A getAnnotation(PropertyDescriptor propertyDescriptor, Class<A> annotationClass); A getAnnotation(String propertyName, Class<A> annotationClass); Class reifyPropertyType(String property); Class reifyPropertyType(PropertyDescriptor property); }
TypeReflector { public Class reifyPropertyType(String property) { PropertyDescriptor propertyDescriptor = propertyDescriptorIndex.get(property); if (propertyDescriptor == null) { throw new IllegalArgumentException("Property '" + property + "' does not exist."); } return reifyPropertyType(propertyDescriptor); } TypeReflector(Class<T> clazz);  TypeReflector(JavaType javaType); @Override boolean equals(Object o); @Override int hashCode(); JavaType getJavaType(); @SuppressWarnings("unchecked") Class<T> getTypeClass(); T instantiate(); List<PropertyDescriptor> getPropertyDescriptors(); Map<String, PropertyDescriptor> getPropertyDescriptorIndex(); Object get(T bean, String name); void set(T bean, String name, Object value); A getAnnotation(Class<A> annotationClass); A getAnnotation(PropertyDescriptor propertyDescriptor, Class<A> annotationClass); A getAnnotation(String propertyName, Class<A> annotationClass); Class reifyPropertyType(String property); Class reifyPropertyType(PropertyDescriptor property);  }