public void appendName(SourceWriter w) { if (left instanceof Variable) { w.append(left.toString()); } }
public void appendName(SourceWriter w) { if (left instanceof Variable) { w.append(left.toString()); } }
public void writeDefaultValue(SourceWriter w) { if (!(left instanceof Variable)) { throw new IllegalStateException("Cannot write default value unless this is a declaration"); } w.indent().append("if (Double.isNaN(").append(left).append(")) {").newLine(); w.inc(); w.indent().append(this).append(";").newLine(); w.dec(); w.line("}"); }
public void write(SourceWriter w) { String[] argStrs = new String[args.length]; int i = 0; for (Expression arg : args) { argStrs[i++] = w.writeToString(arg); } w.append(DirectSources.conCall(argStrs)); }
public void write(SourceWriter w) { w.indent(); expr.write(w); w.append(";"); w.newLine(); }
public void write(SourceWriter w) { w.indent(); expr.write(w); w.append(";"); w.newLine(); }