1 26 27 package org.objectweb.ccm.IDL3; 28 29 37 38 public class DeclaratorList 39 { 40 46 49 private java.util.Vector names_; 50 51 54 private java.util.Vector types_; 55 56 62 65 public DeclaratorList() 66 { 67 names_ = new java.util.Vector (); 69 types_ = new java.util.Vector (); 70 } 71 72 78 84 public void 85 addDeclarator(String name, 86 TypeRef type) 87 { 88 names_.addElement(name); 89 types_.addElement(type); 90 } 91 92 97 public int 98 size() 99 { 100 return names_.size(); 101 } 102 103 110 public String 111 nameAt(int index) 112 { 113 return (String )names_.elementAt(index); 114 } 115 116 123 public TypeRef 124 typeAt(int index) 125 { 126 return (TypeRef)types_.elementAt(index); 127 } 128 } 129 | Popular Tags |