35 lines
689 B
Java
Raw Normal View History

2014-09-02 10:33:54 +02:00
package de.dhbwstuttgart.syntaxtree;
2016-12-07 14:32:48 +01:00
2014-04-09 14:12:55 +02:00
2013-10-18 13:33:46 +02:00
import java.util.Iterator;
2016-09-13 17:32:22 +02:00
import java.util.List;
2013-10-18 13:33:46 +02:00
public class ParameterList extends SyntaxTreeNode implements Iterable<FormalParameter>
2013-10-18 13:33:46 +02:00
{
public List<FormalParameter> formalparameter;
2013-10-18 13:33:46 +02:00
2016-09-13 17:32:22 +02:00
public ParameterList(List<FormalParameter> params){
this.formalparameter = params;
2013-10-18 13:33:46 +02:00
}
2016-12-07 14:32:48 +01:00
2013-10-18 13:33:46 +02:00
public FormalParameter getParameterAt(int i)
{
if (i >= formalparameter.size() ) return null;
2016-09-13 17:32:22 +02:00
return formalparameter.get(i);
2013-10-18 13:33:46 +02:00
}
2016-09-13 17:32:22 +02:00
public List<FormalParameter> sc_get_Formalparalist()
2013-10-18 13:33:46 +02:00
{
return formalparameter;
}
2014-02-19 17:32:43 +01:00
@Override
public Iterator<FormalParameter> iterator() {
return null;
}
2013-10-18 13:33:46 +02:00
}