Implement the create method from the Validator API.
实现ValidatorAPI的create方法。
Directly invokes the chown_mod method from the file itself.
直接从文件本身调用chown _ mod方法。
Listing 4 gives a sample run of the main method from Listing 1.
清单4给出了清单1中的main方法的运行示例。
You can directly invoke the exec method from your command string.
可以从命令字符串中直接调用exec方法。
RequestType — retrieves the HTTP request method from the request.
requestType——从请求检索HTTP请求方法。
Line 13 USES the observe_field method from the Prototype library.
第13行使用prototype库中的observe_field方法。
Doing so prevents the toString method from printing a lot of output.
这样做可以阻止toString方法输出过多内容。
Now you can call this method from your test script with the simple line.
现在可以从测试脚本中用简单的一行代码调用该方法。
In the default stateless session bean, add the remote method from Listing 1.
在缺省无状态会话Bean中,从清单1添加远程方法。
Select your publishing server and publishing method from the drop-down lists.
从下拉列表中选择发布服务器和发布方法。
Next, you instantiate the POJO by invoking the read method from the Serializer object.
接下来,通过从Serializer对象调用read方法,从而实例化POJO。
Let us use the method from the previous question and assume the 32-bit kernel is enabled.
让我们使用前一个问题中的方法并假设启用了32位内核。
To specify a particular method from overloaded methods, use the method-params element.
要指定重载方法中的特定方法,请使用method-params 元素。
Listing 4 shows the declaration of the accept method from ace/include/SOCK_Acceptor.h.
清单4给出ace/include/SOCK_Acceptor.h 中accept方法的声明。
You are able to directly invoke the install helper method from the package name itself.
可以通过包名本身直接调用install助手方法。
The method from which the refactoring was originally done now contains a call to the new method.
首先完成重构的那个方法现在包括了一个对新方法的调用。
How do you prevent this method from getting called, while at the same time clicking the checkbox?
在单击复选框的同时如何才能避免调用该方法?
In this case you used the properties method from the Story class. Take a look at that in Listing 15.
在本例中,您使用的是Story类的properties方法,如清单15所示。
Notice that Listing 3 refactors the main() method from Listing 2 to the execute() method of the task.
注意,清单3 将 清单2 中的main()方法重构为任务的execute() 方法。
The next thing you have to do is override any method from the base class or classes to populate the column.
接下来需要覆盖来自基类或者类的任何方法来填充列。
First, I've used a FileScanner to find every checksum file created from the checksum method from Listing 8.
首先,我用FileScanner找到清单8中的checksum方法创建的每个校验和文件。
The first one, Extract method, as you might expect, will create a new method from code you've selected.
第一个Extract Method的意思您可能已经猜到了,它根据您选中的代码创建新的方法。
Select the method from the list that appears at the end of the drag action (for example, buttonPressedtest).
从在拖动操作(例如,buttonPressedtest)结束时出现的列表中选择。
As with properties, any attempt to call a private method from outside the containing class causes a fatal error.
与属性一样,尝试从包含类外部调用私有方法将导致致命错误。
Listing 1 illustrates another difference between SWT and the JDK: Composites lack the add method from containers.
清单1展示了SWT与jdk之间的另一个区别:组合没有容器中的add方法。
You access database metadata in JDBC by calling the appropriate method from the DatabaseMetaData object, as shown in Listing 3.
通过调用DatabaseMetaData对象中的适当方法在JDBC中访问数据库元数据,见清单 3。
You can call the same action method from multiple places in the parent view and pass it parameters to specify what is rendered.
你可以在父视图的不同位置调用相同的动作方法,通过参数传递决定要呈现什么。
After all the previously pickled instances have been updated and re-pickled, we can remove the _setstate_ method from the class definition.
更新和重新pickle先前进行过pickle的所有实例之后,现在可以从类定义中除去_ setstate _方法。
To call a static method from outside of its class, use the class name together with the scope resolution operator and the name of the method.
要从类外部调用静态方法,可使用类名加上范围解析符和方法名。
When you finally realize that a method has a parameter wrong, and in fact isn't overriding a method from a superclass, much bitterness can result.
当最后认识到方法的参数有错,且该方法实际上没有覆盖超类中的方法时,您可能更感到难受。
应用推荐