Collections.singletonList(type),
Collections.<Comment>emptyList());
}
private TypeDeclaration createType() {
SimpleName name = factory.newSimpleName(
Naming.getReduceFragmentClass(fragment.getSerialNumber()));
importer.resolvePackageMember(name);
List<TypeBodyDeclaration> members = Lists.create();
members.addAll(connection.createFields());
ConstructorDeclaration ctor = connection.createConstructor(name);
List<MethodDeclaration> methods = Lists.create();
SimpleName value = names.create("value");
methods.add(createProcess(value));
methods.addAll(emit(value));
members.addAll(extraFields);
members.add(ctor);
members.addAll(methods);