public void generateTypeParameterDeclaration(final JvmTypeParameterDeclarator it, final ITreeAppendable appendable, final GeneratorConfig config) { final Procedure1<LoopParams> _function = (LoopParams it_1) -> { it_1.setPrefix("<"); it_1.setSeparator(", "); it_1.setSuffix("> "); }; final Procedure1<JvmTypeParameter> _function_1 = (JvmTypeParameter it_1) -> { this.generateTypeParameterDeclaration(it_1, appendable, config); }; this._loopExtensions.<JvmTypeParameter>forEach(appendable, it.getTypeParameters(), _function, _function_1); }
public void generateAnnotations(final Iterable<JvmAnnotationReference> annotations, final ITreeAppendable appendable, final boolean withLineBreak, final GeneratorConfig config) { final Function1<ITreeAppendable, ITreeAppendable> _function = (ITreeAppendable it) -> { ITreeAppendable _xifexpression = null; if (withLineBreak) { _xifexpression = it.newLine(); } else { _xifexpression = it.append(" "); } return _xifexpression; }; final Function1<ITreeAppendable, ITreeAppendable> sep = _function; final Procedure1<LoopParams> _function_1 = (LoopParams it) -> { it.setSeparator(sep); it.setSuffix(sep); }; final Procedure2<JvmAnnotationReference, ITreeAppendable> _function_2 = (JvmAnnotationReference it, ITreeAppendable app) -> { this.generateAnnotation(it, app, config); }; this._errorSafeExtensions.<JvmAnnotationReference>forEachSafely(appendable, annotations, _function_1, _function_2); }
public void generateAnnotation(final JvmAnnotationReference it, final ITreeAppendable appendable, final GeneratorConfig config) { appendable.append("@"); appendable.append(it.getAnnotation()); final Procedure1<LoopParams> _function = (LoopParams it_1) -> { it_1.setPrefix("("); it_1.setSeparator(", "); it_1.setSuffix(")"); }; final Procedure1<JvmAnnotationValue> _function_1 = (JvmAnnotationValue it_1) -> { this.toJava(it_1, appendable, config); }; this._loopExtensions.<JvmAnnotationValue>forEach(appendable, it.getExplicitValues(), _function, _function_1); }
/** * Uses curly braces and comma as delimiters. Doesn't use them for single valued iterables. */ public <T extends Object> void forEachWithShortcut(final ITreeAppendable appendable, final Iterable<T> elements, final Procedure1<? super T> procedure) { int _size = IterableExtensions.size(elements); boolean _equals = (_size == 1); if (_equals) { T _head = IterableExtensions.<T>head(elements); ObjectExtensions.<T>operator_doubleArrow(_head, procedure); } else { appendable.append("{"); final Procedure1<LoopParams> _function = (LoopParams it) -> { it.setPrefix(" "); it.setSeparator(", "); it.setSuffix(" "); }; this.<T>forEach(appendable, elements, _function, procedure); appendable.append("}"); } } }
it_1.setPrefix("extends "); it_1.setSeparator(", "); it_1.setSuffix(" "); }; final Procedure2<JvmTypeReference, ITreeAppendable> _function_2 = (JvmTypeReference it_1, ITreeAppendable app) -> { it_1.setPrefix("implements "); it_1.setSeparator(", "); it_1.setSuffix(" "); }; final Procedure2<JvmTypeReference, ITreeAppendable> _function_7 = (JvmTypeReference it_1, ITreeAppendable app) -> {
}; it_1.setSeparator(_function_1); it_1.setSuffix(";"); }; final Procedure1<JvmEnumerationLiteral> _function_1 = (JvmEnumerationLiteral it_1) -> {