You can also be more granular with your log levels, increasing verbosity only in certain features by specifying which class you want to log. These classes are
您还可以让您的日志级别更细粒度一些,仅在某些功能中通过指定想要记录的类别来增加详细程度。
Logs the class of the log message, which is helpful if you want to change the verbosity of a certain class (This option helps you determine which class you want.)
记录日志消息的类别,如果您要更改某个类的详细程度这会有所帮助(该选项帮助确定您想要的类。)
You declare introduced methods and member variables almost exactly as you would regular class members, except that you must qualify which class you declare them on (hence ValueObject.timestamp).
除了必须限定在哪个类上声明引入的方法和成员变量以外(因此是ValueObject .timestamp),声明引入的方法和成员变量几乎与声明常规类成员相同。
The other notable line in this test is the class definition, which points to the template class, rather than one that you might create.
这个测试中另一个值得注意的行是这个类定义,它指向这个模板的类,而不是您可能创建的模板。
A window pops up, in which you can type the name of any class in your workspace (see Figure 8).
将弹出一个窗口,您可以在其中键入工作空间中的所有类的名称(参见图8)。
Asking Americans which class they belong to does not get you very far, since almost all Americans are sure that they belong to the middle.
如果问美国人他们属于哪个阶级,你不会有太多收获,因为绝大多数美国人都确信,他们属于中产阶级。
You can also create a class to manage the data object, which will contain all the information that you retrieved from the JSON file.
您还可以创建一个类来管理数据对象,这个对象包含您从JSON文件查询得到的所有信息。
Which would you rather have to write and maintain: a big class or a small one that does the same thing?
您希望编写并维护哪一个:一个庞大的类或是具有相同行为的很小的类?
Create an extension to the framework code building class, with which you can customize the generated code.
为框架代码构建类创建扩展,利用此种扩展你可以定制所产生的代码。
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.
将在一个列表中显示与该模式匹配的项目构建路径中的所有类,您可以从此列表中选择您希望使用的类名称和包名称。
Coverage tests let you see which code is actually being executed in a class or application.
覆盖测试使您可以清楚一个类或应用程序中哪一部分的代码真正得到执行。
In the case of JMS, you need to tell the system which class to use to do this transformation.
对于JMS,您需要告诉系统使用哪个类来进行此转换。
It doesn't matter which driver you want to use; you always use the PDO class name.
不管您想要使用哪种驱动程序,您总是使用pdo类名。
For this purpose, you use the hash class in Ruby, which allows you to create key-value pairs (in what appears to be an array), but then easily reference them later by key.
为此,您可以使用Ruby中的hash类,它允许您创建键值对(类似于数组),但是随后可以轻松地通过键引用它们。
However, the real hero in this set of classes is the UIComponent class, which provides the basic framework you need to write custom components.
不过,这个类集合中的主角是uicomponent类,它为您提供编写定制组件所需的基础框架。
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).
惟一需要以这种方式使用一个类的是一个默认构造函数(它允许您创建继承自类的一个匿名内部类)。
Here is the beginning of an Editor applet class, which incorporates the code that you produced earlier.
以下是Editorapplet类的开头,它包括了您之前创建的代码。
The first is the server class, which you use to create servers; the second is the client class, which you use to create clients.
第一个是server类,您可以用它来创建服务器;第二个是client类,您可以用它来创建客户端。
This is where you find the Boot class, which defines many of the configuration parameters of our application.
在这里可以找到boot类,这个类定义应用程序的许多配置参数。
Now you create the FunctionCall class, which is called by the Extension class and contains your custom methods.
现在将创建functioncall类,它是由extension类调用的且包含定制方法。
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操作符接收一个代码块并生成一个新类来实现该接口,您可以像调用实现该接口的具体类一样调用它。
For an example, see the.net Framework documentation for the CryptoStream class, which shows you how to encrypt a byte array from an incoming FileStream object.
有关示例,请参阅cryptostream类的. NETFramework文档,它说明了如何加密来自传入的FileStream对象的字节数组。
Listing 4 presents the ActionScript class contact, which you create to represent contact objects on the Flash side.
清单4展示了ActionScript类Contact,创建该类的目的在于表示flash端的联系对象。
Check the Special Pages developer's guide page (see Resources) for more information about the SpecialPage class constructor, which will let you restrict access, hide the page, etc.
有关SpecialPage类构造函数(利用它可限制访问、隐藏页面等)的更多信息,请查阅特殊页开发指南页面(参见参考资料)。
In line 14, you instantiate the Service class, which Apache Axis provides.
在第14行,实例化apacheAxis提供的Service类。
Then you can continue narrowing down to determine which package, class, and, finally, which method is causing the problem.
然后您可以继续进行分析,把范围缩减到哪个包、类,直到找到导致问题的方法。
Another helpful addition to PHP V5 is the abstract class, which makes it easy to have one base class to implement the core of an interface from which you then create concrete classes.
PHPV 5中另一个有帮助的新功能是抽象类,使用抽象类可以轻松地用一个基类实现接口的核心部分,然后用该接口创建实体类。
Note that with tag-class selectors, you can add them only to the tag for which you defined the class.
注意,如果使用标记类,那么只能把这些类添加到定义的相关标记中。
In this way, you can change the concrete class later without changing the library code, which relies solely on the definition you created in the interface.
这样,日后就可以在不改变库代码的情况下修改具体的类,因为库只依赖接口中创建的定义。
Notice the Interfaces text area, in which you can enter any interface you want this class to implement.
注意在接口文本区域可以输入任何你希望该类实现的接口。
应用推荐