Screenshot shows Jupiter in Eclipse with a code annotation.
屏幕截图显示Eclipse中的Jupiter插件带有一条代码注释。
Arguably, the nicest feature of any good annotation or metadata tool is the ability to use the extra data to analyze code.
可以说,任何好的注释或元数据工具的最大优点是能够使用额外的数据来分析代码。
As you can see, where you need to add code with a TODO annotation is identified.
您可以看到,在需要添加代码的地方已经利用一个TODO注释进行标识。
This annotation reduces standard code and resolves each of the disadvantages mentioned earlier.
该注释减少了标准代码,并解决了前面所提到过的不方便之处。
The code that defines the annotation specifies which named elements (if any) the annotation accepts.
定义注解的代码指定注解接受哪些命名元素(如果有的话)。
It's still good practice to put the annotation in there; it makes the code more maintainable.
保留这些注释仍然是个不错的做法;可以使代码更易于维护。
Generators: This annotation processing option includes reading the source code and generating new source code or modifying existing source code.
产生器:这一注解处理选项包括读取源码并产生新的源码或修改已有源码。
With JEE, annotation capabilities reduce boilerplate code and make deployment descriptors optional.
有了JEE,注释功能就减少了出错代码,并使得部署描述器的选择更加自由。
John discussed byte code transformers, which include Aspects, as one of the three types of Annotation processing options.
John讨论了字节码转换,其包括Aspect,将其作为三种类型注解处理选项之一。
This is to allow the Annotation builder to regenerate the code in method body based on all the doclet Tags in the J2C bean and data binding file, and to synchronize the project.
这令Annotation构造器能够根据J2Cbean和数据绑定文件中的所有的doclet Tag在方法体中重新生成代码,并且与工程同步。
As you may notice, the transformation appends the @generated annotation to elements in the generated code (Figure 8).
可能您会注意到,转换会在生成的代码中,对元素应用@generated注释(图8)。
GCov code coverage display and annotation.
GCov代码覆盖显示和注释。
To extend Lombok, you'll need to identify or create the annotation (s) that will trigger Lombok's code generation.
为扩展Lombok,需要识别或者创建将触发Lombok代码生成的注释。
You can define a named query as an annotation and execute it somewhere else in the code. Here is an example of using executing this type of named query.
您可以将命名查询定义为注释,并在代码中的其他位置执行它。
Thanks to the power of the @Delegate annotation, you were able to create a FixedList class in about 50 lines of code.
感谢 @Delegate注释的强大威力,我们只使用大约50代码就创建了FixedList类。
The jpa2web tool should be considered as a lightweight annotation-driven code generation tool for developers rather than an complete implementation of MDA.
jpa2web工具是一种轻量的注解驱动的代码生成工具,而不是MDA的完整实现。
Finally, if you choose to go with annotation-style mappings, mapping annotations will be spread around your code.
最终,如果您选择使用注释方式的映射,映射注释将分布在代码周围。
The Listing 5 code saves the field information at the time a field is visited, because this information will be needed later if the field has an annotation present.
清单5的代码保存了访问字段时的字段信息,因为如果该字段有注释呈现的话,以后将会需要该信息。
This annotation is to protect code.
该注释用于保护代码。
Although defining a named query as an annotation can make it more reusable in the code, the benefit is so minimal that it is essentially useless.
命名查询是外部化查询的好方法。尽管将命名查询定义为注释可以使查询在代码中得到更多重用,但是优点很少,在本质上没有使用价值。
In this above code, even if the Order or Item class is mapped with an annotation, a separate XML file, or not at all (I would then have to map each field), I can still override it with this XML.
在上面的代码中,即使使用注释、单独的XML文件或不使用任何内容(必须映射每个字段)来映射order或item类,我仍能够使用此XML覆盖它。
This implementation involves three separate pieces of code: intercepting the classloading, accessing the annotation information, and the actual transformation.
该实现涉及三个单独的代码段:截获classloading、访问注释信息和实际转换。
If I write the code in Listing 3, Lombok will generate something like the code in Listing 4, using my annotation handlers.
如果在清单3中采用我的触发处理程序编写代码,Lombok将会生成类似清单4中的代码。
This particular annotation indicates to the pureQuery's DDL code generation system to properly generate the CREATE INDEX statement for defining the primary key.
这个标注指示pureQuery的DDL代码生成系统恰当地生成用于定义主键的CREATEINDEX语句。
An annotation handler is a class that implements a couple of Lombok interfaces and the AST transformation logic - aka code generation.
注释处理程序是实现一对Lombok接口以及转换逻辑的类—aka代码生成。
This annotation process results in the construction of source code knowledge base, which maintains the traceability links between the source code and domain business semantics.
该本体标注过程的结果是建立一个源代码知识库,包含了代码和领域概念的对应关系。
This annotation process results in the construction of source code knowledge base, which maintains the traceability links between the source code and domain business semantics.
该本体标注过程的结果是建立一个源代码知识库,包含了代码和领域概念的对应关系。
应用推荐