• Often, you'd see the listener defined as an inline anonymous class.

    通常看到侦听被定义嵌匿名类。

    youdao

  • As an example, the code in Listing 1 USES an anonymous class to create a Thread Factory.

    例如,清单1代码使用匿名创建Thread Factory。

    youdao

  • To implement this listener class, we'll code an anonymous class in the main Explorer Window.

    为了实现侦听器我们资源管理器窗口编码一个匿名类。

    youdao

  • To pass this to a recursive method, the anonymous class should extend a wrapper type known to the method.

    为了在递归方法传递匿名应该扩展方法已知包装器类型

    youdao

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

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

    youdao

  • Locals variables needed by those functions are said to "closed over" or "lifted" into the anonymous class.

    那些匿名函数所需本地变量据说被“封闭”(closedover)提升”(lifted)匿名类中

    youdao

  • If you add a method, all JRuby has to do is generate a new anonymous class that includes the body of that method.

    如果添加方法,则所有JRuby事情就是生成一个新的匿名,该类包含一方法的方法

    youdao

  • The closest you can come is to use a class (frequently an anonymous class) as a "holder" of a method you need to execute.

    接近方式利用经常匿名类)作为想要执行的方法的 “holder”。

    youdao

  • As each anonymous class has a unique name there are no issues loading it and as a result the application is updated on-the-fly.

    因为每个匿名一个唯一的名称因此加载该类不会问题的,而这样做的结果应用被实时动态地更新了。

    youdao

  • Loosely speaking, since our anonymous class doesn't define click itself, the method lookup proceeds right to left, as declared.

    大概地因为我们匿名没有定义自己click,所以这个方法会按照声明开始寻找。

    youdao

  • To do this recursively, you close over the rest of the join point by encapsulating the proceed (..) call in an anonymous class.

    为了实现归,可以通过proceed(. .)调用封装匿名中来隐藏连接点其他部分

    youdao

  • Since the "locals" used by an asynchronous functions are actually fields on an anonymous class, they must be retained for the duration of the call.

    由于异步函数中所使用局部变量实际上某个匿名中的字段,因此在调用期间它们必须保留

    youdao

  • What's useful about this class is that you can use anonymous classes to override only the methods you want; the rest of the methods are implemented by default.

    作用在于可以使用匿名替代所希望替代方法剩下方法默认方式实现

    youdao

  • The convert anonymous class to nested refactoring takes an anonymous class and converts it to a nested class of the method that originally contained the anonymous class.

    ConvertAnonymous ClasstoNested重构能够接受匿名转换为最初包含这个匿名类方法套类。

    youdao

  • If this takes several seconds, which is not uncommon for an asynchronous call, the anonymous class may be inadvertently promoted to the more expensive generation 1 or 2.

    如果过程耗时对于异步调用而言常见的,而该匿名可能不经意间被晋升为垃圾回收器中昂贵1或2代对象[3]。

    youdao

  • An anonymous class is a kind of syntactic shorthand that lets you instantiate a class implementing an abstract class or interface where you need it, without having to explicitly give it a class name.

    匿名语法速写标记使能够在需要实现某个抽象或者接口地方创建一类的实例而不需要显式提供类的名称。

    youdao

  • The indirection, which is based on "advanced compilation techniques (like abstract bytecode)" results in one master class and several anonymous, JIT enabled support classes.

    间接产物基于高级编译技术类似抽象字节码)”,会产生一个几个匿名类、以及一些启用JIT支持

    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

  • 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

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

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

    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

  • 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

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

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

    youdao

  • Contrast this with the instance of the "StudentsFees" class, which didn't need to be referenced anywhere else in the diagram and, thus, could be anonymous.

    与之相反,“StudentsFees实例需要中的其它任何地方引用因此可以匿名

    youdao

  • To verify that your new user and class of user has access to the Upload features, log out to become the anonymous user and browse a piece of content that has an attachment.

    检查新的用户能否访问upload特性,退出登录变成匿名用户,然后浏览带有附件内容

    youdao

  • Now, this is a large class, and if you don't do anything about it, it can be very anonymous.

    一门大班课程,如果并不打算周围人相互介绍的话,也就不会有什么人能够认识你了?

    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 idea here is that the object behind the interaction is anonymous and any object of that class could take part in the interaction.

    含义交互背后对象匿名该类任何对象都可以参与交互中。

    youdao

  • So, again, I want to stress you have the option of staying anonymous in this class, but you also have the option of seeking out and making some sort of contact with us.

    那么强调一遍你们可以选择门课默默无闻但是你们可以选择站出来我们多多接触。

    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

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

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

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