From: aclement Date: Mon, 16 May 2005 10:56:06 +0000 (+0000) Subject: Nicer toString() :) X-Git-Tag: PRE_ANDY~313 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a2a3654d02ff77485fb35613b25f0b138074c0ba;p=aspectj.git Nicer toString() :) --- diff --git a/weaver/src/org/aspectj/weaver/patterns/ExposedState.java b/weaver/src/org/aspectj/weaver/patterns/ExposedState.java index f092ad54d..e76be017b 100644 --- a/weaver/src/org/aspectj/weaver/patterns/ExposedState.java +++ b/weaver/src/org/aspectj/weaver/patterns/ExposedState.java @@ -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,