Pointcuts, advice, and inter-type declarations.
切入点、通知和类型间声明。
Describes prohibited edits of nested type declarations.
说明巢状型别宣告所禁止的编辑。
Scala USES the term type annotations for explicit type declarations like HashMap.
Scala使用类型注解作为显式类型声明的方式,比如HashMap。
In language terms, Pyrex is essentially just Python with type declarations added in.
按照语言的术语来说,Pyrex本质上是在Python中添加了类型声明。
Prefer the shortcut versions of type declarations over the full generics syntax.
使用简写的类型声明,而不是它的全泛型版本。
This aspect also defines helper methods using inter-type declarations on managed bean classes.
这个方面还用受管理bean类上的类型间声明定义了辅助方法。
Both delegates and interfaces enable a class designer to separate type declarations and implementation.
委托和接口都允许类设计器分离类型声明和实现。
Similar markers and submenus are used to indicate other crosscutting information, such as inter-type declarations.
类似的标记和子菜单也可以用来表示其他横切信息,例如类型间声明。
The Composite pattern can be implemented in AspectJ using inter-type declarations as shown above with configuration.
Composite模式在AspectJ中可使用内部类型声明实现,如上面关于配置的一节所述。
Easier refactoring and code modifications, because you do not have to change static type declarations throughout the code.
更容易进行重构和修改程序码,因为您不必变更整个程序码中的静态型别宣告。
The best-known example is probably SOAP, which disallows processing instructions, document type declarations and any internal DTD subset.
最知名的例子可能是SOAP。它不允许处理指令、文档类型声明和任何内部DTD 子集。
SystemTap permits definition of variables of a number of types, but the type is inferred from context, so no type declarations are needed.
SystemTap允许定义多种类型的变量,但类型是从上下文推断得出的,因此不需要使用类型声明。
Because Groovy is a dynamically typed language, defs do not require any type declarations for parameters, nor do defs require a return statement.
因为Groovy是动态类型的语言,所以def不需要对参数作任何类型声明,def也不需要return语句。
All other affected join points show the same structure (for example, types affected by inter-type declarations and call sites affected by advice).
所有其他受影响的连接点都显示了相同的结构(例如,受类型间声明影响的类型,以及受通知影响的调用站点。)
For convenience, we'll use the word "type" in this section to refer to classes and traits generically, as opposed to referring to member type declarations.
为了方便,我们会使用通用的“类型”这一词语来指代类和Trait,对应的还有成员类型。
Annotations are modifiers you can add to your code and apply to package declarations, type declarations, constructors, methods, fields, parameters, and variables.
注释是可以添加到代码中的修饰符,可以用于包声明、类型声明、构造函数、方法、字段、参数和变量。
Let's explore these visibility options in more detail. To keep things simple, we'll use fields for member examples. Method and type declarations behave the same way.
让我们来仔细探索一下这些可见性选项。为了简单,我们会使用字段来作为成员的例子。方法,类型声明的行为和字段是一致的。
The Document Outline presents the crosscutting structure for the active editor, indicating the advice and inter-type declarations that affect the corresponding join points.
文档大纲(Document Outline)表示活动编辑器的横切结构,代表影响对应连接点的通知和类型间声明。
Where objects are necessary, try to use inter-type declarations in aspects to compose the objects, so different (pattern) roles remain distinct even when defined on one class.
如果对象是必需的,那么应该尝试在方面中使用内部类型声明来组合对象,从而使不同的(模式)角色保持区别,即使在同一个类中定义也是如此。
You'll also want to turn on the new Option infer feature. This allows the compiler to infer local variable type declarations by evaluating the right-hand side of the expression.
你也希望根据那些特性打开新的推断特性的选项,这允许编译器通过估计右值表达式去推测出局部变量的申明类型。
In the Garden of Eden design pattern, you make both element declarations and type declarations global, taking globalization to the extreme. Listing 12 shows a Garden of Eden style schema.
在GardenofEden设计范式中,您让元素声明和类型声明都是全局的,将全局化发挥到了极致。
Because information type declarations are separated into modules, you can define new information types without affecting ancestor types. This separation gives you the following benefits.
因为信息类型声明分布在不同的模块中,所以定义信息的信息类型不会影响到祖先类型。
While the tools have converged on the idea of a join point model, pointcuts, advice, and inter-type declarations, there are significant trade-offs inherent in each tool's handling of AOP syntax.
虽然这些工具已经集中在连接点模型、切入点、通知和类型间声明的思想上,但是每种工具在处理AOP语法时,仍有各自明显的优缺点。
This is only marginally useful, since it will fail to show any of the interesting associations between advice and affected join points, or the additional members added by inter-type declarations.
这样做的好处是有限的,因为它无法显示在通知与受影响的连接点之间,或者通知与通过类型间声明添加的附加成员之间的所有有意义的关系。
This file provides the type signature so that this interface can be used in method declarations for other interfaces.
这个文件提供类型标记,从而使这个接口能用于其它接口的方法声明。
Did you notice another difference between these namespace declarations, beyond the type of URI specified?
注意到这两个名称空间声明在指定的uri类型上的区别吗?
Although not covered in this tip, you can also use type definitions in association with global and local element declarations to improve the readability of your schemas.
尽管在本技巧中没有讨论,但是您还可以在全局和本地声明中使用类型定义以改进模式的可读性。
They then traverse a substitution chain of element declarations or a type hierarchy to determine whether the element declaration satisfies the substitution or type derivation requirements.
然后遍历元素声明的代替链或类型层次结构,以决定元素声明是否满足代替或类型衍生要求。
Most object-oriented languages have constructs to constrain the visibility (or scope) of type and type-member declarations.
大多数面向对象语言都有控制类型或者类型成员可见性(作用域)声明的结构。
Most object-oriented languages have constructs to constrain the visibility (or scope) of type and type-member declarations.
大多数面向对象语言都有控制类型或者类型成员可见性(作用域)声明的结构。
应用推荐