ASTSelectStatement.java
package edu.udel.cis.vsl.tass.front.minimp.ast.statement;
import java.util.List;
public class ASTSelectStatement extends ASTStatement {
private List<ASTSelection> selections;
public ASTSelectStatement(List<ASTSelection> selections) {
if (selections == null) {
throw new RuntimeException("Selection list cannot be null.");
}
this.selections = selections;
}
public ASTSelection getSelection(int index) {
return this.selections.get(index);
}
public int getSelectionCount() {
return this.selections.size();
}
}