• 可以看到这个方法——状态转换事件——闭包散列映射结合起来可以形成一个良好DSL

    You can see that the methodsstate, transition, and eventcombined with closures and hash maps, make a nice DSL.

    youdao

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

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

    youdao

  • uri的形式公开最终用户方法无法浏览器进行访问

    Closures are exposed to the end user as a URI; methods are not accessible from the browser.

    youdao

  • 这些仅仅众多使用闭包进行迭代方法中的两种

    These are just two more of the many ways that you can use closures to iterate.

    youdao

  • 不再丑陋匿名内部只要通过这些便捷方法使用就可以!

    No more ugly anonymous inner classes: just use closures through those shortcut methods!

    youdao

  • 这个示例所使用生成递归闭包方法有些冗长

    The way of making recursive closures used in this example is a bit tedious.

    youdao

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

    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

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

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

    youdao

  • Ruby也可以编写使用自己闭包方法

    Ruby also lets you write methods that use your own closures.

    youdao

  • 当然,亲自操作Groovy了解闭包对于门美好令人激动语言一笔多么大的财富最好方法

    Of course, playing with Groovy yourself is the best way to see what a powerful asset closures are to the niftiness of this exciting language.

    youdao

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

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

    youdao

  • 闭包可以通过接口传递静态方法构造函数

    Closures can be passed as interface to static methods, constructors.

    youdao

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

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

    youdao

  • 回忆这个系列以前的文章闭包一般用于Listmap集合上应用迭代器方法上。

    You'll recall from previous articles in this series that closures are commonly used with iterator methods applied to List and Map collections.

    youdao

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

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

    youdao

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

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

    youdao

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

    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.

    youdao

  • Ruby拥有这些使用闭包相同列表操作方法不清楚collect()、map()inject()多久出现一次。

    Ruby has these same list-manipulation methods that use closure blocks, and I was struck by how often collect(), map(), and inject() appear.

    youdao

  • 一流的方法函数闭包

    First-class methods and functions (closures)

    youdao

  • lambda函数概念闭包基础并且提供了一种PHP已有的create_function函数改进很多的动态创建函数的方法

    The concept of lambda functions is the basis for closures and provides a much-improved way to create functions on the fly vs. the create_function function already in PHP.

    youdao

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

    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.

    youdao

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

    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.

    youdao

  • 由于方法闭包ActionScript 3.0中的事件处理得以提供内建的事件委托,从而得到了简化。

    Event handling is simplified in ActionScript 3.0 thanks to method closures, which provide built-in event delegation.

    youdao

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

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

    youdao

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

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

    youdao

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

    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.)

    youdao

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

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

    youdao

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

    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.

    youdao

  • jQuery 提供种简便的方法劫持表单的 submit 事件。传递一个来处理事件。

    Once again, pass in a closure to handle this event.

    youdao

  • 这种方法一个抽象使用需要开发访问者层次结构

    One attraction of this approach is that with closures you do not need to develop the visitor class hierarchy.

    youdao

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

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

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