diff options
author | aclement <aclement> | 2005-11-01 16:30:37 +0000 |
---|---|---|
committer | aclement <aclement> | 2005-11-01 16:30:37 +0000 |
commit | 98d8a582fcc18228e5b776532ba522fa96a6b563 (patch) | |
tree | 3d09a418562f912adce543dfd6c22eaaa1d22112 | |
parent | 2483e609ca9c0d9f5c43b60c0f32d7b9cdf51adc (diff) | |
download | aspectj-98d8a582fcc18228e5b776532ba522fa96a6b563.tar.gz aspectj-98d8a582fcc18228e5b776532ba522fa96a6b563.zip |
helpers
-rw-r--r-- | weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java b/weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java index 04c88df8e..42c99ebe3 100644 --- a/weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java +++ b/weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java @@ -88,6 +88,7 @@ public final class LazyClassGen { private ClassGen myGen; private ConstantPoolGen constantPoolGen; private World world; + private String packageName = null; private List /*LazyMethodGen*/ methodGens = new ArrayList(); private List /*LazyClassGen*/ classGens = new ArrayList(); @@ -329,6 +330,14 @@ public final class LazyClassGen { return root; return new File(root, str.substring(0, index)); } + + public String getPackageName() { + if (packageName!=null) return packageName; + String str = getInternalClassName(); + int index= str.lastIndexOf("/"); + if (index==-1) return str; + return str.substring(0,index).replace('/','.'); + } public String getClassId() { String str = getInternalClassName(); @@ -351,6 +360,7 @@ public final class LazyClassGen { warnOnAddedMethod(gen.getMethod(),sourceLocation); } } + public void errorOnAddedField (Field field, ISourceLocation sourceLocation) { if (isSerializable && !hasSerialVersionUIDField) { @@ -632,6 +642,10 @@ public final class LazyClassGen { public String getSuperClassname() { return myGen.getSuperclassName(); } + + public String[] getInterfaceNames() { + return myGen.getInterfaceNames(); + } // non-recursive, may be a bug, ha ha. |