+++ /dev/null
-package IR.Tree;
-import java.util.Vector;
-import IR.Flat.TempDescriptor;
-
-public class TagExpressionList {
- Vector names;
- Vector types;
- Vector temps;
-
- public TagExpressionList() {
- names=new Vector();
- types=new Vector();
- temps=new Vector();
- }
-
- public void addTag(String type, String name) {
- types.add(type);
- names.add(name);
- }
-
- public int numTags() {
- return names.size();
- }
-
- public void setTemp(int i, TempDescriptor tmp) {
- if (i>=temps.size())
- temps.setSize(i+1);
- temps.set(i, tmp);
- }
-
- public TempDescriptor getTemp(int i) {
- return (TempDescriptor) temps.get(i);
- }
-
- public String getName(int i) {
- return (String) names.get(i);
- }
-
- public String getType(int i) {
- return (String) types.get(i);
- }
-}
-