1 26 27 package org.objectweb.ccm.IDL3; 28 29 38 39 public class FileScope 40 extends ScopeImpl 41 { 42 48 49 protected org.objectweb.ccm.util.Vector included_files_; 50 51 57 64 public 65 FileScope(Repository rep, 66 ScopeImpl parent, 67 org.objectweb.ccm.util.Vector decls) 68 { 69 super(rep, parent); 70 71 contained_decls_ = decls; 73 included_files_ = new org.objectweb.ccm.util.Vector(); 74 } 75 76 82 88 protected org.omg.CORBA.Container 89 getContainer() 90 { 91 return the_parent_.getContainer(); 92 } 93 94 99 protected org.omg.CORBA.ComponentIR.Container 100 getComponentContainer() 101 { 102 return the_parent_.getComponentContainer(); 103 } 104 105 111 protected org.omg.CORBA.Contained 112 getContained() 113 { 114 return null; 115 } 116 117 123 128 public void 129 addIncluded(FileScope fs) 130 { 131 included_files_.add(fs); 132 } 133 134 139 public String [] 140 getIncluded() 141 { 142 String [] filenames = new String [included_files_.size()]; 143 for (int i=0;i<filenames.length;i++) 144 filenames[i] = ((Declaration)included_files_.get(i)).getName(); 145 146 return filenames; 147 } 148 149 155 158 public void 159 destroy() 160 { 161 if (getName().equals("")) 163 super.destroy(); 164 } 165 } 166 | Popular Tags |