@Override
    public String inferBinaryName(Location loc, JavaFileObject javaFileObject) {
        String result;
        if (loc == StandardLocation.CLASS_PATH && javaFileObject instanceof MemJavaFileObject) {
            result = javaFileObject.getName();
        } else {
            result = super.inferBinaryName(loc, javaFileObject);
        }
        return result;
    }
MemFileManager is a memory based implementation of the JavaFileManager
interface

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