单词 | anonymous class | ||||||||||||
释义 | anonymous class
更多释义 收起释义 例句释义: 匿名类,匿名类别,匿名内部类 1. If you add a method, all JRuby has to do is generate a new anonymous class that includes the body of that method. 如果你添加了一个方法,则所有JRuby要做的事情就是生成一个新的匿名类,该类包含了这一方法的方法体。 www.bing.com 2. 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”。 www.ibm.com 3. The code in Listing 1 would be much neater if the anonymous class was placed separately as an inner class. 如果这个匿名类可被作为一个内部类单独放置,那么清单1中的代码将会简洁很多。 www.ibm.com 4. Loosely speaking, since our anonymous class doesn't define click itself, the method lookup proceeds right to left, as declared. 大概地讲,因为我们的匿名类没有定义自己的click,所以这个方法会按照声明从右到左开始寻找。 www.bing.com 5. To pass this to a recursive method, the anonymous class should extend a wrapper type known to the method. 为了在递归方法中传递,匿名类应该扩展方法已知的包装器类型。 www.ibm.com 6. It is similar to anonymous class in Java except it is a first class object which can be passed around as argument if needed. 它类似于Java中的匿名类,除了它是一个可在需要时作为参数来传递的第一级对象之外。 www-128.ibm.com 7. The revised declaration of observableButton actually creates an anonymous class in which we override the click method, as before. 修订过的observableButton的声明实际上创建了一个匿名类,并且像之前那样重写了click方法。 www.bing.com 8. The InvariantCultureIgnoreCase property actually returns an instance of an anonymous class derived from the StringComparer class. InvariantCultureIgnoreCase属性实际上返回从StringComparer类派生的匿名类的实例。 msdn2.microsoft.com 9. Notice that the actionPerformed handler is defined as a closure instead of an anonymous class. 注意,actionPerformed处理函数定义为闭包,而不是匿名类。 www.ibm.com 10. It is not useful to define new public or protected elements in an anonymous class , since they are not accessible outside the class . 在一个匿名类中定义新的公有或保护因数是不需要的,因为他们在类之外不能被获取到。 www.bing.com 1. To implement this listener class, we'll code an anonymous class in the main Explorer Window. 为了实现该侦听器类,我们将在主资源管理器窗口中编码一个匿名类。 www.ibm.com 2. Convert Anonymous Class to Nested. 对匿名内部类可用。 old.volitation.net 3. As an example, the code in Listing 1 uses an anonymous class to create a Thread Factory. 例如,清单1所示的代码使用一个匿名类创建了一个ThreadFactory。 www.ibm.com |
||||||||||||
随便看 |
|
英汉双解词典包含2704715条英汉词条,基本涵盖了全部常用单词的翻译及用法,是英语学习的有利工具。