1 16 17 package de.gulden.util.javasource; 18 19 import javax.xml.parsers.*; 20 import org.w3c.dom.*; 21 import java.util.*; 22 23 29 public class ClassInner extends Class { 30 31 35 37 public Vector myClass; 38 39 40 44 47 public ClassInner() { 48 super(); 49 } 50 51 52 56 59 public void setDeclaringClass(Class declaring) { 60 super.setDeclaringClass(declaring); 61 setPackage(declaring.getPackage()); 62 myImport=declaring.myImport; 63 } 64 65 68 public String getName() { 69 return getDeclaringClass().getName()+"."+getUnqualifiedName(); 70 } 71 72 75 public String getUnqualifiedName() { 76 return unqualify(name); 77 } 78 79 85 public Element buildXML(Document d) { 86 Element e=super.buildXML(d); 87 Element outer=d.createElement("outerclass"); 88 outer.appendChild(d.createTextNode(getDeclaringClass().getName())); 89 e.appendChild(outer); 90 return e; 91 } 92 93 99 protected String qualifyInternal(String name) { 100 String q = super.qualifyInternal(name); 101 if (q==null) { 102 q = getDeclaringClass().qualifyInternal(name); } 104 return q; 105 } 106 107 protected void registerAtPackage(Package p) { 108 } 111 112 } | Popular Tags |