diff options
author | aclement <aclement> | 2010-06-21 21:28:55 +0000 |
---|---|---|
committer | aclement <aclement> | 2010-06-21 21:28:55 +0000 |
commit | 926678e266223f81ca727433a393f6ba36e12bde (patch) | |
tree | 435372e733e3cb54692c371e02c9ae4644714822 /docs | |
parent | 9934539e236b6e0aebe4d1bf2e35898752ff86e1 (diff) | |
download | aspectj-926678e266223f81ca727433a393f6ba36e12bde.tar.gz aspectj-926678e266223f81ca727433a393f6ba36e12bde.zip |
intertype member types
Diffstat (limited to 'docs')
-rw-r--r-- | docs/dist/doc/README-169.html | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/docs/dist/doc/README-169.html b/docs/dist/doc/README-169.html index 55f24dc06..f8ac87302 100644 --- a/docs/dist/doc/README-169.html +++ b/docs/dist/doc/README-169.html @@ -37,6 +37,25 @@ declare @method: * get*(): @FooBar; declare @method: (* is*()) || (* get*()): @FooBar; </code></pre> +<h3>Intertype declaration of member types</h3> + +<p>It is now possible to ITD member types. The syntax is as would be expected. This example introduces a new member type called +Inner into type Foo:</p> +<pre><code>public class Foo { + public static void main(String[] args) { + new Inner().run(); + } +} + +aspect Magic { + public static class Foo.Inner { + public void run() { + System.out.println("Inner.run() executing"); + } + } +}</code></pre> +<p>Only static member types are supported.</p> + <h3>'Optional' aspects: <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=310506">310506</a></h3> <p>It is not uncommon to ship a library aspect separately to a jar upon which it depends. In the case of Spring there is |