@Test public void testGetRawTypeWithNonParameterizedType() throws Exception { GenericType type = new GenericType(Sub.class, Super.class.getField("regular").getGenericType()); assertEquals(String.class, type.getRawType()); }
public Class<?> getRawType() { return rawType; }
GenericType { public Class<?> getRawType() { return rawType; } }
GenericType { public Class<?> getRawType() { return rawType; } GenericType(Class<?> declaringClass, Type type); }
GenericType { public Class<?> getRawType() { return rawType; } GenericType(Class<?> declaringClass, Type type); Class<?> getRawType(); String toString(); GenericType getArrayElementType(); GenericType getElementType(); GenericType getListElementType(); GenericType getMapKeyType(); GenericType getMapValueType(); GenericType getSetElementType(); boolean isArray(); boolean isList(); boolean isMap(); boolean isSet(); }
GenericType { public Class<?> getRawType() { return rawType; } GenericType(Class<?> declaringClass, Type type); Class<?> getRawType(); String toString(); GenericType getArrayElementType(); GenericType getElementType(); GenericType getListElementType(); GenericType getMapKeyType(); GenericType getMapValueType(); GenericType getSetElementType(); boolean isArray(); boolean isList(); boolean isMap(); boolean isSet();  }