Replace each call with the method body.
找出所有的对这个方法的调用。
where the method body is the contents of the curly braces.
表示闭包,其中方法的主体就是花括号中的内容。
Gets the list of local variables declared in the method body.
取得方法主体中所宣告之区域变数的清单。
You can omit the braces if the method body has just one expression.
你可以在方法主体只有一个表达式的时候省略大括号。
Here, for example, the method body is being set to a string of your choice.
这里,例如,方法主体被设置成您所选择的字符串。
In this example, the method body rule needs to go into an Operation transform.
在该范例中,方法主体规则需要进入一个Operation转换。
The method body calls the map method on the strings array, which takes a function literal as an argument.
函数的主体调用了strings数组的map方法,它接受一个字面函数(Function Literal)作为参数。
The method body now has the necessary code to find the collection of BookLocal objects for the passed Author's name.
目前方法体中有用于找出已确认的作者姓名的BookLocal对象集的必要代码。
The equals sign before the method body tells the compiler, as well as the human reader, where the method body begins.
方法主体前面的等于号告诉编译器函数的主体从这里开始,就像我们看到的一样。
Gets a value indicating whether local variables in the method body are initialized to the default values for their types.
取得值,指出方法主体中的区域变数是否初始化为其型别的预设值。
When the argument is used inside the method body, the specific method that is executed depends on the type of the argument.
在一个方法内部使用一个类型,表示这个方法的执行依赖于这个参数的类型。
Also, because there is only one expression in the method body, we drop the braces and put the entire method definition on one line.
而且,因为在方法的主体中只有一个表达式,我们也省略了括号,把整个方法的定义放到一行中。
All that is necessary is to add to the method body to iterate over this collection to extract the title from each BookLocal and add it to a String array.
所有需要的内容都被加入到方法体中,以便迭代这个结果集。从每个BookLocal中提取标题,并将其加入到字符串数组中。
If a method body has more than one expression, you must surround it with curly braces {...}. You can omit the braces if the method body has just one expression.
如果一个方法的主体包含多于一个的表达式,你必须用大括号来把它们包起来。你可以在方法主体只有一个表达式的时候省略大括号。
Realizing mechanism of method is solved by adopted the parameter delivery of the system and the method body and the result return with the direct help of the operation system.
采用系统和“方法体”之间的参数传递及结果返回直接借助于操作系统的方式来解决“方法”的实现机制。
Likewise, you almost always call a superclass method at either the start or end of a descendent method body.
同样,您几乎总是在子代方法主体的开始或结束部分调用超类方法。
The method is abstract because it has no body.
因为它没有函数体,所以称之为抽象。
That is the call to the method has been replaced by the body of the method.
也就是说,对方法的调用已被方法本身所代替。
Otherwise, the body of an advice is similar to the body of a method.
否则,通知的主体与方法的主体相似。
If you add a method, all JRuby has to do is generate a new anonymous class that includes the body of that method.
如果你添加了一个方法,则所有JRuby要做的事情就是生成一个新的匿名类,该类包含了这一方法的方法体。
Can there be more than one return statement in the body of a method?
方法的主体可以包含多个return语句嘛?
In this case, the same effect could easily have been achieved in other ways, for instance by adding code to the actual set method body using the techniques from Part 4.
在这个例子中,可以用其他的方法容易地实现同样的效果,例如通过使用第4部分中的技术在实际的set方法体中增加代码。
Listing 5 shows the body of the displayPreviewPage method.
清单5显示displayPreviewPage方法的主体。
Collectively, the statements constitute the body of the method.
这些语句共同组成了方法主体。
Using the basal body temperature method for birth control requires motivation and diligence.
为了控制生育使用基础体温法,需要足够的动力和勤勉。
Example 1 changes the default method body to something that you would want.
范例1将默认的方法主体,改变成了您所想要的。
Then we can replace all four calls to acquire the lock with a single one that surrounds the entire method body.
然后我们只需执行一次获取锁的操作(为整个方法),而不必像以前一样获取四次锁了。
Change the default method body generated by the transform.
更改转换产生的默认方法主体。
Because the entire body of the method is a single block, I can define and use local variables within the body without any problems.
因为整个方法是一个块,所以我可以毫无问题地在正文中定义并且使用局部变量。
Because the entire body of the method is a single block, I can define and use local variables within the body without any problems.
因为整个方法是一个块,所以我可以毫无问题地在正文中定义并且使用局部变量。
应用推荐