KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > aspectj > lang > reflect > Pointcut


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 /**
15  * AspectJ runtime representation of a pointcut member inside a class or aspect.
16  */

17 public interface Pointcut {
18     
19     /**
20      * The declared name of the pointcut.
21      */

22     String JavaDoc getName();
23     
24     /**
25      * The modifiers associated with the pointcut declaration.
26      * Use java.lang.reflect.Modifier to interpret the return value
27      */

28     int getModifiers();
29     
30     /**
31      * The pointcut parameter types.
32      */

33     AjType<?>[] getParameterTypes();
34     
35     /**
36      * The pointcut parameter names. Returns an array of empty strings
37      * of length getParameterTypes().length if parameter names are not
38      * available at runtime.
39      */

40     String JavaDoc[] getParameterNames();
41     
42     /**
43      * The type that declared this pointcut
44      */

45     AjType getDeclaringType();
46
47     /**
48      * The pointcut expression associated with this pointcut.
49      */

50     PointcutExpression getPointcutExpression();
51
52 }
53
Popular Tags