奠定了这些基础之后,我认为您将会赞同添加新类和方法的过程相对比较简单这种说法。
I think you'll agree that after you have laid the foundations, the process of adding new classes and methods is relatively simple.
为了简化这个示例,我们添加了一个新类,它的方法返回一些简单数据。
To simplify this example, we'll just add a new class whose methods return some simple data.
在添加新控制器类或方法之后,它们就自动变为可用的了。
Once you add a new controller class or method, it becomes automatically available.
建模师可以向现有类添加新属性。
该方法在所有的已有类信息都已经被访问之后调用,所以它对于添加新内容非常方便。
This method gets called after all the existing class information has been visited, so it's a convenient place to implement the addition of new content.
然后,我们将给新类添加必要的代码以支持它拥有“羽翼”这一特性。
Then, we could add the necessary code to our new class to support "wings."
在上面的示例中,您创建了一个名为MySession的新类,用来将对象添加到会话中。
In the above example, you create a new class named MySession to add objects into a session.
这个对话框需要第二次出现,是因为向源代码控制中添加新servlet类的操作需要和一个活动相关联。
The second instance of the dialog occurs because an activity needs to be associated with the operation of adding the new servlet class to source control.
向类添加了新变量后,请将处理程序代码添加到ogadmin类的main方法。
After you have added the new variables to your classes, add the handler code to the main method of the OGAdmin class.
添加一个新类到项目中,使用默认的名称“Class1 . cs ”。
Add a new class to the project. Accept the default name "Class1.cs".
使用Array类的push方法可以将新对象添加到数据提供程序中。
Using the push method of the Array class, you can add new objects to your data provider.
清单5显示了用来添加新订单的client类。
图7(参见大图)展示了通过拖拽术语表术语Customer添加的新类。
Figure 7 (larger image) shows a new class added by dragging the glossary term Customer.
框架中添加了一些新的Ajax辅助方法,它们利用AjaxOptions类来提供异步操作。
A couple Ajax helpers were added which use the AjaxOptions class used for asynchronous operations.
图8(参见大图)展示了拖放术语HealthStatusDate来向customer类添加一个新属性的结果。
Figure 8 (larger image) shows the result of dragging and dropping the term Health Status Date to add a new attribute to the Customer class.
是的,我可以在类中添加一个新的成员字段,并使用这个字段而不是局部变量。
Well, I could add a new member field to the class and use that instead of a local variable.
它返回一个新的空类,我能向此空类添加属性。
This returns a new empty class to which I can add attributes.
添加函数就像将新类添加到任何其他项目类型一样。
Adding a function is just like adding a new class to any other project type.
如果对横切关注点(例如日志和事务管理)进行了模块化,那么不用修改每个单独的类,就可以向代码中添加新特性。
If you modularize crosscutting concerns, such as logging and transaction management, it becomes possible to add new features to your code without modifying each class individually.
只要通过所有的测试用例,我就将向单元测试自动库添加新的单元测试类,在每次构建时运行。
As long as all the test cases pass, I add the new unit test class to my unit test automation library, which gets run on every build.
在向资源添加实现代码前,创建一些新的类来提供足够实现以测试函数。
Before adding implementation code to the resource, create a few classes that provide enough implementation to test the functions.
在类中添加新特性时,每个新成员都能看到其他可见的成员,这增加了理论上的复杂性。
When I add new features to a class, each new member can see the other visible members, so the theoretical complexity increases.
您可以通过使用这个弹出式菜单(图23)或者弹出式操作栏(图24),为可视化 C++类添加新的域和操作。
You can add new fields and operations to a visualized C++ class by using either the pop-up menu (Figure 23) or the pop-up action bar (Figure 24).
“向导”现在显示的是需要添加新的方法的类或接口。
The wizard now indicates the Class or Interface to which the new Method will be added.
在新类中添加清单5所示的内容。
本扩展仅仅搜寻为该类定义的关键字,然后使用它们,来添加与源代码中的类相关的新记录标签。
This extension will do nothing more than look for any keywords defined for this class, and use them to add a new documentation tag associated with the class in the source code.
随着代码的重构、bug的修补和新特性的实现,类和方法不断被添加、删除和改名。
Classes and methods are likely to be added, removed, and renamed, as the code is refactored, bugs are fixed, and new features are implemented.
在MediationHandlers项目中创建一个新类mediation . handlers . MessageBodyFor matter,并添加所需的导入语句(清单5)。
Create a new class, mediation.handlers.MessageBodyFormatter, in the MediationHandlers project and add the required import statements (Listing 5).
自6.1版开始,db4o能自动识别和处理三种不同类型的重构:添加字段、删除字段和添加一个类的新接口。
As of version 6.1, db4o automatically recognizes and handles three different kinds of refactoring: adding a field, removing a field, and adding a new interface to a class.
在模型搜索器中,使用Visualize来将它们添加到一个新图或当前的类图中。
In the Model Explorer, use Visualize to add them to a new diagram or the current class diagram.
应用推荐