• 通常,您会看到侦听器被定义为内嵌匿名类。

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

    youdao

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

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

    youdao

  • 为了实现该侦听器类,我们将在主资源管理器窗口中编码一个匿名类。

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

    youdao

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

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

    youdao

  • 注意:从技术角度考虑,匿名类也拥有类型名称,该类型名称是由编译器自动生成的。

    Note: Technically speaking, anonymous classes have names that are generated by the compiler.

    youdao

  • 有同样属性名和类型的两个匿名类型对象将被指派为自动生成的同样的类。

    Two anonymously typed objects that have the same property names and types will be assigned to the same automatically generated class.

    youdao

  • 例如,清单1所示的代码使用一个匿名类创建了一个ThreadFactory。

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

    youdao

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

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

    youdao

  • CLR自己对匿名类型没有什么概念,只是把它们看作有着自动产生名字的普通类。

    The CLR itself doesn't have any notion of anonymous types and sees them as normal classes with automatically generated names.

    youdao

  • 这样就允许我们通过使用集合操作来从匿名类或具有值约束的类来创建复合类。

    This allows the use of set operations to build up complex classes from anonymous classes or classes with value restrictions.

    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

  • 匿名类允许创建这样的对象,该对象能够捕获定义它们的一部分环境,但是对象和代码块不一样。

    Anonymous classes let you create objects that capture part of the environment in which they were defined, but objects and blocks of code are not the same thing.

    youdao

  • 匿名类型允许您定义一个类,然后在不给出类名称的情况下声明并初始化该类的对象。

    Anonymous types allow you to define a class, then declare and initialize an object of that class, without giving the class a name.

    youdao

  • 如果你添加了一个方法,则所有JRuby要做的事情就是生成一个新的匿名类,该类包含了这一方法的方法体。

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

    youdao

  • 使用定制的SecurityManager或ClassLoader阻止加载匿名类或其他无法直接控制的类。

    Use a custom SecurityManager or ClassLoader that prevents loading of anonymous classes or other classes not under your direct control.

    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

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

    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

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

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

    youdao

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

    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.

    youdao

  • 本系列所给出的表单自动保存特性适用于认证的和匿名的这两类用户。

    The form auto-saving feature presented in this series works with authenticated and anonymous users.

    youdao

  • 与之相反,“StudentsFees ”类的实例不需要在图中的其它任何地方引用,因此可以是匿名的。

    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.

    youdao

  • 诸如启动器或代理这样的匿名参与者也会使一些类被添加进来。

    An anonymous actor such as an initiator or facilitator may also result in the addition of classes.

    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

  • 您必须理解匿名内联类是如何工作的(Command子类的内联声明),并理解execute方法的含义。

    You must understand how anonymous inner classes work (the inline declaration of the Command subclass) and understand the implications of the execute method.

    youdao

  • 这些方法的实现被包含在匿名的类中,在遇到方法时这些类就会被生成。

    The implementations for those methods are contained in anonymously named classes that are generated when the method is encountered.

    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

  • 相比于每个匿名内部类都要对应一个类的做法来说,这种方式是个极大的改进,同时也使得代码的可读性更好。

    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

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

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

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