public void generateTypeParameterConstraints(final JvmTypeParameter it, final ITreeAppendable appendable, final GeneratorConfig config) { final Iterable<JvmUpperBound> upperBounds = Iterables.<JvmUpperBound>filter(it.getConstraints(), JvmUpperBound.class); final Procedure1<LoopParams> _function = (LoopParams it_1) -> { it_1.setPrefix(" extends "); it_1.setSeparator(" & "); }; final Procedure2<JvmUpperBound, ITreeAppendable> _function_1 = (JvmUpperBound it_1, ITreeAppendable app) -> { this._errorSafeExtensions.serializeSafely(it_1.getTypeReference(), app); }; this._errorSafeExtensions.<JvmUpperBound>forEachSafely(appendable, upperBounds, _function, _function_1); }
public void generateThrowsClause(final JvmExecutable it, final ITreeAppendable appendable, final GeneratorConfig config) { final LinkedHashMap<JvmType, JvmTypeReference> toBeGenerated = CollectionLiterals.<JvmType, JvmTypeReference>newLinkedHashMap(); final Consumer<JvmTypeReference> _function = (JvmTypeReference it_1) -> { boolean _containsKey = toBeGenerated.containsKey(it_1.getType()); boolean _not = (!_containsKey); if (_not) { toBeGenerated.put(it_1.getType(), it_1); } }; it.getExceptions().forEach(_function); final Procedure1<LoopParams> _function_1 = (LoopParams it_1) -> { it_1.setPrefix(" throws "); it_1.setSeparator(", "); }; final Procedure2<JvmTypeReference, ITreeAppendable> _function_2 = (JvmTypeReference it_1, ITreeAppendable app) -> { app.trace(it_1).append(it_1.getType()); }; this._errorSafeExtensions.<JvmTypeReference>forEachSafely(appendable, toBeGenerated.values(), _function_1, _function_2); }
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); }
this._errorSafeExtensions.serializeSafely(it_1, app); }; this._errorSafeExtensions.<JvmTypeReference>forEachSafely(appendable, withoutObject, _function_1, _function_2); } else { final Function1<JvmTypeReference, Boolean> _function_3 = (JvmTypeReference typeRef) -> { this._errorSafeExtensions.serializeSafely(it_1, app); }; this._errorSafeExtensions.<JvmTypeReference>forEachSafely(appendable, superInterfaces, _function_6, _function_7);