1 26 27 package org.objectweb.openccm.parser.lib; 28 29 import org.objectweb.openccm.ast.api.TypeRef; 31 32 40 41 public class DeclaratorList 42 { 43 49 52 private java.util.List names_; 53 54 57 private java.util.List types_; 58 59 65 68 public DeclaratorList() 69 { 70 names_ = new java.util.ArrayList (); 72 types_ = new java.util.ArrayList (); 73 } 74 75 81 87 public void 88 addDeclarator(String name, 89 TypeRef type) 90 { 91 names_.add(name); 92 types_.add(type); 93 } 94 95 100 public int 101 size() 102 { 103 return names_.size(); 104 } 105 106 113 public String 114 nameAt(int index) 115 { 116 return (String ) names_.get(index); 117 } 118 119 126 public TypeRef 127 typeAt(int index) 128 { 129 return (TypeRef) types_.get(index); 130 } 131 } 132 | Popular Tags |