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

38 lines
762 B
Java
Raw Normal View History

2014-09-02 08:33:54 +00:00
package de.dhbwstuttgart.syntaxtree;
2016-12-07 13:32:48 +00:00
2014-04-09 12:12:55 +00:00
2017-03-02 17:16:14 +00:00
import org.antlr.v4.runtime.Token;
2013-10-18 11:33:46 +00:00
import java.util.Iterator;
2016-09-13 15:32:22 +00:00
import java.util.List;
2013-10-18 11:33:46 +00:00
public class ParameterList extends SyntaxTreeNode implements Iterable<FormalParameter>
2013-10-18 11:33:46 +00:00
{
2017-03-15 15:17:07 +00:00
private List<FormalParameter> formalparameter;
2013-10-18 11:33:46 +00:00
2017-03-02 17:16:14 +00:00
public ParameterList(List<FormalParameter> params, Token offset){
super(offset);
this.formalparameter = params;
2013-10-18 11:33:46 +00:00
}
2016-12-07 13:32:48 +00:00
2013-10-18 11:33:46 +00:00
public FormalParameter getParameterAt(int i)
{
if (i >= formalparameter.size() ) return null;
2016-09-13 15:32:22 +00:00
return formalparameter.get(i);
2013-10-18 11:33:46 +00:00
}
2017-03-15 15:17:07 +00:00
public List<FormalParameter> getFormalparalist()
2013-10-18 11:33:46 +00:00
{
return formalparameter;
}
2014-02-19 16:32:43 +00:00
@Override
public Iterator<FormalParameter> iterator() {
return null;
}
2013-10-18 11:33:46 +00:00
}