@Test public void declaredWithTypes() throws Exception { ImmutableList<DAType> typeArgs = ImmutableList.of(DATypeFactory.declared("java.lang.String")); DAType daType = DATypeFactory.declared("com.acme.Toto", typeArgs); assertThat(daType.getKind()).isEqualTo(DATypeKind.DECLARED); assertThat(daType.getSimpleName().getName()).isEqualTo("Toto"); assertThat(daType.getQualifiedName().getName()).isEqualTo("com.acme.Toto"); assertThat(daType.getTypeArgs()).isEqualTo(typeArgs); }
@Nonnull public static DAType declared(@Nonnull String qualifiedName) { return declared(qualifiedName, Collections.<DAType>emptyList()); }
DATypeFactory { @Nonnull public static DAType declared(@Nonnull String qualifiedName) { return declared(qualifiedName, Collections.<DAType>emptyList()); } }
DATypeFactory { @Nonnull public static DAType declared(@Nonnull String qualifiedName) { return declared(qualifiedName, Collections.<DAType>emptyList()); } private  DATypeFactory(); }
DATypeFactory { @Nonnull public static DAType declared(@Nonnull String qualifiedName) { return declared(qualifiedName, 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 declared(@Nonnull String qualifiedName) { return declared(qualifiedName, 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);  }