* @param name
* The name of the new interface
* @return The new interface type.
*/
public NewInterfaceType newInterfaceType(final String name) {
NewInterfaceTypeImpl type = null;
final PrintWriter printWriter = this.tryCreateTypePrintWriter(name);
if (null != printWriter) {
type = new NewInterfaceTypeImpl();
type.setGeneratorContext(this);
type.setName(name);
type.setPrintWriter(printWriter);
type.setSuperType(this.getObject());
type.setVisibility(Visibility.PUBLIC);
this.addNewType(type);
}
return type;