First, calling a method hurts readability.
首先,调用方法会影响可读性。
Step 3: Calling a method of the insecure bean.
步骤3:调用不安全bean的方法。
Calling a method for password reset email notification?
调用一个密码重置电子邮件通知的方法?
OO PHP and MVC: calling a method from another controller?
OOPHP和MVC:调用一个方法从另一个控制器吗?
Each declaration is actually calling a method named Value that takes a string argument.
每一个声明实际上都调用了一个名为Value的方法,它接受一个字符串参数。
A handler can be anything from calling a method on an object, running a command or invoking a remote object call.
事件处理器可以做任何事,包括调用一个对象的方法,运行一个命令,或者对远程对象进行调用。
The runtime queries the Permission class about its implication reasoning logic by calling a method, aptly named implies.
运行时通过调用一个恰当地取名为implies的方法来查询permission类的隐含推断逻辑。
Simply put, extensions are a way of calling a method written in some other programming language from within an XSL document.
简而言之,通过扩展我们可以从 XSL 文档中调用使用其它编程语言编写的方法。
Reflection also suffers a performance disadvantage when compared to calling a method or accessing a field directly in compiled code.
与直接在已编译代码中调用方法或访问字段相比,反射在性能上也处于劣势。
When calling a method, you can often choose between passing a single object that has multiple fields and passing the fields individually.
在调用某个方法时,您经常会在传递一个有多个字段的对象以及单独传递字段之间做出选择。
You can also detect common performance problems, such as calling a method multiple times even though the result it produces does not change.
您还可以检测普遍的性能问题,例如即使方法生成的结果没有变化,还是调用该方法多次。
For example, code calling a method in a separate application domain must be able to find the assembly containing an exception thrown by a remote call.
例如,在单独的应用程序域中调用方法的代码必须能够找到包含远程调用引发的异常的程序集。
These handlers can perform any number of tasks, including calling a service, setting a value on a class, calling a method on a class, or dispatching another event.
这些事件处理器可以执行任何数量的任务,包括对某项服务的调用,对一个类中某个值的设定,对一个类中某个方法的调用,或者分发另一个事件。
The new element creation technique (lines 15-16) differs both by the use of a QName object to represent the element name and by calling a method of the saved factory to build the element.
通过使用QName对象来表示元素名称和通过调用已保存的工厂的方法来构建元素可以区别新元素的创建技术(第 15-16 行)。
In each case, I ran a simple program that measured the run time of a loop calling a method 10,000,000 times, calling both a synchronized and an unsynchronized version, and compared the results.
在每一个实例下,我运行一个简单的程序,测定循环调用一个方法10,000,000次所需的运行时间,我调用了同步和非同步两个版本,并比较了结果。
You can also use it to create intermediate values or to avoid calling a costly method multiple times.
您还可以使用它来创建中间值,或者用它来避免多次调用某一昂贵的方法。
Each parameter is specified by calling a client method with the same name and by passing the value to the method as first argument.
通过调用相同名称的客户端以及将值作为第一个参数传递给该方法,来指定每个参数。
This way, the calling component can use any object it likes as a method parameter, as long as the object implements the interface.
这样,只要对象实现该接口,调用组件就可以将其想使用的任何对象用作方法参数。
Once there is no longer an exclusive access for a resource, you should destroy it by calling this method.
当不再对资源进行独占访问后,您应该调用这个方法销毁它。
In essence, what happens upon calling this method is that a snapshot of the state of the call stack is taken at that very instant and the sets of permissions intersected with each other.
本质上,调用这个方法所发生的事情是对那一瞬间调用堆栈和一组相互交叠的权限进行快照。
Components are still rendered by calling their paint method, which takes a Graphics object.
组件的着色还是通过调用它们的paint方法,它使用一个Graphics对象。
The joy is being able to dispatch an event 20 levels into your UI without setting a globally available property/calling a globally available method, such as ModelLocator.
让人高兴的是一个事件能够在你的用户界面中被分发达20层,而无需设置一个全局属性/调用一个全局方法(如ModelLocator)。
For example, the previous article formed a box by creating a square Face object and calling the pushpull method with an argument of -9.
例如,前一篇文章通过创建一个正方形Face对象,并使用参数- 9调用pushpull方法,形成了一个盒状立体图形。
You need to override this method after calling super.updateDisplayList() if you're creating a custom layout, and then substitute the desired logic.
如果您正在创建定制布局,那么需要在调用 super.updateDisplayList() 之后覆盖该方法,然后替换为希望使用的逻辑。
You may be wondering exactly how calling a GObject method differs from calling a simple C function.
您可能会感到疑惑:调用GObject方法与调用简单的C 函数到底有何区别?
Method dispatch starts by calling a static "ClassOf" method with the object as argument.
方法调度通过把对象作为参数,来调用一个名为“ClassOf”的静态方法予以实现。
Finding all the weblogs mentioned in the list is a simple matter of calling the blogs method, which performs a query for all the objects of statements with foaf: weblog as their predicate.
调用blogs方法就可以很容易地找到清单中列出的所有weblog,这个方法的谓词是查询所有foaf:weblog声明的对象。
The server-side message receiver functions as a proxy for the client, calling the actual user-defined service method.
服务器端消息接收者可作为客户端的代理,调用实际的用户定义的服务方法。
The way to call a method less often is to find out what code is calling that method, and then not make those calls.
要减少一个方法的调用次数,方法是找出哪些代码正在调用该方法,然后取消这些调用。
Parameter values are accessed by calling a super class method.
通过调用父类的方法来访问参数值。
应用推荐