title: How to embed new line character in string in xtend?
body: <p>I am generating a class field in my JvmModelinferrer in xtend:</p>
  
  <pre><code>val exp = NodeModelUtils::getNode(rule.expression);
  members+=rule.toField("text",rule.newTypeRef('java.lang.String'))[
                              ^static = true
                              val Procedure1&lt;ITreeAppendable&gt; b = [
                                   append('''"«exp.text.replace('"','').replaceAll("\n"," \\n ")»"''')
                              ]
                              initializer = b
                              setFinal(true)
                              setVisibility(JvmVisibility::PUBLIC)
                          ]
  </code></pre>
  
  <p>given that the initial exp.text was </p>
  
  <pre><code>'a
   b'
  </code></pre>
  
  <p>I would like the generated field to look like this:</p>
  
  <pre><code>String text = "a \n b";
  </code></pre>
  
  <p>but instead it look like this:</p>
  
  <pre><code>String text = "a n b";
  </code></pre>
  
  <p>where as if I dont replace the newline characters at all then I get:</p>
  
  <pre><code>String text = "a
                 b";
  </code></pre>
  
  <p>which of course doesnt compile. The problem seems to be that xtend is evaluating the java string, so even though "\n" gets compiled to "\n" in java, in xtend it evaluates to "n"</p>
  
  <p>How can I get xtend to not evaluate the \n so that it is preserved in the generated java string?</p>