aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorwisberg <wisberg>2003-08-08 23:07:33 +0000
committerwisberg <wisberg>2003-08-08 23:07:33 +0000
commit956e874890c0495713df91c64946c954569b49ff (patch)
tree37a7bb75b59ce69148ba8d1547df2962de250544 /build
parent396675d501d3f69db8aaef5f5e907a5572c6daa6 (diff)
downloadaspectj-956e874890c0495713df91c64946c954569b49ff.tar.gz
aspectj-956e874890c0495713df91c64946c954569b49ff.zip
XMLEntry.toString for better errors
Diffstat (limited to 'build')
-rw-r--r--build/src/org/aspectj/internal/tools/build/Module.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/build/src/org/aspectj/internal/tools/build/Module.java b/build/src/org/aspectj/internal/tools/build/Module.java
index 698252ba7..6fefdcdba 100644
--- a/build/src/org/aspectj/internal/tools/build/Module.java
+++ b/build/src/org/aspectj/internal/tools/build/Module.java
@@ -608,6 +608,21 @@ class XMLEntry {
return -1;
}
+ public String toString() {
+ StringBuffer result = new StringBuffer();
+ result.append("<");
+ result.append(name);
+ for (int i = 0; i < attributeNames.length; i++) {
+ if (null != attributes[i]) {
+ result.append(" ");
+ result.append(attributeNames[i]);
+ result.append("=\"" + attributes[i] + "\"");
+ }
+ }
+ result.append("/>");
+ return result.toString();
+ }
+
void reset() {
for (int i = 0; i < attributes.length; i++) {
attributes[i] = null;