JavaPatternMatching/src/mycompiler/myparser/BoundedClassIdentifierList.java

26 lines
535 B
Java
Raw Normal View History

package mycompiler.myparser;
import java.util.Vector;
import mycompiler.mytype.RefType;
import mycompiler.mytype.Type;
public class BoundedClassIdentifierList extends Vector<Type>{
private int endOffset;
private Vector<Type> list;
public BoundedClassIdentifierList(Vector<Type> list, int endOffset){
this.endOffset = endOffset;
this.addAll(list);
}
public int getEndOffset() {
return endOffset;
}
public void addOffsetOff(RefType refType) {
this.endOffset = refType.getOffset() + refType.getName().length();
}
}