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);
NewStatement newStatement = new NewStatement("Chr", name, new ChrData(intval));
newStatement.setData(not, cs, output);
return new AddStatement(String.valueOf(intval), newStatement);
}