事实上,图2是uml类的定义。
Groovy中类的定义非常简单,不是吗?
下面的代码样本显示了类的定义和表的别名定义。
The following code sample shows the class definition and the definition for our table alias.
随着时间的推移,您会发现自己必须要更改类的定义。
Over time you'll find yourself having to make changes to your class definitions.
或者你可以把命名元组转换成一个常规的类的定义。
如果我们有一个基类的定义——FacebookUser,如下。
If we have a definition of a base class - FacebookUser, which look like follows.
这个类的定义这里然后取值,也可以这么说,在类的定义的里面。
And is able to then say, inside of that class definition, find the value of x.
可以定义一个如清单8所示的自定义类。
注意:确保在这个类名称的自定义之后键入一个点符号。
Note: Be sure to enter a period after custom in the class name.
除此之外,你可以定义类之间的关系。
我们将使用这些OW l类定义创建我们的断言。
We'll use these OWL class definitions to create our assertions.
同一对象类的对象定义存储在同一个对象存储库文件中。
Object definitions of the same object class are stored in the same object repository file.
事实上,所有行为都必须在类的上下文中定义。
In fact, all behavior must be defined within the context of a class.
该文件将包含模型的类定义。
这里放着类定义所用的所有常量。
This is where all the constants used by the class definition are stored.
这个包定义的主要类是。
在表单的partial类定义顶部,添加以下代码。
At the top of the partial class definition for the form, add the following code.
对PrintService . cs文件中的类定义进行以下更新,并将其保存。
Make the following update to the class definition in the PrintService.cs file and save the same.
类logging _ proxy的定义只需要出现一次。
The definition of the class logging_proxy need only occur once.
假定我们有一个叫做GenericProcess的类,其定义了process (. .)。
Let's assume that we have a class called GenericProcess which defines process (..) method.
清单3是AcronymListEditor的类定义。
Listing 3 is the class definition for the AcronymListEditor.
定义API类的过程如下
就会显示在你的项目中存在的自定义类。
This shows you the custom classes that exist in your project.
请求端口能够使用任何类来定义它的类型。
我也能根据类的关系定义它们之间的层次。
I can also define a class hierarchy based upon their relationship.
然后在所有后台任务的类定义中提供自定义构造型注解。
Then provide the custom stereotype annotation in any background task's class definitions.
类定义的其他部分。
更新上个月的代码以使用自定义类加载器方法是很容易的。
Updating the code from last month to use the custom classloader approach is easy.
更严重的问题是类定义中可能存在多态递归。
The more serious problem is the potential for polymorphic recursion in class definitions.
最后,让脚本类扩展用户定义的类。
Finally, let the script class extend the user-defined class.
应用推荐