KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > aspectj > lang > annotation > DeclareParents


1 /*******************************************************************************
2  * Copyright (c) 2005 Contributors.
3  * All rights reserved.
4  * This program and the accompanying materials are made available
5  * under the terms of the Eclipse Public License v1.0
6  * which accompanies this distribution and is available at
7  * http://eclipse.org/legal/epl-v10.html
8  *
9  * Contributors:
10  * initial implementation Adrian Colyer
11  *******************************************************************************/

12 package org.aspectj.lang.annotation;
13
14 import java.lang.annotation.Target JavaDoc;
15 import java.lang.annotation.ElementType JavaDoc;
16 import java.lang.annotation.Retention JavaDoc;
17 import java.lang.annotation.RetentionPolicy JavaDoc;
18
19 /**
20  * Declare parents mixin annotation
21  */

22 @Retention JavaDoc(RetentionPolicy.RUNTIME)
23 @Target JavaDoc(ElementType.FIELD)
24 public @interface DeclareParents {
25
26     /**
27      * The target types expression
28      */

29     String JavaDoc value();
30
31     /**
32      * Optional class defining default implementation
33      * of interface members (equivalent to defining
34      * a set of interface member ITDs for the
35      * public methods of the interface).
36      */

37     Class JavaDoc defaultImpl() default DeclareParents.class;
38
39     // note - a default of "null" is not allowed,
40
// hence the strange default given above.
41
}
42
Popular Tags