mirror of
https://github.com/querydsl/querydsl.git
synced 2026-07-03 21:07:49 +08:00
This commit is contained in:
parent
3f0ee60979
commit
60192e3ba1
@ -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;
|
||||
|
||||
|
||||
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user