KickJava   Java API By Example, From Geeks To Geeks.

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


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 declare error or declare warning member
16  * in an aspect.
17  */

18 public interface DeclareErrorOrWarning {
19     
20     /**
21      * The type that declared this declare warning or declare error member.
22      */

23     AjType getDeclaringType();
24     
25     /**
26      * The pointcut expression associated with the warning or error
27      */

28     PointcutExpression getPointcutExpression();
29     
30     /**
31      * The message associated with the declare warning / declare error
32      */

33     String JavaDoc getMessage();
34     
35     /**
36      * True if this is a declare error member, false if it is declare warning
37      */

38     boolean isError();
39     
40 }
41
Popular Tags