This commit is contained in:
Timo Westkämper 2010-04-26 11:44:22 +00:00
parent 3f0ee60979
commit 60192e3ba1
2 changed files with 9 additions and 9 deletions

View File

@ -33,7 +33,7 @@ public interface CodeWriter extends Appendable{
CodeWriter beginInterface(String simpleName, String... interfaces) throws IOException;
CodeWriter beginLine(String... segments) throws IOException;
// CodeWriter beginLine(String... segments) throws IOException;
<T> CodeWriter beginPublicMethod(String returnType, String methodName, Collection<T> parameters, Transformer<T, String> transformer) throws IOException;

View File

@ -209,14 +209,14 @@ public final class JavaWriter implements Appendable, CodeWriter{
}
@Override
public JavaWriter beginLine(String... segments) throws IOException {
append(indent);
for (String segment : segments){
append(segment);
}
return this;
}
// @Override
// public JavaWriter beginLine(String... segments) throws IOException {
// append(indent);
// for (String segment : segments){
// append(segment);
// }
// return this;
// }
private JavaWriter beginMethod(String modifiers, String returnType, String methodName, String... args) throws IOException{
append(indent + modifiers + returnType + SPACE + methodName).params(args).append(" {").nl();