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
|
|
|
|
|
|
|
|
2015-02-25 16:34:29 +01:00
|
|
|
public class ParameterList extends SyntaxTreeNode implements Iterable<FormalParameter>
|
2013-10-18 13:33:46 +02:00
|
|
|
{
|
2016-12-16 00:00:37 +01: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() {
|
2016-12-16 00:00:37 +01:00
|
|
|
return null;
|
2015-09-10 16:21:30 +02:00
|
|
|
}
|
2013-10-18 13:33:46 +02:00
|
|
|
}
|