@Test public void current() { PackageDeclaration pkg = f.newPackageDeclaration( Models.toName(f, "com.example")); ImportBuilder importer = new ImportBuilder(f, pkg, Strategy.TOP_LEVEL); assertThat(importer.resolve(type("com.example.Test")), is(type("Test"))); assertImported(importer); }
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();  }