Listing 3. Groovy bindings for charts.groovy.
清单3.charts .groovy的groovy绑定。
Listing 19 shows the equivalent process in groovy.
清单19展示了Groovy中的等效过程。
Type groovy HelloGroovyWorld to confirm that it works.
输入groovyHelloGroovyWorld以确认它可以工作。
Create this file in the newly created groovy directory.
在新创建的groovy目录中创建此文件。
Notice how /login hides the .groovy aspect, making the URL a lot more readable.
请注意 /login如何隐藏.groovy,并使URL 更具可读性。
Listing 10 shows a demonstration application for a small recipe DSL written in groovy.
清单10显示了一个示例应用程序,这是用Groovy编写的一个小菜谱dsl。
All you had to do was add the groovy JAR, update the web.xml file, create a new groovy directory, write a Groovlet, and deploy it.
您只需要添加groovyJAR、更新web . xml文件、创建一个新的groovy目录、编写一个Groovlet然后部署它。
Configuring inline Groovy scripts.
配置内联groovy脚本。
DK: Groovy MOP is a powerful tool.
DK:GroovyMOP是一个强大的工具。
Use properties with Groovy scripting.
用Groovy脚本处理属性。
Configuring beans from Groovy scripts.
配置来自groovy脚本的bean。
The Groovy project page: Download Groovy.
Groovy项目页面:下载Groovy。
Groovy: Download the latest Groovy version.
Groovy:下载最新的Groovy版本。
Groovy: Download the latest Groovy release.
Groovy:下载最新的Groovy发行版。
Groovy lets you run tests singly or in batches.
Groovy可以让您单独或成批运行测试。
Download the latest Groovy ZIP file or tarball.
下载最新的GroovyZIP文件或tarball。
Sadly, Groovy is strictly a server-side solution.
不幸的是,Groovy完全是一个服务器端解决方案。
Groovy now averages roughly 35,000 downloads a month.
现在,Groovy每个月的平均下载数量大约为35,000。
This is where the conciseness of Groovy really shines.
这正是Groovy的简洁性真正擅长的方面。
Keep up with the latest Groovy news and article links.
了解最新的Groovy新闻和文章链接。
Listing 5 has the Groovy code for the charts resource.
清单5展示了charts资源的Groovy代码。
Groovy: Download the latest Groovy ZIP file or tarball.
Groovy:下载最新的GroovyZIP文件或tarball。
Listing 9 shows the same application written in Groovy.
清单9给出用Groovy编写的同一个应用程序。
This is why Groovy introduced the concept of a delegate.
这就是为什么Groovy要引入delegate概念。
First of all, in Groovy, named parameters look like this.
首先,在Groovy中命名参数看起来是这样的。
In Listing 2, you can see how Groovy simplifies my efforts.
在清单2中,您可以看到Groovy如何简化了我的工作。
Optionally, download and install the Groovy Eclipse Plugin.
可选,下载并安装GroovyEclipse插件。
Groovy is a dynamically-typed language that runs on the JVM.
Groovy是运行于JVM之上的一种动态语言。
All classes in Groovy are public unless you specify otherwise.
除非您另外指定,否则Groovy中的所有类都是public的。
All classes in Groovy are public unless you specify otherwise.
除非您另外指定,否则Groovy中的所有类都是public的。
应用推荐