• It ACTS like a macro in this context, where calling the method of function via the closure makes the function call in the context of where it's defined.

    上下文中用作通过闭包调用函数方法定义上下文中执行函数调用

    youdao

  • To solve this, we can push that method call into a closure and make the calls against that closure, instead. The resulting code is shown below.

    为了解决问题,我们可以方法调用放入转而针对该闭包执行调用

    youdao

  • A method or function can communicate with a closure by passing in arguments.

    方法函数通过传入参数通信

    youdao

  • But this usage is in a closure, so this code actually executes in the context of the collect method!

    此项用法一个闭包里进行所以段代码实际上是在collect方法的上下文中执行的!

    youdao

  • In gpars, actors can be created from a factory method that takes a closure or by subclassing groovyx.gpars.actor.AbstractPooledActor.

    gpars中,可以利用接受包的factory方法通过为groovyx . gpars . actor . AbstractPooledActor划分子类创建actors

    youdao

  • Because it is a Seq, it has a foreach method that takes a closure as a parameter.

    因为Seq,它具有一个foreach方法并将一个闭包作为参数

    youdao

  • Each method call and optional closure argument defines a bean and sets bean properties.

    每个方法调用可选闭包参数定义一个bean设置bean属性

    youdao

  • The iterator method collect, for example, applies a closure to every element in a collection and returns a new collection with the new values.

    例如迭代器方法collect把闭包应用集合中的每个元素上,返回一个带有的新集合。

    youdao

  • Note that where the final parameter to a method is a closure, Groovy permits that you can remove it from the list of actual parameters and place it immediately after the closing parenthesis.

    注意方法最后一个参数是个闭包,在这个地方Groovy允许实际参数列表删除把它直接放在结束括号后面。

    youdao

  • The closure captures the information about the actual Web service method stub to be invoked (the function object called obj) as well as the stream for the log output.

    闭包捕获真正调用Web服务方法存根(称为obj函数对象)以及作为日志输出

    youdao

  • A subtle but important difference between auth and list is that list is a closure, whereas auth is a private method. (Closures use an equals sign in the definition; methods use parentheses.)

    authlist之间微妙重要的一点区别list是包,auth是一个私有方法(定义使用等号方法使用圆括号)。

    youdao

  • Calling the object reference shown in Listing 9 as a variable automatically calls the __invoke magic method, making the class itself act as a closure.

    清单9中所对象引用调用变量将自动调用__invoke魔术方法使本身用作闭包

    youdao

  • Here, we explicitly use the greeting given to the greet method in the closure defined within it.

    在这里我们显式使用提供greet方法的欢迎词,闭包在该方法内定义

    youdao

  • This allows the SQL LinQ provider to analyze the closure passed to the Where() method and translate it into SQL.

    充许SQLLinQ提供程序分析传递Where()方法闭包转换成 SQL。

    youdao

  • The List referenced as ages is sent the collect() method with the single closure { element -> return element + 1 } as a parameter.

    名为agesList发送给collect()方法使用单个闭包 {element->return element +1 }作为参数

    youdao

  • To use fork/join directly, you must either use the runForkJoin() method with a task closure or a task class that subclasses AbstractForkJoinWorker.

    直接使用fork/join必须使用带有任务闭包的runForkJoin()方法一个将AbstractForkJoinWorker分为子类的任务

    youdao

  • It is a method without a surrounding class. Listing 7 demonstrates a simple closure.

    一个未包含中的方法

    youdao

  • But there is one feature of the implementation internals of the Closure class that you can exploit: its use of the new __invoke method. The __invoke magic method makes a class callable.

    但是一个可在内部实施closure利用特性使用新的__invoke方法

    youdao

  • Unfortunately, it will result in the error message shown in Figure 5, because the function declared in the dojo.forEach method call creates a closure that defines this as referring to its own body.

    不幸的是,导致5错误消息因为在dojo. forEach方法调用声明函数创建了一个包,该闭包将this定义引用它本身。

    youdao

  • The event command is also a method invocation, taking a symbol (which defines the event's name) and a closure, which defines the transitions.

    event命令也是一个方法调用使用 符号定义事件包(定义转换)作为参数。

    youdao

  • More "the face guard" the method utilized "the closure" has sung with the teaching.

    更多把“关闭”“面罩方法运用到了演唱教学中。

    youdao

  • BeforeDelete closure gets called before the delete method.

    beforeDelete在delete方法执行前被调用

    youdao

  • BeforeUpdate closure gets called before the update method.

    beforeUpdateupdate方法执行被调用。

    youdao

  • The code has two methodsXML and HTML — that each take closures. Each method can selectively call its closure based on the contents of the accept header, as in Listing 10.

    代码两个方法,即xmlhtml每个都使用闭包。

    youdao

  • The algorithm makes use of the characteristic of Lagrange relaxation method, and finds multicast tree satisfying constraint by constructing closure graph and making relaxation to this graph.

    算法充分利用拉格朗日松弛方法特点通过构建封闭,对封闭图进行拉格朗日松弛求得满足条件的多

    youdao

  • Based on this analysis, the author has got an effective minimization method for constructing the minimal closure of the closed class of implicative compatible pairs without redundant elements.

    基础上,提出一个有效极小方法——建立多余元素蕴涵相容封闭极小闭包的方法。

    youdao

  • Results incision complication was related to skill of puncture and operation, method of specimen extraction and incision closure.

    结果腹腔镜手术切口并发症发生与穿刺手术操作技巧标本取出方法切口封闭方法有密切关系。

    youdao

  • Flange member, noice silencer, tube end closure or connection device, and forming method and device.

    法兰部件,消声器,管端闭锁联结装置及其形成方法装置。

    youdao

  • The calculated results for the approximation of valve closure problems show good agreement with that obtained by method of characteristics.

    数值计算表明单根等截面圆管阀门问题计算结果特征线方法计算结果吻合

    youdao

  • The calculated results for the approximation of valve closure problems show good agreement with that obtained by method of characteristics.

    数值计算表明单根等截面圆管阀门问题计算结果特征线方法计算结果吻合

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定