@Test public void qualified() { QualifiedType type = f.newQualifiedType( type(List.class, Date.class), f.newSimpleName("Inner")); QualifiedType imported = f.newQualifiedType( type("List", "Date"), f.newSimpleName("Inner")); ImportBuilder importer = new ImportBuilder(f, null, Strategy.TOP_LEVEL); assertThat(importer.resolve(type), is((Type) imported)); assertImported(importer, List.class, Date.class); }
public Type resolve(Type type) { if (type == null) { throw new IllegalArgumentException("type must not be null"); } return type.accept(resolver, null); }
ImportBuilder { public Type resolve(Type type) { if (type == null) { throw new IllegalArgumentException("type must not be null"); } return type.accept(resolver, null); } }
ImportBuilder { public Type resolve(Type type) { if (type == null) { throw new IllegalArgumentException("type must not be null"); } return type.accept(resolver, null); } ImportBuilder(ModelFactory factory, PackageDeclaration packageDecl, Strategy strategy); }
ImportBuilder { public Type resolve(Type type) { if (type == null) { throw new IllegalArgumentException("type must not be null"); } return type.accept(resolver, null); } 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 resolve(Type type) { if (type == null) { throw new IllegalArgumentException("type must not be null"); } return type.accept(resolver, null); } 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();  }