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();
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();
warnOnAddedMethod(gen.getMethod(),sourceLocation);
}
}
+
public void errorOnAddedField (Field field, ISourceLocation sourceLocation) {
if (isSerializable && !hasSerialVersionUIDField) {
public String getSuperClassname() {
return myGen.getSuperclassName();
}
+
+ public String[] getInterfaceNames() {
+ return myGen.getInterfaceNames();
+ }
// non-recursive, may be a bug, ha ha.