我正在寻找一个生成Java源文件的框架.
像下面的API:
X clazz = Something.createClass("package name", "class name");
clazz.addSuperInterface("interface name");
clazz.addMethod("method name", returnType, argumentTypes, ...);
File targetDir = ...;
clazz.generate(targetDir);
Run Code Online (Sandbox Code Playgroud)
然后,应在目标目录的子目录中找到java源文件.
有谁知道这样的框架?
编辑:
解决方案
我根据您的答案发布了2个答案... 使用CodeModel和Eclipse JDT.
我在我的解决方案中使用了CodeModel,:-)
在git clone之后,新repo中的配置如下所示:
remote.origin.url=<some url>
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.master.remote=origin
branch.master.merge=refs/heads/master
Run Code Online (Sandbox Code Playgroud)
然后,我可以执行"git pull"和"git push".但我只对"git pull"感兴趣,因为我想推进另一个回购.
我能做的一件事是:
git add remote repo-for-push <some other url>
git push repo-for-push master
Run Code Online (Sandbox Code Playgroud)
但我想配置git使用默认和不同的存储库进行拉取和推送,即:
git pull # pulls from origin
git push # pushes into repo-for-push, avoiding accidental push into the origin
Run Code Online (Sandbox Code Playgroud)
如何配置?提前致谢.
编辑:
基本上,我想设置默认的push repo与默认的fetch/pull repo不同.
在我的远程裸存储库中,HEAD指向"refs/heads/master",我希望它指向"refs/heads/other".
我无法进入远程存储库目录并运行git symbolic-ref.是否有任何git命令来实现它?还是其他任何方式?
如果没有办法,Github是否允许改变HEAD?
提前致谢.
我正在评估开发Eclipse插件以修改某些Java文件的源代码的可能性.
Eclipse插件应该:
考虑到我们没有使用Eclipse插件的经验,我们需要花时间阅读文档,您在开发该插件时估计了多少时间?
提前致谢.