public void unparse(Exp[] args, PrintWriter pw) { args[0].unparse(pw); }
public void unparse(PrintWriter pw) { e.unparse(pw); }
public void unparse(PrintWriter pw) { pw.print(name + " = "); exp.unparse(pw); }
private String getExpression() { final Writer result = new StringWriter(); final PrintWriter printWriter = new PrintWriter(result); exp.unparse(printWriter); return result.toString(); }
/** * Converts an expression to a string. */ public static String unparse(Exp exp) { StringWriter sw = new StringWriter(); PrintWriter pw = new PrintWriter(sw); exp.unparse(pw); return sw.toString(); }
public static void unparseList( PrintWriter pw, Exp[] exps, String start, String mid, String end) { pw.print(start); for (int i = 0; i < exps.length; i++) { if (i > 0) { pw.print(mid); } exps[i].unparse(pw); } pw.print(end); }
public void unparse(Exp[] args, PrintWriter pw) { if (args.length != 1) { ExpBase.unparseList(pw, args, "(", ",", ")"); } else { // Don't use parentheses unless necessary. We add parentheses around // expressions because we're not sure of operator precedence, so if // we're not careful, the parentheses tend to multiply ad infinitum. args[0].unparse(pw); } }
public void unparse(String fun, Exp[] args, PrintWriter pw) { Util.assertTrue(args.length >= 1); args[0].unparse(pw); // 'this' pw.print("."); pw.print(fun); }
for (int i = 0; i < clauseCount; i++) { pw.print(" WHEN "); args[j++].unparse(pw); pw.print(" THEN "); args[j++].unparse(pw); args[j++].unparse(pw); args[j++].unparse(pw); int clauseCount = (args.length - j) / 2; for (int i = 0; i < clauseCount; i++) { pw.print(" WHEN "); args[j++].unparse(pw); pw.print(" THEN "); args[j++].unparse(pw); args[j++].unparse(pw);
public void unparse(PrintWriter pw) { if (nonEmpty) { pw.print("NON EMPTY "); } if (exp != null) { exp.unparse(pw); } if (dimensionProperties.length > 0) { pw.print(" DIMENSION PROPERTIES "); for (int i = 0; i < dimensionProperties.length; i++) { Id dimensionProperty = dimensionProperties[i]; if (i > 0) { pw.print(", "); } dimensionProperty.unparse(pw); } } if (!axisOrdinal.isFilter()) { pw.print(" ON " + axisOrdinal.name()); } }
public void unparse(PrintWriter pw) { if (isMember) { pw.print("member "); if (mdxMember != null) { pw.print(mdxMember.getUniqueName()); } else { id.unparse(pw); } } else { pw.print("set "); id.unparse(pw); } pw.print(" as '"); exp.unparse(pw); pw.print("'"); if (memberProperties != null) { for (MemberProperty memberProperty : memberProperties) { pw.print(", "); memberProperty.unparse(pw); } } }
final Object value = parameter.getValue(); if (value == null) { parameter.getDefaultExp().unparse(pw); } else if (value instanceof String) { String s = (String) value;