翻訳と辞書
Words near each other
・ Aspect (trade union)
・ Aspect Co.
・ Aspect Enterprise Solutions
・ Aspect magazine
・ Aspect of music
・ Aspect ratio
・ Aspect ratio (aeronautics)
・ Aspect ratio (disambiguation)
・ Aspect ratio (image)
・ Aspect Television
・ Aspect weaver
・ Aspect-oriented programming
・ Aspect-oriented software development
・ AspectC++
・ Aspectism
AspectJ
・ Aspects (band)
・ Aspects of Anglo-Saxon Magic
・ Aspects of Christian meditation
・ Aspects of Love
・ Aspects of Love (novel)
・ Aspects of Physics
・ Aspects of Scientific Explanation and other Essays in the Philosophy of Science
・ Aspects of the Novel
・ Aspects of the Sensual World
・ Aspects of the Theory of Syntax
・ Aspects of Venus
・ Aspein
・ Aspekt
・ Aspekte-Literaturpreis


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

AspectJ : ウィキペディア英語版
AspectJ

AspectJ is an aspect-oriented programming (AOP) extension created at PARC for the Java programming language. It is available in Eclipse Foundation open-source projects, both stand-alone and integrated into Eclipse. AspectJ has become a widely used de facto standard for AOP by emphasizing simplicity and usability for end users. It uses Java-like syntax, and included IDE integrations for displaying crosscutting structure since its initial public release in 2001.
==Simple language description==
All valid Java programs are also valid AspectJ programs, but AspectJ lets programmers define special constructs called ''aspects''. Aspects can contain several entities unavailable to standard classes. These are:
* Extension methods—allow a programmer to add methods, fields, or interfaces to existing classes from within the aspect. This example adds an acceptVisitor (see visitor pattern) method to the Point class:

aspect VisitAspect

* pointcuts — allow a programmer to specify join points (well-defined moments in the execution of a program, like method call, object instantiation, or variable access). All pointcuts are expressions (quantifications) that determine whether a given join point matches. For example, this point-cut matches the execution of any instance method in an object of type Point whose name begins with set:

pointcut set() : execution(
* set
*(..) ) && this(Point);

* advice — allows a programmer to specify code to run at a join point matched by a pointcut. The actions can be performed ''before'', ''after'', or ''around'' the specified join point. Here, the advice refreshes the display every time something on Point is set, using the pointcut declared above:

after () : set()

AspectJ also supports limited forms of pointcut-based static checking and aspect reuse (by inheritance). See the (AspectJ Programming Guide ) for a more detailed description of the language.

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「AspectJ」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.