blob: 3f90a3c37a684f856834fa51ab920e223d41ea78 [file] [log] [blame]
pack[_x_]h[_w_pad] --- if _x_ is missing then it must be the last spec on the attrList
pack[_y_]v[_h_pad][_i_Indent] --- if _x_ is missing then it must be the last spec on the attrList
blank[_n_] (depending on whether current context is v or h, n is interpreted as h=n or w=n)
for lists cannot use text-flow specs other than these: either:
allInOneRow or perRow_x_
optionally (assuming there is a separator):
beforeSep_x_ afterSep_x_
(WFR: always, height of the item should be 1, otherwise the pretty-printed doc won't be parseable)
public Box prettyPrint() {
/*
* sequence annotation : AT source=stringLiteralOrQualifiedID LPAREN
* keyEqualsValueList RPAREN
*/
List<Object> prettyPrintStack = new ArrayList<Object>();
prettyPrintStack.add("@");
prettyPrintStack.add(getSource());
prettyPrintStack.add("(");
prettyPrintStack.add(getKv1());
prettyPrintStack.add(")");
ArrayList<PPCommand> prettyPrintCmds = new ArrayList<PPCommand>();
prettyPrintCmds.add(SL.packH(3, 0));
prettyPrintCmds.add(SL.allInOneRow(true));
prettyPrintCmds.add(SL.packH(3, 0));
Box res = SL.process(prettyPrintCmds, prettyPrintStack);
return res;
}
org.eclipse.gymnast.prettyprinting.scripting.SL