public AddStatement getStatement(int phase, String name, boolean not, Boolean cs, String var1, String var2, String var2b, GrammarData data) {
if (refname != null) {
var2 = refname;
}
String output = data.getOutput(phase, var1, var2, var2b, null, not);
RangeData rangeData = new RangeData(new RangeLimit(range1), new RangeLimit(range2));
NewStatement newStatement = new NewStatement("Range", name, rangeData);
newStatement.setData(not, cs, output);
return new AddStatement(name, newStatement);
}