]> source.dussan.org Git - aspectj.git/commitdiff
extended definition and code gen to allow for deows
authoraclement <aclement>
Fri, 29 Jan 2010 20:30:34 +0000 (20:30 +0000)
committeraclement <aclement>
Fri, 29 Jan 2010 20:30:34 +0000 (20:30 +0000)
weaver/src/org/aspectj/weaver/loadtime/definition/Definition.java

index 55ba1aea85031cf587c11b3c40bc26bca96eb9e8..e3fc3e6f2dcddd89b7e13fd9366c7555cba7f0a4 100644 (file)
@@ -107,6 +107,7 @@ public class Definition {
                public final String precedence;
                public final List<Definition.Pointcut> pointcuts;
                public final String perclause;
+               public List<Definition.DeclareErrorOrWarning> deows;
 
                public ConcreteAspect(String name, String extend) {
                        this(name, extend, null, null);
@@ -125,6 +126,7 @@ public class Definition {
                        }
                        this.precedence = precedence;
                        this.pointcuts = new ArrayList<Definition.Pointcut>();
+                       this.deows = new ArrayList<Definition.DeclareErrorOrWarning>();
                        this.perclause = perclause;
                }
        }
@@ -139,6 +141,18 @@ public class Definition {
                }
        }
 
+       public static class DeclareErrorOrWarning {
+               public final boolean isError;
+               public final String pointcut;
+               public final String message;
+
+               public DeclareErrorOrWarning(boolean isError, String pointcut, String message) {
+                       this.isError = isError;
+                       this.pointcut = pointcut;
+                       this.message = message;
+               }
+       }
+
        public void appendWeaverOptions(String option) {
                weaverOptions.append(option.trim()).append(' ');
        }