GWT生成器有什么用? [英] What is the use GWT generator?

查看:19
本文介绍了GWT生成器有什么用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经看到 GWT 框架具有生成器功能.在什么情况下我们必须使用 gwt 生成器选项以及为什么需要它?谁能简单地告诉我为什么,gwt 生成器是什么?做了一些谷歌搜索.但没有多少有用的东西...

I have seen that GWT framework is having generator feature. In what case we have to use gwt generator option and why it is needed? Can anyone tell me simply why,what is gwt generator? Done some googling. But not much helpful stuffs...

推荐答案

来自 本教程:

生成器允许 GWT 编码器在编译时生成 Java 代码,然后将其与项目的其余部分一起编译为 JavaScript.

Generators allow the GWT coder to generate Java code at compile time and have it then be compiled along with the rest of the project into JavaScript.

本教程使用以下示例在编译时根据属性文件生成值的 Map.

This tutorial uses the example of generating a Map of values at compile time based on a properties file.

这篇关于GWT生成器有什么用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆