在这个例子当中,程序注解还提供了程序的最初想法。
In this case, the program comment also provides credit for the original idea of the program.
在这个例子当中,程序注解还提供了程序的当初想法。
In this case the program comment also provides credit for the original idea of the program.
本书当中,所有的程序都将以一段特别的注释开头,这段注释叫做程序注解,是用来整体描述这段程序的。
In this text, every program begins with a special comment called the program comment that describes the operation of the program as a whole.
注解是表达程序元素固有特性的最佳选择。
Annotations are best for expressing the inherent characteristics of a program element.
最后,我们可能会希望获得一个“带注解的源代码”清单,它会将源代码输出到应用程序中,并加上每个函数被调用了多少次的注释。
Finally, you might want to have an "annotated source" listing, which prints out the source code to the application, with notes on how many times each function is called.
参见《第13章-应用程序设计》的“注解”章节。
See the section called "Annotations" in Chapter 13, Application Design.
本文将主要关注于简化的配置和在Spring应用程序上下文(application context)核心新增的基于注解的功能;
The current article will focus on simplified configuration and new annotation-based functionality in the core of the Spring application context.
生成器的输出是一个Web应用程序的WAR文件夹,其中包含与每个带注解的bean对应的窗口,以及用来选择窗口的索引。
The output of the generator is a WAR folder with a working Web application containing a window for each of the annotated beans found, as well as an index to choose among them.
类似地,一个在Spring管理对象上用@PreDestroy注解的方法会在这个对象寄宿的应用程序上下文(application context)关闭的时候被调用。
Similarly, a method annotated with @PreDestroy on a Spring-managed object will be invoked when the application context hosting that object is closed.
正因为如此,PetClinic应用程序范例中的各类控制器的实现都采用了@Controller注解(Spring的内置构造型之一)。
Therefore, the various controller implementations for the PetClinic sample application are all annotated with @Controller (one of Spring's built-in stereotypes). Here is an example
通过清晰地指明应用程序的角色,这些构造型方便了SpringAOP和post - processor的使用,这些post - processor给基于这些角色的加了注解的对象提供了附加行为。
By clearly indicating application roles, these stereotypes facilitate the use of Spring AOP and post-processors for providing additional behavior to the annotated objects based on those roles.
通常,指令码或程序是由许多陈述式和注解组成。
Typically, a script or program is composed of many statements and comments.
应用程序显示使用者可以输入注解的表单。
以简短注解做为所有程序开头是良好的程序设计作法,此注解会描述程序的基本特性(作用为何)。
It is good programming practice to begin all procedures with a brief comment describing the functional characteristics of the procedure (what it does).
注解是为了阅读者方便而加入至程序码的简短说明。
Comments are brief explanatory notes added to code for the benefit of those reading it.
试想一个有注解窗格的简单文件读取器应用程序。
Consider a simple document reader application that has a comments pane.
以各种开发语言提供程序码注解的范例。
Provides examples of code comments in various development languages.
取得或设定目前程序码模型元素的文件注解。
Gets or sets the document comment for the current code model element.
取得或设定目前程序码模型元素的文件注解。
Gets or sets the document comment for the current code model element.
应用推荐