2014-09-02 08:33:54 +00:00
|
|
|
package de.dhbwstuttgart.syntaxtree;
|
2014-06-25 15:31:04 +00:00
|
|
|
|
|
|
|
import java.util.Vector;
|
|
|
|
|
2014-09-05 09:49:31 +00:00
|
|
|
import de.dhbwstuttgart.parser.GenericVarDeclarationList;
|
2014-09-02 08:33:54 +00:00
|
|
|
import de.dhbwstuttgart.syntaxtree.type.GenericTypeVar;
|
2014-06-25 15:31:04 +00:00
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 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 13:07:40 +00:00
|
|
|
private int offsetOfLastElement;
|
|
|
|
|
2014-07-31 13:15:33 +00:00
|
|
|
public GenericDeclarationList(Vector<GenericTypeVar> values, int endOffset) {
|
2014-07-09 13:07:40 +00:00
|
|
|
this.addAll(values);
|
2014-07-31 13:15:33 +00:00
|
|
|
this.offsetOfLastElement = endOffset;
|
2014-06-25 15:31:04 +00:00
|
|
|
}
|
|
|
|
|
2014-07-31 13:15:33 +00:00
|
|
|
public int getEndOffset(){
|
2014-07-09 13:07:40 +00:00
|
|
|
return offsetOfLastElement;
|
|
|
|
}
|
2014-06-25 15:31:04 +00:00
|
|
|
}
|