protected void _toJavaLiteral(final JvmStringAnnotationValue it, final ITreeAppendable appendable, final GeneratorConfig config) { final Procedure1<String> _function = (String it_1) -> { String _doConvertToJavaString = this.doConvertToJavaString(it_1.toString()); String _plus = ("\"" + _doConvertToJavaString); String _plus_1 = (_plus + "\""); appendable.append(_plus_1); }; this._loopExtensions.<String>forEachWithShortcut(appendable, it.getValues(), _function); }
protected void _toJavaLiteral(final JvmCharAnnotationValue it, final ITreeAppendable appendable, final GeneratorConfig config) { final Procedure1<Character> _function = (Character it_1) -> { String _doConvertToJavaString = this.doConvertToJavaString(it_1.toString()); String _plus = ("\'" + _doConvertToJavaString); String _plus_1 = (_plus + "\'"); appendable.append(_plus_1); }; this._loopExtensions.<Character>forEachWithShortcut(appendable, it.getValues(), _function); }
public ITreeAppendable generateBodyWithIssues(final ITreeAppendable appendable, final Iterable<Issue> errors) { ITreeAppendable _xblockexpression = null; { appendable.append("{").increaseIndentation().newLine().append("throw new Error(\"Unresolved compilation problems:\""); appendable.increaseIndentation(); final Consumer<Issue> _function = (Issue it) -> { appendable.newLine().append("+ \"\\n").append(this.doConvertToJavaString(it.getMessage())).append("\""); }; errors.forEach(_function); _xblockexpression = appendable.append(");").decreaseIndentation().decreaseIndentation().newLine().append("}"); } return _xblockexpression; }