@Test public void getsGenericType() throws NoSuchFieldException { BapiField field = new BapiField(getClass().getDeclaredField("listGeneric")); assertEquals(String.class, field.getGenericType()); field = new BapiField(getClass().getDeclaredField("list")); assertNull(field.getGenericType()); field = new BapiField(getClass().getDeclaredField("listSimple")); assertNull(field.getGenericType()); field = new BapiField(getClass().getDeclaredField("mapGeneric")); assertNull(field.getGenericType()); field = new BapiField(getClass().getDeclaredField("integerArray")); assertNull(field.getGenericType()); }
public Class<?> getGenericType() { return ReflectionHelper.getGenericType(field); }
BapiField { public Class<?> getGenericType() { return ReflectionHelper.getGenericType(field); } }
BapiField { public Class<?> getGenericType() { return ReflectionHelper.getGenericType(field); } BapiField(final Field field); }
BapiField { public Class<?> getGenericType() { return ReflectionHelper.getGenericType(field); } BapiField(final Field field); Class<?> getArrayType(); Class<?> getAssociatedType(); Class<? extends Converter<?, ?>> getConverter(); Class<?> getGenericType(); String getName(); String getSapName(); Class<?> getType(); boolean isExport(); boolean isChanging(); boolean isImport(); boolean isParameter(); boolean isStructure(); boolean isTableStructure(); boolean isTable(); }
BapiField { public Class<?> getGenericType() { return ReflectionHelper.getGenericType(field); } BapiField(final Field field); Class<?> getArrayType(); Class<?> getAssociatedType(); Class<? extends Converter<?, ?>> getConverter(); Class<?> getGenericType(); String getName(); String getSapName(); Class<?> getType(); boolean isExport(); boolean isChanging(); boolean isImport(); boolean isParameter(); boolean isStructure(); boolean isTableStructure(); boolean isTable();  }