blob: be538e3748310151d90f31ab221e93899215c42f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
/* *******************************************************************
* Copyright (c) 2005 Contributors.
* All rights reserved.
* This program and the accompanying materials are made available
* under the terms of the Eclipse Public License v 2.0
* which accompanies this distribution and is available at
* https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt
*
* Contributors:
* Adrian Colyer Initial implementation
* ******************************************************************/
package org.aspectj.lang.reflect;
import java.lang.reflect.Type;
/**
* A declare parents member defined inside an aspect
*/
public interface DeclareParents {
/**
* @return the declaring aspect
*/
AjType getDeclaringType();
/**
* @return the target type pattern
*/
TypePattern getTargetTypesPattern();
/**
* @return true if this is a declare parents...extends member declaration
*/
boolean isExtends();
/**
* @return true if this is a declare parents...implements member declaration
*/
boolean isImplements();
/**
* @return the set of types that the types matching getTargetTypesPattern are
* declared to implement or extend
* @throws ClassNotFoundException if any types cannot be found
*/
Type[] getParentTypes() throws ClassNotFoundException;
}
|