KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > aspectj > lang > reflect > 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  * Adrian Colyer Initial implementation
11  * ******************************************************************/

12 package org.aspectj.lang.reflect;
13
14 import java.lang.reflect.Type JavaDoc;
15
16 /**
17  * A declare parents member defined inside an aspect
18  */

19 public interface DeclareParents {
20
21     /**
22      * The declaring aspect
23      */

24     AjType getDeclaringType();
25     
26     /**
27      * The target type pattern
28      */

29     TypePattern getTargetTypesPattern();
30     
31     /**
32      * True if this is a declare parents...extends member declaration
33      */

34     boolean isExtends();
35     
36     /**
37      * True if this is a declare parents...implements member declaration
38      */

39     boolean isImplements();
40     
41     /**
42      * The set of types that the types matching getTargetTypesPattern are
43      * declared to implement or extend
44      */

45     Type JavaDoc[] getParentTypes() throws ClassNotFoundException JavaDoc;
46     
47 }
48
Popular Tags