public void toEPL(StringWriter writer,EPStatementFormatter formatter){
  formatter.beginMergeWhenMatched(writer);
  if (matched) {
    writer.write("when matched");
  }
 else {
    writer.write("when not matched");
  }
  if (optionalCondition != null) {
    writer.write(" and ");
    optionalCondition.toEPL(writer,ExpressionPrecedenceEnum.MINIMUM);
  }
  for (  OnMergeMatchedAction action : actions) {
    formatter.beginMergeAction(writer);
    action.toEPL(writer);
  }
}

public void toEPL ( StringWriter writer , EPStatementFormatter formatter ) { formatter . beginMergeWhenMatched ( writer ) ; if ( matched ) { writer . write ( "when matched" ) ; } else { writer . write ( "when not matched" ) ; } if ( optionalCondition != null ) { writer . write ( " and " ) ; optionalCondition . toEPL ( writer , ExpressionPrecedenceEnum . MINIMUM ) ; } for ( OnMergeMatchedAction action : actions ) { formatter . beginMergeAction ( writer ) ; action . toEPL ( writer ) ; } }
renders the clause in textual representation .
