protected JavaFileObject createFile(){
  JavaFileObject result=null;
  Filer filer=processingEnvironment.getFiler();
  try {
    result=filer.createSourceFile(getModelClassName());
  }
 catch (  IOException e) {
    logger.log(Diagnostic.Kind.ERROR,"create source file failed");
    e.printStackTrace();
  }
  return result;
}

protected JavaFileObject createFile ( ) { JavaFileObject result = null ; Filer filer = processingEnvironment . getFiler ( ) ; try { result = filer . createSourceFile ( getModelClassName ( ) ) ; } catch ( IOException e ) { logger . log ( Diagnostic . Kind . ERROR , "create source file failed" ) ; e . printStackTrace ( ) ; } return result ; }
create a java source file
