From a2a3654d02ff77485fb35613b25f0b138074c0ba Mon Sep 17 00:00:00 2001 From: aclement Date: Mon, 16 May 2005 10:56:06 +0000 Subject: [PATCH] Nicer toString() :) --- weaver/src/org/aspectj/weaver/patterns/ExposedState.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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, -- 2.39.5