Beginning of support for tags
[IRC.git] / Robust / src / IR / Tree / TagExpressionList.java
1 package IR.Tree;
2 import java.util.Vector;
3
4 public class TagExpressionList {
5     Vector names;
6     Vector types;
7
8     public TagExpressionList() {
9         names=new Vector();
10         types=new Vector();
11     }
12     
13     public void addTag(String type, String name) {
14         types.add(type);
15         names.add(name);
16     }
17
18     public int numTags() {
19         return names.size();
20     }
21
22     public String getName(int i) {
23         return (String) names.get(i);
24     }
25
26     public String getType(int i) {
27         return (String) types.get(i);
28     }
29 }