A window pops up, in which you can type the name of any class in your workspace (see Figure 8).
将弹出一个窗口,您可以在其中键入工作空间中的所有类的名称(参见图8)。
Other instances in which this pattern is useful include logging and printing, such as when you want only one instance of a class to access and control one particular printer at a time.
在其他实例中,此模式也是有用的,包括登录和打印,例如,当您想要一个能够每次访问并控制一个特别打印机的类实例。
You can create a separate script which only contains the view, while the interactions or bindings between components are in the main class, making a clearer separation in the MVC model.
你可以创建一个仅仅包含视图的单独的脚本,而与组件的交互或者绑定都在主类中,在MVC模式中可以更清晰的分离视图与逻辑部分。
Although you won't use every method of every class, you'll know which classes and methods are essential in a real-world context, and why some methods are not useful.
尽管我们并不使用每个类的每个方法,但是将讨论在真实环境中哪些类和方法是最基本的,以及哪些方法是不太有用的。
A list of all classes in the project's build path that match that pattern are presented in a list, from which you can select the class and package name you want to use.
将在一个列表中显示与该模式匹配的项目构建路径中的所有类,您可以从此列表中选择您希望使用的类名称和包名称。
You must create a new instance of this class (which I'll look at in a moment).
必须创建这个类的新实例(等一会将讲到)。
Coverage tests let you see which code is actually being executed in a class or application.
覆盖测试使您可以清楚一个类或应用程序中哪一部分的代码真正得到执行。
This article presents an alternative method in which you use a single database class to wrap multiple database tables.
本文提出一个替代方法:使用单个数据库类包转多个数据库表。
If you map a UML class in the mapping model to a different name, you change the name of the file in which it will be generated but not the generated class in the file.
在映射模型中,假如您想将一个UM l类映射为另外的名称,您需要改变其将要生成文件的名称,而不是类名。
To determine whether or not a class belongs in a domain package, you need to analyze the collaborations with which it is involved to determine its distribution type.
为了确定一个类是否属于一个域包,您需要分析它确定分布类型所涉及到的协作。
And at the end of class we'll announce which recitation that is, we'll also make sure to give you a little bit of a prize if you are, in fact, in that recitation.
而且在这节课的最后,我们将会宣布哪个讨论小组答题正确率最高,并给这个小组的每位同学,发个小奖品。
In some cases, you might find it useful to further restrict a class-based rule based on the element to which the class is attached.
在某些情况下,可以根据类所在的元素进一步限制基于类的规则。
When you get enough sleep, you tend to have a sharper mind, which will help you retain more information you learn in class.
在你有充足的睡眠的情况下,你的大脑会更犀利,更清醒。
For now, you merely need to know that the int object inherits from the object class, which is a base class for a lot of things in Python.
现在,您只需要知道:int对象是从object类中继承而来,它是Python中许多内容的一个基类。
The powerful as operator in Groovy takes a code block and generates a new class that implements the interface, which you can then call as if it were a concrete class implementing the interface.
Groovy中强大的as操作符接收一个代码块并生成一个新类来实现该接口,您可以像调用实现该接口的具体类一样调用它。
You can see in Figure 2 that the Territory class is a server class, which the illustration depicts as a potential domain package (indicated with dotted lines).
在图2中您可以看到Territory类是一个服务器类,插图把它描述为一个可能的域包(用虚线指示)。
The notable exception in this class is Math.random , which intentionally returns a different value every time you call it.
此类中值得注意的特例就是Math . random,它会刻意地在您每次调用它时返回一个不同的值。
Enter the decorator pattern, which allows you to add this functionality onto the AutomobileModel in a nice, clean class.
进入装饰器模式,该模式允许您通过一个优秀整洁的类将此功能添加到AutomobileModel。
You can also change the default files to be created and specify a namespace to which this class belongs in the New class wizard.
您还可以在NewClass向导中更改创建的默认文档,确定这个类所属的字段名。
This class in turn provides the normalize method, which you can use to convert a string to a normalized composed or decomposed form.
这个类反过来又提供了normalize方法,可用来将一个字符串转变为一个规范化了的组合或分解格式。
In Listing 6, I'll show you how to create a table structure in which each column represents a corresponding attribute of the Log class.
在清单6中,我将展示如何创建一个表结构,其中每一列表示Log类的一个相应属性。
To do this, you add a simple method, which leverages the built-in SimpleXML class in PHP.
为此,您可以添加一个简单的方法,该方法利用php中的内置simplexml类。
You can give it a name (that is, a class name), specify parameters (as in a constructor), and even use the .this keyword, which basically means referencing a variable within the scope of the function.
可以给其一个名称(也就是一个类名),指定参数(和在构造函数中一样),甚至可以使用关键字 .this,这意味着在函数范围内引用变量。
In practice, you end up with a new class called CharBuffer, which implements CharSequence over a text file.
实际上,您最终可以使用CharBuffer这个新类,它对文本文件实现CharSequence。
The getProperty method returns an instance of the class Object, so you must cast the result into the appropriate type, which, in this case, is a string.
getProperty方法返回Object类的一个实例,因此您必须把结果转换成合适的类型,在本例中是 string 型。
You can test this using the instanceof operator, which returns true if the object is a member of the indicated class, as shown in Listing 14.
可以使用instance of操作符来测试这一点,如果对象是指定类的成员,则返回true,如清单14所示。
In CHStats.body.php, you create a new class, CHStats, which extends the SpecialPage class.
在CHStats . body . php内,创建一个新类CHStats,这个新类扩展了specialpage类。
The first line tells you that you're seeing the help page for the int class, which is a built-in data type.
第一行告诉您正在查看int类的帮助页面,它是一个内置的数据类型。
The first line tells you that you're seeing the help page for the int class, which is a built-in data type.
第一行告诉您正在查看int类的帮助页面,它是一个内置的数据类型。
应用推荐