Anonymous class 双语例句
全部
1·Often, you'd see the listener defined as an inline anonymous class.
通常,您会看到侦听器被定义为内嵌匿名类。
2·As an example, the code in Listing 1 USES an anonymous class to create a Thread Factory.
例如,清单1所示的代码使用一个匿名类创建了一个Thread Factory。
3·To implement this listener class, we'll code an anonymous class in the main Explorer Window.
为了实现该侦听器类,我们将在主资源管理器窗口中编码一个匿名类。
4·To pass this to a recursive method, the anonymous class should extend a wrapper type known to the method.
为了在递归方法中传递,匿名类应该扩展方法已知的包装器类型。
5·The code in Listing 1 would be much neater if the anonymous class was placed separately as an inner class.
如果这个匿名类可被作为一个内部类单独放置,那么清单1中的代码将会简洁很多。
6·Locals variables needed by those functions are said to closed over or lifted into the anonymous class.
那些匿名函数所需的本地变量据说被“封闭”(closed over)或“提升”(lifted)到该匿名类中。
7·If you add a method, all JRuby has to do is generate a new anonymous class that includes the body of that method.
如果你添加了一个方法,则所有JRuby要做的事情就是生成一个新的匿名类,该类包含了这一方法的方法体。
8·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”。
9·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.
因为每个匿名类都有一个唯一的名称,因此在加载该类是不会有问题的,而这样做的结果是,应用被实时动态地更新了。
10·Loosely speaking, since our anonymous class doesn't define click itself, the method lookup proceeds right to left, as declared.
大概地讲,因为我们的匿名类没有定义自己的click,所以这个方法会按照声明从右到左开始寻找。
