@Test public void aClass() { ImportBuilder importer = new ImportBuilder(f, null, Strategy.TOP_LEVEL); assertThat(importer.toType(Date.class), is(type(Date.class.getSimpleName()))); assertImported(importer, Date.class); }
public Type toType(Name name) { if (name == null) { throw new IllegalArgumentException("name must not be null"); } return resolve(resolver.factory.newNamedType(name)); }
ImportBuilder { public Type toType(Name name) { if (name == null) { throw new IllegalArgumentException("name must not be null"); } return resolve(resolver.factory.newNamedType(name)); } }
ImportBuilder { public Type toType(Name name) { if (name == null) { throw new IllegalArgumentException("name must not be null"); } return resolve(resolver.factory.newNamedType(name)); } ImportBuilder(ModelFactory factory, PackageDeclaration packageDecl, Strategy strategy); }
ImportBuilder { public Type toType(Name name) { if (name == null) { throw new IllegalArgumentException("name must not be null"); } return resolve(resolver.factory.newNamedType(name)); } ImportBuilder(ModelFactory factory, PackageDeclaration packageDecl, Strategy strategy); Type resolvePackageMember(Name name); Type resolve(Type type); Type toType(Name name); Type toType(java.lang.reflect.Type type); List<ImportDeclaration> toImportDeclarations(); PackageDeclaration getPackageDeclaration(); }
ImportBuilder { public Type toType(Name name) { if (name == null) { throw new IllegalArgumentException("name must not be null"); } return resolve(resolver.factory.newNamedType(name)); } ImportBuilder(ModelFactory factory, PackageDeclaration packageDecl, Strategy strategy); Type resolvePackageMember(Name name); Type resolve(Type type); Type toType(Name name); Type toType(java.lang.reflect.Type type); List<ImportDeclaration> toImportDeclarations(); PackageDeclaration getPackageDeclaration();  }