The new iteration also supports inner classes.
新版Groovy也支持内部类。
The OGAdmin class contains several inner classes.
ogadmin类包含多个内部类。
Two inner classes are defined for parsing the event messages.
两个用于解析事件消息的内部类。
Primarily, you can use anonymous inner classes to implement closures.
可以使用匿名的内部类来实现闭包。
The inner classes implement these functions using an internal map structure and a set.
内部类可以使用内部映射结构和一个集合实现这些功能。
No more ugly anonymous inner classes: just use closures through those shortcut methods!
不再有丑陋的匿名内部类:只要通过这些便捷方法使用闭包就可以!
The recommended approach is to use static inner classes, if you must use an inner class at all.
推荐的做法是如果非要使用内部类的话,请使用静态内部类。
Callback examples in most GWT books and online tutorials are implemented as anonymous inner classes.
大多数GWT书籍和在线教程中的回调示例是用匿名内部类实现的。
Much of the main work of organizing a presentation of ACL relationships goes on in these inner classes.
组织acl关系的表示形式的主要工作大部分都是在这些内部类中进行的。
This one makes recursive calls by default; therefore, it will also find method declarations in any inner classes.
默认情况下,它将进行递归调用。因此,您也可以在任何一个内部类中发现方法声明。
Scala is statically typed which allows it to provide generic classes, inner classes and even polymorphic methods.
Scala是静态类型的,这就允许它提供泛型类、内部类、甚至多态方法(Polymorphic Method)。
Interfaces and inner classes provide more sophisticated ways to organize and control the objects in your system.
接口和内部类提供了更加完善的方式来在系统中组织和控制对象。
But anonymous inner classes give you only a loose approximation of closures, and they don't go as far as you need to go.
但匿名内部类只是宽泛地近似于闭包,它们并没有深入到您需要的程度。
One of the advantages of using code blocks over a similar mechanism like anonymous inner classes lies in its conciseness.
在类似匿名内部类的机制中使用代码块的一个优势是其简洁性。
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.
我们可以使用内部类来做到这一点,但是它们的用法是如此笨拙,以致于有时候其所带来的效果看起来似乎比要解决的问题还糟糕。
This includes publishing references to nonstatic inner classes, and generally precludes starting threads from within a constructor.
这包括发布对nonstatic内部类的引用,并一般要避免在构造函数中启动线程。
You must understand how anonymous inner classes work (the inline declaration of the Command subclass) and understand the implications of the execute method.
您必须理解匿名内联类是如何工作的(Command子类的内联声明),并理解execute方法的含义。
Referring to enclosing type parameters inside static methods and static inner classes is prohibited outright by the compiler. So, for instance, the following code is illegal in tiger.
编译器完全禁止在静态方法和静态内部类中引用封闭类型参数。
Inner classes can refer to mutable instance fields if the inner-class expression occurs in an instance context, but this is not the same thing.
如果内部类表达式出现在某个实例上下文中的话,内部类可以引用可变的实例域instance field,但这不是同一回事。
Inner classes can refer to mutable instance fields if the inner-class expression occurs in an instance context, but this is not the same thing.
如果内部类表达式出现在某个实例上下文中的话,内部类可以引用可变的实例域instance field,但这不是同一回事。
应用推荐