• 实例初始化器允许一个匿名内部执行构造代码

    Instance initializers allow you to execute construction code for an anonymous inner class.

    youdao

  • 匿名内部局部内部没有名字

    Anonymous inner class are local inner classes that don't have a class name.

    youdao

  • 大多数GWT书籍在线教程中的回调示例匿名内部实现的。

    Callback examples in most GWT books and online tutorials are implemented as anonymous inner classes.

    youdao

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

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

    youdao

  • 匿名内部只是宽泛地近似闭包它们没有深入到您需要的程度。

    But anonymous inner classes give you only a loose approximation of closures, and they don't go as far as you need to go.

    youdao

  • 匿名内部机制使用代码一个优势是其简洁性

    One of the advantages of using code blocks over a similar mechanism like anonymous inner classes lies in its conciseness.

    youdao

  • 事实上匿名内部甚至不能同时扩展实现一个借口

    In fact, an anonymous inner class can't even extend a class and implement an interface at the same time.

    youdao

  • Groovy消除了这种限制Groovy匿名内部可以修改外部变量

    This restriction is lifted in Groovy; you can change the values of variables in a containing scope from within an anonymous inner class.

    youdao

  • 以前可能提到过,经常看到定义匿名内部asynccallback

    As I probably mentioned before, you'll frequently see AsyncCallback classes defined as anonymous inner classes.

    youdao

  • 第一闭合括弧划定一个匿名内部构造第二组划定匿名内部类实例初始化语句块

    The first set of enclosing braces delineates the construction of an anonymous inner class, and the second set delineates the instance initializer for the anonymous inner class.

    youdao

  • 这里ActionListener实现适时定义的,它定义一个匿名内部直接附加按钮

    Here, the ActionListener implementation is defined in place, as an anonymous inner class, and directly attached to the button.

    youdao

  • 惟一需要这种方式使用一个默认构造函数允许创建继承匿名内部)。

    The only thing a class needs to be used this way is a default constructor (which allows you to create an anonymous inner class instance inheriting from your class).

    youdao

  • addOrderFrom()方法成为公共匿名内部创建定义,将两个工作项目包装起来。

    The addOrderFrom() method collapses to the definition of an anonymous inner class creation of the command class, wrapping the two work items.

    youdao

  • 相比于每个匿名内部对应一个的做法来说,这种方式是个极大的改进同时使得代码可读性更好

    This is an improvement over having to write a class any time an anonymous inner class is needed and can help keep the code more self-documenting.

    youdao

  • 考虑到包装这个方法匿名内部真正用途留下难看样板代码addorderfrom方法中的行代码。

    I'm left with some ugly boilerplate code because of the anonymous inner class wrapping this method's real purpose - the two lines of code that appear in the body of the addOrderFrom method.

    youdao

  • 可以使用匿名内部实现闭包

    Primarily, you can use anonymous inner classes to implement closures.

    youdao

  • 每个Wicket应用源代码都会发现匿名内部

    In every Wicket application source code you will find anonymous inner classes.

    youdao

  • 如果这个匿名作为一个内部单独放置,那么清单1中的代码简洁很多

    The code in Listing 1 would be much neater if the anonymous class was placed separately as an inner class.

    youdao

  • 如果这个匿名作为一个内部单独放置,那么清单1中的代码简洁很多

    The code in Listing 1 would be much neater if the anonymous class was placed separately as an inner class.

    youdao

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

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

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