return name;
}
+ //the text replacement is done here because SOMEWHERE someone
+ //modifies safename without going through the constructor...
public String getSafeSymbol() {
- return safename;
+ return safename.replaceAll("\\.", "___________");
}
public int getNum() {
return uniqueid;
String path = id;
NameDescriptor temp = this.nd;
while(temp!=null) {
- path = temp.identifier + "___________" + path;
+ path = temp.identifier + "." + path;
temp = temp.nd;
}
else
return nd+"."+identifier;
}
-
}
}
public void addNewClass(String cl, Set todo) {
+ System.out.println("I'm looking for "+cl.replace(".", "/"));
//search through the default locations for the file.
for (int i = 0; i < state.classpath.size(); i++) {
String path = (String) state.classpath.get(i);
- //The name has ___________ to separate out packages
- File f = new File(path, cl.replaceAll("___________", "/") + ".java");
+ File f = new File(path, cl.replace('.', '/') + ".java");
if (f.exists()) {
try {
ParseNode pn = Main.readSourceFile(state, f.getCanonicalPath());