4)类型间声明(inter-type declaration):为AspectJ 提供了静态横切代码的 方法。也就是说,通过类型间声明,可以改变程序的类型结构,如可以在已经建 立的接口或类中添...
基于52个网页-相关网页
Inter-Type Member Declaration 内部类型成员声明
The aspect contains a declare @method statement and an inter-type declaration.
其中的方面包含一条 declare @method 语句和一个类型间声明。
The inter-type declaration allows you to change the static structure of a program.
类型间声明允许你改变一个程序的动态结构。
In AspectJ, an inter-type method declaration looks almost identical to a normal method declaration and is referred to in the same way.
在 AspectJ 中,类型间方法声明看起来就像正常的方法声明,引用的技术也一样。
应用推荐