2

Manifold:Java 编译器插件

 1 year ago
source link: https://www.jdon.com/62626
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Manifold:Java 编译器插件


可以用 Manifold 做什么?

1、元编程
使用该框架可以直接、类型安全地访问任何类型的资源,例如 GraphQL、 JSON、 XML、 YAML、 CSV,甚至是JavaScript等其他语言。删除构建过程中的代码生成步骤。

2、扩展方法
将您自己的方法添加到现有的 Java 类,甚至是String、List和File。消除样板代码。

3、属性
消除样板 getter/setter 代码,改善您的整体开发体验与属性。

更多点击标题

网友评论
这绝对不是一个 Java 编译器插件,相反,它是一种新的 JVM 语言,作为Gosu的继任者并由同一个人制作,其编译器以重用内部 javac 代码的方式编写,通过打开封装并侵入 JDK 内部。因此,它与特定的 JDK 版本相关联,并且是故意不可移植的——一旦停止开发,即使现有代码也将不再使用新的 JDK 版本进行编译。

为什么像 Manifold 和 Lombok 这样的 JVM 语言将自己标榜为“插件”?


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK