aboutsummaryrefslogtreecommitdiffstats
path: root/weaver
diff options
context:
space:
mode:
authoraclement <aclement>2005-05-16 10:56:06 +0000
committeraclement <aclement>2005-05-16 10:56:06 +0000
commita2a3654d02ff77485fb35613b25f0b138074c0ba (patch)
tree21c10e4ac6128641209fce5595263b06436b0fbc /weaver
parent88d477dab59d9f5f175e89534885e4ac6bc0567c (diff)
downloadaspectj-a2a3654d02ff77485fb35613b25f0b138074c0ba.tar.gz
aspectj-a2a3654d02ff77485fb35613b25f0b138074c0ba.zip
Nicer toString() :)
Diffstat (limited to 'weaver')
-rw-r--r--weaver/src/org/aspectj/weaver/patterns/ExposedState.java9
1 files changed, 8 insertions, 1 deletions
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,