]> source.dussan.org Git - aspectj.git/commitdiff
Nicer toString() :)
authoraclement <aclement>
Mon, 16 May 2005 10:56:06 +0000 (10:56 +0000)
committeraclement <aclement>
Mon, 16 May 2005 10:56:06 +0000 (10:56 +0000)
weaver/src/org/aspectj/weaver/patterns/ExposedState.java

index f092ad54dcd814c2fae0061606cc95e832ae7f43..e76be017b1a5fb6fe31e999cdd398c8c6b07a6cb 100644 (file)
@@ -34,6 +34,13 @@ public class ExposedState {
                // XXX there maybe something about target for non-static sigs
                this(signature.getParameterTypes().length);
        }
+       
+       public boolean isFullySetUp() {
+               for (int i = 0; i < vars.length; i++) {
+                       if (vars[i]==null) return false;
+               }
+               return true;
+       }
 
        public void set(int i, Var var) {
                //XXX add sanity checks
@@ -60,7 +67,7 @@ public class ExposedState {
     }
 
        public String toString() {
-               return "ExposedState(" + Arrays.asList(vars) + ", " + aspectInstance + ")";
+               return "ExposedState(#Vars="+vars.length+",Vars=" + Arrays.asList(vars) + ",AspectInstance=" + aspectInstance + ")";
        }
 
        // Set to true if we have reported an error message against it,