private ExpressionNodeRenderer() {
// Utility class, no public or protected default constructor
}
public static void render(StringBuilder buffer, ProcessorDefinition processor) {
ExpressionNode expNode = (ExpressionNode)processor;
buffer.append(".").append(expNode.getShortName());
if (expNode instanceof DelayDefinition) {
renderDelay(buffer, expNode);
} else if (expNode instanceof FilterDefinition) {
renderFilter(buffer, expNode);
} else if (expNode instanceof IdempotentConsumerDefinition) {
renderIdempotentConsumer(buffer, expNode);
} else if (expNode instanceof LoopDefinition) {
renderLoop(buffer, expNode);
} else if (expNode instanceof RecipientListDefinition) {
ExpressionDefinition expression = expNode.getExpression();
buffer.append("(");
ExpressionRenderer.render(buffer, expression);
buffer.append(")");
} else if (expNode instanceof RoutingSlipDefinition) {
ExpressionDefinition expression = expNode.getExpression();
buffer.append("(");
ExpressionRenderer.render(buffer, expression);
if (((RoutingSlipDefinition)expNode).getUriDelimiter() != null) {
buffer.append(", \"");
buffer.append(((RoutingSlipDefinition)expNode).getUriDelimiter());