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

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

    youdao

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

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

    youdao

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

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

    youdao

  • For example, only final object references from the outer class are invokable within the body of the anonymous inner class.

    例如匿名内联主体只能调用外部中的final对象引用

    youdao

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

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

    youdao

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

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

    youdao

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

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

    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

  • 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

  • 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

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

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

    youdao

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

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

    youdao

  • Two things are worth mentioning when considering this code: First, the instantiation of an anonymous inner callback class requires a great amount of boilerplate code.

    上面代码两点值得我们注意:首先匿名内部回调类实例化需要大量样板代码。

    youdao

  • Two things are worth mentioning when considering this code: First, the instantiation of an anonymous inner callback class requires a great amount of boilerplate code.

    上面代码两点值得我们注意:首先匿名内部回调类实例化需要大量样板代码。

    youdao

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

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

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