我们实际上可以用多种方法重写上一个例子的最后一行。
We could actually write the last line of the previous example in several ways.
使用这个方法很简单,参见清单5的第7行。
Using this method is simple, as shown in line 7 of Listing 5.
覆盖细节视图,只有当你收集了方法和行覆盖以后才有效。
Coverage Detail views, available only if you collect both method and line coverage.
这些代码行调用一个方法来设置XADataSource(参见下面)。
These code lines call a method to set up an XADataSource (see below).
Groovy方法的最后一行是一个隐式的return语句。
The last line of a Groovy method is an implicit return statement.
每一行都以ingredient开始,即方法名称。
示例中的以粗体显示的第一行对 PlacementServiceMBean实例调用getCoreGroups()方法。
The first bold line in the example invokes the getCoreGroups() method on the PlacementServiceMBean instance.
额外的list元素实际上添加到 append_options方法的第二行。
The extra list element is actually added in line two of the append_options method.
我们只需向方法getContentAssistant()添加如清单12 所示的行。
We simply add the line shown in Listing 12 to the method getContentAssistant().
注意,在Groovy中方法的最后一行是它的返回值。
Note that in Groovy, the method's last line is its return value.
难道不能把这一行代码放回addorder方法中吗?
Couldn't I put that one line of code back in the addOrder method?
第1行通过几种可用方法之一获取一个EntityManager实例。
Line 1 obtains an EntityManager instance by one of the several available means.
有了这个功能之后,可以非常简单地在某个方法的特定行中设置断点。
Setting a breakpoint on a certain line of a method is simple.
第9行,您可以获取listbox并调用其update方法。
In line 9, you get the listbox and invoke its update method.
更新后的行随后通过updateRow()方法写回到电子表格。
The updated row is then written back to the spreadsheet through the updateRow() method.
确保只有一行是父类方法调用。
Make sure that there is only one line that is a super method invocation.
您需要在控制器servlets . GoogleSearchServlet的init方法中添加两行代码。
You need to add two lines of code in the init method of the controller servlets.GoogleSearchServlet.
第5行—通过调用install方法安装ruby包。
Line 5 - This installs the Ruby package by invoking the install method.
当每一行创建时,该OnRowCreated方法被执行。
The OnRowCreated method is called every time a row is created.
虽然听起来很奇怪,但是这是描述这一行为的唯一方法。
While it sounded odd, this is the only way to describe this behavior.
最后一行是一个安全的方法。
此外,您不能简单地用这种方法对表格里的每一行添加动画效果。
In addition, you can't easily animate individual rows of a table this way.
前一个例子每次上载一行数据—显然不是最佳的方法。
The previous example uploaded the data one row at a time-obviously, not an optimal approach.
其应对方法是你要敲一行命令然后重启机器。
To remedy this, you’ll need to issue a command and reboot your machine.
现在可以从测试脚本中用简单的一行代码调用该方法。
Now you can call this method from your test script with the simple line.
用这种方法你能正常地选择全部的行。
get—如果被给予一个整数ID, get方法将返回表中的一行。
Get-the get method returns a single row from the table given an integer ID.
请注意main方法主体部分的第三行中需要进行的数据类型转换。
Notice the cast needed in the third line of the body of the main method.
首先,用readline方法在文件行中移动。
You first step through the file line by line using the readline method.
对于每一行,它将执行handle方法。
For each one of those rows, it will execute the method handle.
应用推荐