单词 | inner classes | ||||||||||||||
释义 | inner classes
更多释义 收起释义 例句释义: 内部类,内隐类,内隐类别 1. One of the advantages of using code blocks over a similar mechanism like anonymous inner classes lies in its conciseness. 在类似匿名内部类的机制中使用代码块的一个优势是其简洁性。 www.ibm.com 2. There is nothing in the JavaBeans specification that requires you to create anonymous inner classes for event listening. 在JavaBeans规范中,没有要求您创建匿名内部类进行事件监听。 www.ibm.com 3. Even the Java language supports a limited form of nameless functions, with its anonymous inner classes. 即使是Java语言,也要通过它的匿名内部类,对匿名函数提供了有限形式的支持。 www.ibm.com 4. Inner classes implement an interesting concept in Java programs that allows a whole class to be nested within another class. 内部类在Java程序中实现了一个令人关注的概念,它允许将整个类嵌套在另一个类中。 www-128.ibm.com 5. The $1 is the Sun compiler's way of naming anonymous inner classes, incrementing the count for each class. $1是Sun编译器命名匿名内部类的方式,计数随着每一个类增加。 www.ibm.com 6. This includes publishing references to nonstatic inner classes, and generally precludes starting threads from within a constructor. 这包括发布对nonstatic内部类的引用,并一般要避免在构造函数中启动线程。 www-128.ibm.com 7. The scope of the relationships in a given instance of one of the inner classes is a single ACL. 这些内部类之一的给定实例中的关系的范围是单个ACL。 www.ibm.com 8. But anonymous inner classes give you only a loose approximation of closures, and they don't go as far as you need to go. 但匿名内部类只是宽泛地近似于闭包,它们并没有深入到您需要的程度。 www.ibm.com 9. Much of the main work of organizing a presentation of ACL relationships goes on in these inner classes. 组织ACL关系的表示形式的主要工作大部分都是在这些内部类中进行的。 www.ibm.com 10. Referring to enclosing type parameters inside static methods and static inner classes is prohibited outright by the compiler. 编译器完全禁止在静态方法和静态内部类中引用封闭类型参数。 www-128.ibm.com 1. However, private members declared within a class can be accessed by inner classes. 但是内部类可访问在一个类中声明的私有成员。 msdn2.microsoft.com 2. While I could do something similar with Java code using anonymous inner classes, it's simply easier and less esoteric in Groovy. 虽然我用Java代码时能用匿名内部类做类似的事情,但是用Groovy更容易、神秘性更少一些。 www.ibm.com 3. The Java language provides inner classes, which can contain references to fields of their enclosing object. Java语言提供了内部类,可以包含对封闭对象字段的引用。 www.ibm.com 4. This code uses an anonymous inner class, but you may also use named inner classes or independent classes as listeners. 此代码使用了一个匿名的内部类,但您还可以使用指定的内部类或单独的类作为监听器。 www.ibm.com 5. As I probably mentioned before, you'll frequently see AsyncCallback classes defined as anonymous inner classes. 我以前可能提到过,您将经常看到定义为匿名内部类的AsyncCallback类。 www.ibm.com 6. No more ugly anonymous inner classes: just use closures through those shortcut methods! 不再有丑陋的匿名内部类:只要通过这些便捷方法使用闭包就可以! www.infoq.com 7. Scala is statically typed which allows it to provide generic classes, inner classes and even polymorphic methods. Scala是静态类型的,这就允许它提供泛型类、内部类、甚至多态方法(PolymorphicMethod)。 www.infoq.com 8. because Outer itself is raw, so are all its inner classes, including Inner, and so it is not possible to pass any type parameters to it. 因为Outer自己是原始的,因此所有它的内部类,包括Inner,并且把任何类型参数传递给它都是不可能的。 blog.163.com 9. The recommended approach is to use static inner classes, if you must use an inner class at all. 推荐的做法是如果非要使用内部类的话,请使用静态内部类。 www.infoq.com 10. The dearth of Java libraries that effectively use anonymous inner classes make this problem manifest. 缺乏能够有效使用匿名内部类的Java库使问题更为明显。 www.ibm.com 1. Callback examples in most GWT books and online tutorials are implemented as anonymous inner classes. 大多数GWT书籍和在线教程中的回调示例是用匿名内部类实现的。 www.ibm.com 2. You can easily debug the code inside callback classes because not all IDEs support tracing in the inner classes. 可以轻松地调试回调类中的代码,而并非所有IDE都支持跟踪内部类。 www.ibm.com 3. If an IDE generates the code for me, I'd probably just leave it instead of recoding the listeners as anonymous inner classes. 如果IDE替我生成了代码,那么我可能就让它保持原样,而不会将编码监听器重新编码为匿名内部类。 www.ibm.com 4. Accessing values from containing scopes using inner classes is slightly different than in Java. 在内部类中访问外部变量的方式与Java略有不同。 www.infoq.com 5. Interfaces and inner classes provide more sophisticated ways to organize and control the objects in your system. 接口和内部类提供了更加完善的方式来在系统中组织和控制对象。 www.xue5.com 6. Another motivation is to reduce the verbosity of inner classes, which are currently the closest way to get this effect. 另一个动机是减少冗长的内部类,这是目前最可能获得这一效果的方式。 select.yeeyan.org 7. Primarily, you can use anonymous inner classes to implement closures. 可以使用匿名的内部类来实现闭包。 www.ibm.com 8. Play also supports a callback model using Java anonymous inner classes. Play还通过Java匿名内部类来支持回调模型。 www.infoq.com 9. Listing 9, the basis of a graphical clock, uses inner classes. 清单9,一个图形时钟的基础,使用了内部类。 www-128.ibm.com 10. In every Wicket application source code you will find anonymous inner classes. 每个Wicket应用的源代码中都会发现匿名的内部类。 www.infoq.com 1. We could do this with inner classes, but they are so clunky to use that sometimes it seemed the cure was worse than the disease. 我们可以使用内部类来做到这一点,但是它们的用法是如此笨拙,以致于有时候其所带来的效果看起来似乎比要解决的问题还糟糕。 www.bing.com 2. Merlin provides seven subclasses of DocFlavor as inner classes of itself to define formats. Merlin提供了DocFlavor的七个子类,作为它自身用来定义格式的内部类。 www.ibm.com 3. Anonymous inner class are local inner classes that don't have a class name. 匿名内部类是局部的内部类,它没有名字。 www.cnblogs.com 4. For Java programmers this is reminiscent of inner classes. 对于Java程序员,可能会回想起内部类。 www.ibm.com 5. Because three of the . class files are really inner classes of Song. class and Songs. class, I only need to focus on two . class 因为.class文件中有三个实际上是Song.class和Songs.class的内部类,所以我只需要把注意力放在两个.class文件上。 www.ibm.com 6. more precisely , the action takes place within two inner classes : class 更准确地说,操作发生在两个内部类中: www.ichacha.net 7. Consider Package Instead of Private Access with Private Inner Classes 使用Package代替私有访问内联类 blog.sina.com.cn 8. anonymous inner classes are handy when you want to define callbacks on the fly 匿名内部类可以方便的定义运行时回调。 www.ichacha.net 9. Inner classes in methods and scopes 在方法和作用域内的内部类 blog.sina.com.cn |
||||||||||||||
随便看 |
|
英汉双解词典包含2704715条英汉词条,基本涵盖了全部常用单词的翻译及用法,是英语学习的有利工具。