2014-06-25 17:31:04 +02:00
|
|
|
package mycompiler.myclass;
|
|
|
|
|
|
|
|
import java.util.Vector;
|
|
|
|
|
2014-07-09 15:07:40 +02:00
|
|
|
import mycompiler.myparser.GenericVarDeclarationList;
|
2014-06-25 17:31:04 +02:00
|
|
|
import mycompiler.mytype.GenericTypeVar;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Stellt eine Deklarations-Liste von Generischen Variablen dar.
|
|
|
|
* Kann vor Methoden und Klassen auftauchen. (<....>)
|
|
|
|
* @author janulrich
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
public class GenericDeclarationList extends Vector<GenericTypeVar>{
|
|
|
|
|
2014-07-09 15:07:40 +02:00
|
|
|
private int offsetOfLastElement;
|
|
|
|
|
|
|
|
public GenericDeclarationList(Vector<GenericTypeVar> values, int offset) {
|
|
|
|
this.addAll(values);
|
|
|
|
this.offsetOfLastElement = offset;
|
2014-06-25 17:31:04 +02:00
|
|
|
}
|
|
|
|
|
2014-07-09 15:07:40 +02:00
|
|
|
public int getOffsetOfLastElement(){
|
|
|
|
return offsetOfLastElement;
|
|
|
|
}
|
2014-06-25 17:31:04 +02:00
|
|
|
}
|