2014-09-02 10:33:54 +02:00
|
|
|
package de.dhbwstuttgart.syntaxtree;
|
2014-06-25 17:31:04 +02:00
|
|
|
|
2017-02-03 15:20:26 +01:00
|
|
|
import org.antlr.v4.runtime.Token;
|
|
|
|
|
2016-12-16 00:00:37 +01: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
|
|
|
*/
|
2014-09-16 17:34:04 +02:00
|
|
|
public class GenericDeclarationList extends SyntaxTreeNode implements Iterable<GenericTypeVar>{
|
2014-06-25 17:31:04 +02:00
|
|
|
|
2017-02-03 15:20:26 +01:00
|
|
|
private Token offsetOfLastElement;
|
2016-12-16 00:00:37 +01:00
|
|
|
private List<GenericTypeVar> gtvs = new ArrayList<>();
|
2014-09-16 17:34:04 +02:00
|
|
|
|
2017-02-03 15:20:26 +01:00
|
|
|
public GenericDeclarationList(List<GenericTypeVar> values, Token endOffset) {
|
2017-03-02 18:16:14 +01:00
|
|
|
super(endOffset);
|
2016-09-13 17:32:22 +02:00
|
|
|
gtvs = values;
|
2014-07-31 15:15:33 +02:00
|
|
|
this.offsetOfLastElement = endOffset;
|
2014-06-25 17:31:04 +02:00
|
|
|
}
|
2014-09-16 17:34:04 +02:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public Iterator<GenericTypeVar> iterator() {
|
2016-12-16 00:00:37 +01:00
|
|
|
return null;
|
2016-09-16 13:25:20 +02:00
|
|
|
}
|
2014-06-25 17:31:04 +02:00
|
|
|
}
|