Type groovy friends at the command line.
在命令行中输入groovy friends。
Now type groovy Hello Jane from the command line.
现在在命令行中输入groovyHelloJane。
Type groovy MetaTest at the command prompt to run this test.
在命令提示中输入groovyMetaTest以运行该测试。
To run the unit test, type groovy PropertiesTest at the command line.
要运行单元测试,在命令行中键入groovy PropertiesTest。
Thank you, Mom and Dad, for turning me on to such a groovy profession.
谢谢你们,妈妈和爸爸。谢谢你们将我带入如此绝妙的行当。
Type groovy HelloGroovySwing to see the application shown in Figure 2.
输入groovyHelloGroovySwing会看到图2所示的应用程序。
为什么用Groovy进行单元测试?
The scripts are written in Groovy.
测试脚本是用 Groovy写成的。
Maintain the natural Groovy syntax.
保持Groovy自然的语法。
Groovy isn't alone in this respect.
Groovy在这方面并非独树一帜。
Can you expand on the new Groovy support?
能否谈谈新的Groovy支持呢?
Use the standard Groovy syntax for a closure.
对每个闭包使用标准的groovy语法。
Class definitions are fairly easy in Groovy, no?
Groovy中类的定义非常简单,不是吗?
The code for this Groovy method is shown in Listing 2.
这个Groovy方法的代码如清单 2所示。
As you can see, running a Groovy script is quite easy.
可以看到,运行Groovy脚本非常容易。
Next, notice the use of a Groovy range in the each loop.
接下来,注意each循环中使用了一个Groovyrange。
I could easily code it in Groovy, as shown in Listing 4.
我可以轻易地将它编码在Groovy中,清单4所示。
The Groovy eachRow() method is a perfect example of this.
GroovyeachRow()方法就是一个很好的例子。
The new version also includes improvements in Groovy support.
新版本还改进了Groovy支持。
Familiarity with Groovy is great, but not completely necessary.
熟悉Groovy会更好,但不是必要的。
Actually using Groovy beans in your Spring application is easy.
实际上,在Spring应用程序中使用Groovybean很容易。
Groovy script written inline in your Spring configuration file.
在Spring配置文件中以内联方式编写groovy脚本。
Direct support for Groovy sources would be particularly helpful.
对groovy源代码的直接支持特别有帮助。
Does that mean that you can execute Groovy source code directly?
这是否意味着可以直接执行groovy源代码?
Note that in Groovy, the method's last line is its return value.
注意,在Groovy中方法的最后一行是它的返回值。
It should be clear by now that Groovy templates are easy to use.
现在应该十分清楚了,Groovy模板非常容易使用。
The last line of a Groovy method is an implicit return statement.
Groovy方法的最后一行是一个隐式的return语句。
If I tried the same trick in Groovy, I would get something like this.
如果在Groovy中尝试相同的操作,将会得到如下结果。
Then you can start to add Groovy little by little in your application.
然后,你可以一点点地向应用中添加groovy代码了。
Then you can start to add Groovy little by little in your application.
然后,你可以一点点地向应用中添加groovy代码了。
应用推荐