• Add the following lines to the top of the rule class.

    向规则类的顶部添加下列代码。

    youdao

  • The rule class is quite simple, typically containing only a single method.

    规则类是十分简单的,典型情况下只包含一个方法。

    youdao

  • Listing 3 is a code snippet that shows how you can implement a rule class.

    列表3是一个显示如何执行规则类的代码片段。

    youdao

  • Any rule class must extend the AbstractRule class defined by the transformation framework.

    所有的规则类必须扩展转换框架定义的abstractrule类。

    youdao

  • Before you look in detail at the transform, amend the rule class to invoke this generated class.

    在您详细察看转换之前,我们先要修正规则类,使其能够调用刚刚产生的类。

    youdao

  • Each rule class implements the RuleImplementor interface which includes two methods: fire and init.

    每个规则类都实现了Rule Implementor接口,该接口包含两个方法:fire和init。

    youdao

  • The rule class in this example will look for C++ code that declares multiple variables on the same line. For example

    本例中的规则类,如同在同一行中定义多个变量,例如

    youdao

  • As you might expect, adding a new rule is a simple matter of creating a rule class and adding an extension to the plug-in.

    您可能会想,添加一条新规则,要比创建规则类和向插件添加一个扩展容易。

    youdao

  • The class field contains the qualified name of the rule class that you created earlier. The category field contains the identifier string for your Examples category.

    类域中包含您先前所创建的规则类的名称。

    youdao

  • After the rule class is completed, it needs to be described through the provided extension points in the analysis framework so that the code review engine can discover it.

    在规则类被完成之后,它需要通过在分析架构中的所提供的扩展点被描述出来,从而使得代码评审引擎能够将其发现。

    youdao

  • If the student breaks the rule and uses his or her phone during class, the student will be warned.

    如果学生违反规定,在课堂上使用手机,将受到警告。

    youdao

  • For instance, you can create your own static analysis rule to run against a large application to find where a particular interface or class is used.

    举例来说,您可以创建对大型的应用程序运行的您自己的静态分析规则,从而发现在哪里用到了特定的接口或类。

    youdao

  • It USES a rule parameter to declare and describe a field where the user can type a qualified class name.

    它使用一个规则参数来声明和描述一个用户可以键入一个合格的类名称的域。

    youdao

  • Since there is an association between storage system and storage class, objects will move along the designated storage system according to the rule set in migration policy.

    由于存储系统和存储类之间存在关联,因此对象将根据移植策略中设置的规则移动到指定存储系统中。

    youdao

  • Each step presents a new mapping rule and explains the related concepts; where meaningful, a class diagram illustrates the rule.

    每一步表达了一个新的映射规则,并解释了相关的概念;在需要的地方有类图描述规则。

    youdao

  • We either make a blanket filter change, or add in a custom rule for the specific package or class under investigation.

    我们或做出适用于所有情形的过滤器修改,或为特定包或类添加定制规则。

    youdao

  • Once this rule command class is created, it is triggered to execute the correct rule in that specific rule engine.

    一旦一个规则命令类被创建,它将在特定的规则引擎上被触发且执行正确的规则。

    youdao

  • Given that the only fundamental difference between them is the name of the class, it would help to have a simple way to create a template for a single rule that handles all cases.

    假设它们之间唯一的根本差别是类名称,那么它将有助于利用一个简单的方法来为能够操作所有类的唯一的规则创建模板。

    youdao

  • In the example shown in Figure 14, the selected rule template defined only one parameter; therefore, you can enter only a qualified class name in the field provided.

    在图14中所示的实例中,所选的规则模板只定义了一个参数,因此,您可以在提供的文本框中只输入限定的类名。

    youdao

  • Change the rule implementation class.

    更改规则实现类。

    youdao

  • You apply that goal to application URLs by connecting the transaction class to a work class (that maps to a set of URLs) through the creation of a routing rule.

    通过创建路由规则并将事务类连接到一个工作类(它映射到一组URL),从而将性能目标应用到应用程序的URL上。

    youdao

  • The final step for defining a new rule is to define the class that represents it.

    定义一个新规则的最后一步,是定义一个代表该规则的类。

    youdao

  • Each transformation extension defines, as child elements. a rule definition that specifies a class that implements a rule interface.

    每个转换扩展定义,就像子元素一样,指定实现规则接口的类的规则定义。

    youdao

  • Three required attributes for a rule are: 1 fully qualified name, 2 implementation class, and 3 initialization properties.

    规则的三个必要的属性是:1完整的限定名,2实现类,3初始化属性。

    youdao

  • This example creates a new rule template that allows the user to define new rules to report and code that extends a given class.

    这个例子创建了一个允许用户来定义新的规则来报告以及为特定的类编码扩展的模板。

    youdao

  • A rule of thumb advocated by many is that a class with more than 1,000 lines of code is too big.

    许多人所提倡的一条经验法则是,类的代码行超过1,000行就可以说该类太长了。

    youdao

  • Provide a Java implementation of the class rule that will be invoked each time that the transformation encounters the element type that you indicate.

    提供每次当转换遇到您指示的元素类型时要调用的类规则的实现。

    youdao

  • Define the class that represents the rule.

    定义代表规则的类。

    youdao

  • You will now repackage the Rule Team Server EAR file with the new controller class and preferences file, using an Ant task provided in the sample.

    您现在需要重新打包RuleTeamServerEAR文件,使其包含新控制程序类和preferences文件,使用样例中提供的Ant任务完成。

    youdao

  • You will now repackage the Rule Team Server EAR file with the new controller class and preferences file, using an Ant task provided in the sample.

    您现在需要重新打包RuleTeamServerEAR文件,使其包含新控制程序类和preferences文件,使用样例中提供的Ant任务完成。

    youdao

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

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

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