可以将方法指针当作调用对象方法的方便机制。
Think of the method pointer as a short-hand convenience mechanism for invoking methods along an object graph.
在这里,验证逻辑作为调用对象的外部服务运行。
Here, the validation logic is run as part of a service external to the object that is calling it.
可以直接调用对象来取得信息,不需要其他参与者。
Information can be acquired through a direct call to the object without the need for any other participants.
清单4展示如何使用php重载调用对象和类方法。
Listing 4 illustrates using PHP overloading to invoke object and class methods.
调用对象链接提供程序对象中方法出错。
Error occurred when calling methods on object link provider object.
非数据描述符最常用于返回一个可调用对象。
The non-data descriptor is likely to be used to return a callable object.
需通过调用对象方法或改变它们的属性值来完成这个操作。
You perform this manipulation by invoking methods of the objects or changing their property values.
你不再能间接的调用对象或在随机在内存中读取。
如果定义了此方法,则在该上下文中调用对象时将使用此方法。
If this method is defined, it will be used when the object is called in that context.
对动态代理类的方法调用,不会像直接调用对象的方法那样好。
Method invocations on dynamic proxy classes do not perform nearly as well a direct method call on objects.
AS 3架构:如何二层多个调用对象的一个实例吗?
AS3 Architecture: How to tween a single instance of an object on multiple calls?
调用对象链接提供程序对象的方法时出错。请与管理员联系。
Error occurred when calling methods on object link provider object. Contact your administrator.
调用对象链接提供程序对象中方法出错。请与您的管理员联系。
Error occurred when calling methods on object link provider object. Please contact your administrator.
Dispatch实例是个可调用对象,可以用数量不限的规则来配置它。
An instance of Dispatch is a callable object and can be configured with as many rules as you wish.
不幸的是,将对象写入流就要调用对象的toString方法。
Unfortunately, writing an arbitrary object to a stream invokes the object's toString method.
如果不涉及到内嵌函数,这个作用域链是唯一引用到调用对象的。
When no nested functions are involved, the scope chain is the only reference to the call object.
调用对象链接提供程序对象的方法时出错。请与服务器管理员联系。
Error occurred when calling methods on object link provider object. Contact your server administrator.
这个变量会调用对象的__get方法,在散列表中查找title条目并返回。
That variable, in turn, calls the __get method on the object that looks for the title item in the hash table and returns it.
OQL查询同样可以调用对象的方法,将正则表达式作为查询的一部分,并使用内置查询工具。
OQL queries can also invoke methods on the objects themselves, use regular expressions as part of the query, and use built-in query tools.
修饰符是一些方法,这些方法可以修改其他方法并返回一个方法或另外一个可调用对象。
Decorators are methods that modify other methods and return either a method or another callable object.
如果内嵌函数只是在外部函数中使用到,那么对内嵌函数的唯一引用就是调用对象自己。
In this case, there is an external reference to the nested function, and the nested function retains its reference to the call object of the outer function.
事件,调用对象的其他方法和设置属性,或者在销毁对象前执行特定于对象的清理操作。
Event to call other methods on the object and set properties or to perform clean-up that is specific to the object before the object is destroyed.
如果内嵌函数只是在外部函数中使用到,那么对内嵌函数的唯一引用就是调用对象自己。
If the nested function is used only within the outer function, however, the only reference to the nested function is in the call object.
在服务器端,传输协议将消息传送给服务器存根,随后服务器存根解包请求消息并调用对象中真正的函数。
At the server side, the transport protocol delivers the message to the server stub, which then unpacks the request message and calls the actual function on the object.
接着这个对象可以被继续传递,直至传递到调用方,调用方解组调用对象并针对端点目标对象实现动态执行。
This object can then be passed around until it is it passed to an invoker that unmarshalls the invocation object and dynamically executes it against the endpoint target object.
当你使用闭包时,记得包含函数的调用对象,包括所有的函数参数和本地变量,会有跟闭包一样的存活时期。
When you use a closure, remember that the call object of the enclosing function, including all function arguments and local variables, will last as long as the closure does.
然后就可以选择合适的XMLAPI,让每个bean提供表示自己状态的元素,并递归地对自己的成员调用对象图。
You would then pick a suitable XML API and have each bean emit elements to represent its state and recursively call down the object graph to its members.
相反,您只需调用对象上的checkout方法,cmislib将返回一个表示该PWC的Document对象。
Instead, you just call the checkout method on the object and cmislib gives you back a Document object representing the PWC. Listing 2 shows this interaction.
当然解决方案就是把这代码放到一个函数中,然后调用这个函数。这样,变量就定义在了函数的调用对象中了。
The solution, of course, is to put the code into a function and then invoke the function. This way, variables are defined in the call object of the function.
每个元组的第一项是可调用对象(在这里是一个方法指针),第二项是 HTTP请求类型,这种请求类型可以调用该方法。
The first item in each tuple is a callable object (in this case a method pointer) and the second is a HTTP request type that the method should be called for.
应用推荐