where the method body is the contents of the curly braces.
表示闭包,其中方法的主体就是花括号中的内容。
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 body of logic removed and placed into its own method is now easier to test.
移走并放在自己方法中的逻辑体现在更容易测试。
That is the call to the method has been replaced by the body of the method.
也就是说,对方法的调用已被方法本身所代替。
Immunization is usually given before you have your spleen removed and is one method to help the body fight and prevent infection.
帮助身体抵御和防止感染的方法是在手术前进行免疫接种。
The method signature ends with a colon, which indicates that the body of the function follows on subsequent lines.
方法签名以冒号结尾,表示下面的代码行是函数体。
Ruby opens a class and adds a method with the name and body you provide to the Dog class.
Ruby打开一个类并添加一个带有您提供给dog类的名称及主体的方法。
If you add a method, all JRuby has to do is generate a new anonymous class that includes the body of that method.
如果你添加了一个方法,则所有JRuby要做的事情就是生成一个新的匿名类,该类包含了这一方法的方法体。
The body of a method declaration is made up of statements, which can be any kind of action (for example: for statement, if statement, or expression).
一个方法声明的程序体是由语句组成的,语句可以是任何类型的行为(例如:for语句、if语句、or表达式)。
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方法体中增加代码。
The only downside is you'll need to run this method on your page's onLoad event, on the body tag.
惟一的缺点是您需要在页面的body 的onLoad事件上运行此方法。
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.
为了控制生育使用基础体温法,需要足够的动力和勤勉。
These classes define methods for modifying all aspects of the item represented by the class, including the actual bytecode body of a method or constructor.
这些类定义了修改由它们所表示的对象的所有方法的方法,包括方法或者构造函数中的实际字节码内容。
It then replaces the body of the copied method with timing code wrapping a call to the renamed original method.
然后它用含有对经过重命名的原方法的调用的计时代码替换拷贝方法的正文。
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.
更改转换产生的默认方法主体。
Its main body adheres to the goal of composed method: it reads like an outline of the steps it performs.
它的主体符合组合方法的目标:看起来像是执行的步骤的大纲。
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.
因为整个方法是一个块,所以我可以毫无问题地在正文中定义并且使用局部变量。
应用推荐