JavaTXCompilerInJavaTX/src/de/dhbwstuttgart/syntaxtree/GenericDeclarationList.java

31 lines
679 B
Java
Raw Normal View History

2014-09-02 10:33:54 +02:00
package de.dhbwstuttgart.syntaxtree;
2014-06-25 17:31:04 +02:00
import java.util.*;
2014-06-25 17:31:04 +02:00
/**
* Stellt eine Deklarations-Liste von Generischen Variablen dar.
* Kann vor Methoden und Klassen auftauchen. (<....>)
* @author janulrich
2016-12-02 01:23:01 +01:00
*
2014-06-25 17:31:04 +02:00
*/
public class GenericDeclarationList extends SyntaxTreeNode implements Iterable<GenericTypeVar>{
2014-06-25 17:31:04 +02:00
2014-07-09 15:07:40 +02:00
private int offsetOfLastElement;
private List<GenericTypeVar> gtvs = new ArrayList<>();
2016-09-13 17:32:22 +02:00
public GenericDeclarationList(List<GenericTypeVar> values, int endOffset) {
gtvs = values;
this.offsetOfLastElement = endOffset;
2014-06-25 17:31:04 +02:00
}
public int getEndOffset(){
2014-07-09 15:07:40 +02:00
return offsetOfLastElement;
}
@Override
public Iterator<GenericTypeVar> iterator() {
return null;
2016-09-16 13:25:20 +02:00
}
2014-06-25 17:31:04 +02:00
}