English 中文(简体)
Java Code Generation (Metaprogramming, Reflection, wtv)
原标题:Java Code Generation (Metaprogramming, Reflection, wtv)

是否有任何人知道 Java的工具(如C#的法典),为 Java编造一个 file子。

EDIT: I m building a platform the main objective of which is to automate an operation. Giving some input, I want to generate code for an external tool. So it isn t generation on runtime. I want to generate and output that to an actual file.

最佳回答

JET 可能已经过时(I don t use it)JET Tutorial Part 1

More Plugins for Eclipse 《法典》的产生:

EDIT: Sorry I don t know codedom and what features this tool implies.

Standalone is Freemarker and Velocity see also this example

问题回答

我通过ASM取得了一些成功,以修改现行密码级的班级,或制作全新班。 rel=“nofollow noreferer”>tutorial 以非常可理解的方式走到你。

<ASM,如同大多数此类工具生成的星码不是来源。 原因是,如果你想通过一个方案积极制定并执行新的法典,那么从历史上来说,援引 Java汇编者并非直截了当。 因此,一般比源更容易生成和使用密码。

如果你需要立即在你的方案范围内制定和管理该守则,我建议你使用密码操纵工具。 如果大家需要的是 Java源,我将推出我自己的密码生成器,采用我的投入格式并编制守则。 您不妨寻找一个framework,以帮助你这样做,但由于来文方的档案只是文字,通常创建这种环境十分容易,特别是如果你有习惯的投入形式的话。





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签