@Test public void from() throws Exception { DAType daType = DATypeFactory.from(getClass()); assertThat(daType.getKind()).isEqualTo(DATypeKind.DECLARED); assertThat(daType.getSimpleName().getName()).isEqualTo(getClass().getSimpleName()); assertThat(daType.getQualifiedName().getName()).isEqualTo(getClass().getCanonicalName()); assertThat(daType.getTypeArgs()).isEmpty(); }
@Nonnull public static DAType from(@Nonnull Class<?> clazz) { return instance(clazz.getSimpleName(), clazz.getCanonicalName(), Collections.<DAType>emptyList()); }
DATypeFactory { @Nonnull public static DAType from(@Nonnull Class<?> clazz) { return instance(clazz.getSimpleName(), clazz.getCanonicalName(), Collections.<DAType>emptyList()); } }
DATypeFactory { @Nonnull public static DAType from(@Nonnull Class<?> clazz) { return instance(clazz.getSimpleName(), clazz.getCanonicalName(), Collections.<DAType>emptyList()); } private  DATypeFactory(); }
DATypeFactory { @Nonnull public static DAType from(@Nonnull Class<?> clazz) { return instance(clazz.getSimpleName(), clazz.getCanonicalName(), Collections.<DAType>emptyList()); } private  DATypeFactory(); @Nonnull static DAType voidDaType(); @Nonnull static DAType from(@Nonnull Class<?> clazz); @Nonnull static DAType from(@Nonnull Class<?> clazz, @Nonnull List<DAType> typeArgs); @Nonnull static DAType declared(@Nonnull String qualifiedName); @Nonnull static DAType declared(@Nonnull String qualifiedName, @Nonnull List<DAType> typeArgs); @Nonnull static DAType wildcardWithSuperBound(@Nonnull DAType superbound); @Nonnull static DAType wildcardWithExtendsBound(@Nonnull DAType extendsBound); }
DATypeFactory { @Nonnull public static DAType from(@Nonnull Class<?> clazz) { return instance(clazz.getSimpleName(), clazz.getCanonicalName(), Collections.<DAType>emptyList()); } private  DATypeFactory(); @Nonnull static DAType voidDaType(); @Nonnull static DAType from(@Nonnull Class<?> clazz); @Nonnull static DAType from(@Nonnull Class<?> clazz, @Nonnull List<DAType> typeArgs); @Nonnull static DAType declared(@Nonnull String qualifiedName); @Nonnull static DAType declared(@Nonnull String qualifiedName, @Nonnull List<DAType> typeArgs); @Nonnull static DAType wildcardWithSuperBound(@Nonnull DAType superbound); @Nonnull static DAType wildcardWithExtendsBound(@Nonnull DAType extendsBound);  }