forked from JavaTX/JavaCompilerCore
26 lines
535 B
Java
26 lines
535 B
Java
|
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();
|
||
|
}
|
||
|
}
|