IntelliJ IDEA
 
Get IntelliJ IDEA
You are viewing the documentation for an earlier version of IntelliJ IDEA.

AspectJUltimate

Last modified: 28 June 2021

AspectJ support in IntelliJ IDEA Ultimate is enabled by default and includes the following features:

  • Ability to create aspects in two forms: as .aj files and java files containing classes annotated with @Aspect.

  • Coding assistance (including code completion) when writing aspect code. For annotation-style aspects, coding assistance is provided in full; for code-style aspects, assistance is limited to inter-type declarations.

  • Ability to perform basic aspect refactorings such as Rename and Move, and also the Push ITDs In refactoring for inter-type declarations.

  • Integration with the AcpectJ compiler ajc, which you can run right from the IDE. This compiler is part of the AspectJ distribution which you can download from the AspectJ website.

  • Ability to configure ajc at the project level with an option of fine-tuning its use at the level of individual modules.

If necessary, you can refactor the source code of your aspects.

To compile your aspects using the AspectJ compiler ajc, select it as the project compiler. ajc is in aspectjtools.jar, which is located in the installation directory under /lib.

Concepts

External Links