@Override
    public JavaWriter field(Type type, String name) throws IOException {
        return line(type.getGenericName(true, packages, classes), Symbols.SPACE, name, Symbols.SEMICOLON).nl();
    }
JavaWriter is the default implementation of the CodeWriter interface

@author tiwe
querydsl-codegen-utils/src/main/java/com/querydsl/codegen/utils/JavaWriter.java