Further examples of abstract annotation types.
抽象注释类型的更多例子。
Let's discuss a few more examples of annotation types.
让我们再讨论几个注释类型的例子。
Fortunately, Tiger also lets you define your own annotation types.
所幸的是,Tiger还允许定义自己的注释类型。
This isn't anything remarkable, or even specific to annotation types.
它并没有多么地不同凡响,对注释类型更是如此。
As odd as Listing 3 might look, it's what you need in annotation types.
尽管清单3看起来很奇怪,但这是注释类型所要求的格式。
Optionally, a metadata facility can specify a way to define annotation types.
元数据功能也可以指定一种定义注释类型的方法。
Data members in annotation types are set up to work using limited information.
注释类型中的数据成员被设置成使用有限的信息进行工作。
It's a great idea to use the standard annotation types often, and even heavily.
经常甚至频繁地使用标准注释类型是一种较好的做法。
The type system contains information about annotation types and their features.
类型系统包含注释类型及其特征。
The annotation types used in the new rules must exist as part of the UIMA type system.
新规则中使用的注释类型必须成为uima类型系统的一部分。
The metadata facility can then check annotation instances against the annotation types.
之后,元数据功能可以检查注释实例的注释类型。
As you'll remember from Part 1, annotation types can have member variables (see Resources).
您一定还记得“第1部分”中曾经提到的,注释类型可以有成员变量(请参阅参考资料)。
In Part 2 of this series. I'll detail Tiger's support for writing your own annotation types.
在本系列文章的第2部分,我将详细说明Tiger对编写自己的注释类型的支持。
As you'll learn in the next three sections, Tiger's basic annotation types are extremely simple to use.
正如将在下面三个部分了解到的,Tiger的基本注释类型的使用都极其简单。
You can use four predefined annotation types — referred to as meta-annotations — to annotate your annotations.
您可以使用4种预定义的注释类型(称为元注释)对您的注释进行注释。
The dependency between MetadataDrivenTxMgmt and classes is limited to annotation types and their associated semantics.
MetadataDrivenTxMgmt与类之间的依赖关系局限于注释类型及它们相关的语义。
Ideally, annotation types should represent abstract characteristics of a program element and not their expected consumption.
理想情况是,注释类型应当表示程序元素的抽象功能,而不是它们预期的消费。
However, as you move into writing your own annotation types, the purpose of your annotation types isn't always self-evident.
但是在编写自己的注释类型时,注释类型的目的并不总是显而易见的。
Metadata is increasingly useful, and you'll certainly come up with annotation types that are perfect for your own applications.
元数据正日益变得有帮助,您肯定会提出非常适用于自己的应用程序的注释类型。
Annotation types specify a template to create annotation instances, much the same way classes specify a template to create objects.
与类指定一个创建对象的模版很相像,注释类型指定创建注释实例的模版。
Even for developers who do not take an aspect-oriented approach, the multidimensional view of metadata is a valuable conceptual aid in designing annotation types.
即使对于不使用面向方面方法的开发人员,从多维的角度看待元数据对设计注释类型也会提供概念上的帮助。
The current AOP systems that offer such support do so by extending the definition for various signature patterns to allow annotation types and properties to be specified.
当前提供这种支持的AOP系统实现了这一点,它们是通过扩展不同签名样式的定义来指定注释类型和属性的方式实现的。
You use the annotation type in Listing 1 exactly the same way you use the built-in annotation types, except that you indicate the custom annotation by both its name and package.
清单1所示注释类型的使用方法和内置注释类型的使用方法完全相同,只不过要同时使用名称和所在的包来指示定制注释。
This approach has a practical application in untangling element signatures and is also conceptually useful for designing annotation types, even for developers who do not practice AOP.
这种方法具有分解元素签名的实际用途,并且在总体上对设计注释类型很有用,甚至对于那些不从事AOP的开发人员也很有帮助。
Of course, you don't really want this behavior on all your annotation types (that's why the default is not to inherit); for example, the TODO annotation wouldn't (and shouldn't) be propagated.
当然,您并不希望所有的注释类型都具有这种行为(因此默认值是不继承的)。比如,TODO 注释就不会(也不应该)被传播。
The type system already contains types for phonenumber and the other annotation types needed by the sample regular expression annotator rules. Listing 3 illustrates the two new type definitions
这个类型系统已经包含了phonenumber 类型和示例正则表达式注释器规则所需的其他注释器类型。
Supported return types vary depending on the annotation used.
取决于所使用的注释,受支持的返回类型有所不同。
John discussed byte code transformers, which include Aspects, as one of the three types of Annotation processing options.
John讨论了字节码转换,其包括Aspect,将其作为三种类型注解处理选项之一。
A general and common type that is often used in text analysis to derive additional types is the Annotation type, which is provided by the UIMA framework.
在文本分析中,用于派生其他类型的概括性的通用类型被称为annotation类型,它由UIMA框架提供。
Produces: This annotation specifies the MIME media types that the methods in the resource can produce and return to the client.
Produces:该注解用于标识MIME媒体类型,这样资源中的方法就会生成该类型的内容并返回给客户端。
应用推荐