private ResequenceDefinitionRenderer() {
// Utility class, no public or protected default constructor
}
public static void render(StringBuilder buffer, ProcessorDefinition<?> processor) {
ResequenceDefinition resequence = (ResequenceDefinition)processor;
buffer.append(".").append(processor.getShortName()).append("(");
List<Expression> exps = resequence.getExpressionList();
for (Expression exp : exps) {
ExpressionRenderer.renderExpression(buffer, exp.toString());
if (exp != exps.get(exps.size() - 1)) {
buffer.append(", ");
}
}
buffer.append(")");
if (resequence.getStreamConfig() != null) {
// TODO improve stream() support
buffer.append(".stream()");
}
}