• Listing 2 shows a typical static initializer.

    清单2显示典型静态初始化器。

    youdao

  • Provide a GBeanInfo static initializer that describes the constructor.

    提供描述构造函数的gbeaninfo静态初始化器。

    youdao

  • In a static initializer block, which executes when the class is loaded.

    一个静态初始化块中,在加载执行

    youdao

  • The static initializer runs first, as the class is loaded, followed by the main method (which is also static).

    加载之后,静态初始化器首先运行紧接着运行的main方法也是静态的)。

    youdao

  • Before we can use ofy, however, we need to register persistent classes in a static initializer like Photo in Listing 2.

    然而我们使用ofy之前,我们需要一个静态初始化方法中注册持久化如清单2Photo

    youdao

  • The static initializer in Listing 2 shows the registration process for a Customer class that contains two properties: name and salary.

    清单2中的静态初始化器显示了Customer注册过程这个包含两个属性namesalary

    youdao

  • A permissions class with a static initializer provides a single location for declaring and configuring available application permissions.

    带有静态初始化器的permissions声明配置可用应用程序权限提供单一位置

    youdao

  • This information resides in a BeanInfo class, which is typically provided by your bean when the bean's class is loaded via a static initializer.

    信息位于beaninfo中,该类通常bean通过静态初始化器装入bean提供

    youdao

  • Permissions is never instantiatedit features a static initializer that builds up the enum types that configure permissions for the application.

    Permissions从不实例化,提供构建Enum类型静态初始化器,Enum类型可以应用程序配置权限

    youdao

  • The second scenario is when a type has a initializer for a static field, in which case the compiler adds a type constructor behind the scenes.

    第二情况类型具有一个用于静态字段初始值设定项这种情况下,编译器会在后台添加类型构造函数

    youdao

  • As you saw earlier, the code for a static field initializer executes inside an implicit type constructor.

    正如前面看到的那样,静态字段初始值设定项代码隐式类型构造函数内部执行

    youdao

  • The same rules hold true if the exception is thrown from a static field initializer.

    如果异常是从静态字段初始值设定项引发的,也存在同样规则

    youdao

  • Metadata about operations, references, and basic attributes are initialized in a static block initializer, as shown in Listing 3.

    有关操作引用以及基本属性元数据一个静态初始程序初始化,如清单3所

    youdao

  • You should utilize the initializer syntax for both static and instance variables.

    应该静态变量实例变量上面利用初始语法

    youdao

  • As with instance initialization, you can use the initializer syntax as an alternative to the static constructor.

    实例初始一样可以使用初始化器语法作为静态构造函数变体

    youdao

  • External and static variables are initialized to zero by default. Automatic variables for which is no explicit initializer have undefined (i. e., garbage) values.

    外部变量静态变量初始的时候默认自动变量在初始的时候没有默认值的。

    youdao

  • If you simply need to allocate a static member, use the initializer syntax.

    如果需要简单分配一个静态成员,那么可以使用初始化器语法

    youdao

  • If you simply need to allocate a static member, use the initializer syntax.

    如果需要简单分配一个静态成员,那么可以使用初始化器语法

    youdao

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

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

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