package backend.command;

import backend.StringPair;

public class List extends Command {

	private boolean listComplete;

	public List(StringPair stringPair, Command parent) {
		super(stringPair, 0, parent);
		listComplete = false;
	}

	@Override
	public boolean needsParams() {
		return !listComplete;
	}

	public void setComplete() {
		listComplete = true;
	}

	public Double execute() {
		Double returnVal = 0.0;
		for(Command param : params) {
			returnVal = param.execute();
		}
		return returnVal;
	}

}

@@ -353,24 +353,89 @@
 = true;%0A%09%7D%0A%0A
+%09public Command get(int index) %7B%0A%09%09return params.get(index);%0A%09%7D%0A%0A
 %09public Doub

add List get method.