Further examples of abstract annotation types.
抽象注释类型的更多例子。
Let's discuss a few more examples of annotation types.
让我们再讨论几个注释类型的例子。
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.
注释类型中的数据成员被设置成使用有限的信息进行工作。
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部分”中曾经提到的,注释类型可以有成员变量(请参阅参考资料)。
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与类之间的依赖关系局限于注释类型及它们相关的语义。
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.
元数据正日益变得有帮助,您肯定会提出非常适用于自己的应用程序的注释类型。
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 类型和示例正则表达式注释器规则所需的其他注释器类型。
Annotation types specify a template to create annotation instances, much the same way classes specify a template to create objects.
与类指定一个创建对象的模版很相像,注释类型指定创建注释实例的模版。
Annotation types specify a template to create annotation instances, much the same way classes specify a template to create objects.
与类指定一个创建对象的模版很相像,注释类型指定创建注释实例的模版。
应用推荐