param.setParameterType(SARLJvmModelInferrer.this._typeReferenceBuilder.typeRef(ToStringBuilder.class)); it2.getParameters().add(param); setBody(it2, it3 -> { it3.append("super.toString(builder);"); //$NON-NLS-1$ for (final JvmField attr : declaredInstanceFields) {
setBody(op, it -> { it.append(redefinedOperation.getSimpleName());
staticConstructor.setStatic(true); staticConstructor.setReturnType(this._typeReferenceBuilder.typeRef(Void.TYPE)); setBody(staticConstructor, source.getExpression()); copyAndCleanDocumentationTo(source, staticConstructor); return; setBody(constructor, source.getExpression()); appendGeneratedAnnotation(constructor2, context); setBody(constructor2, toStringConcatenation( "this(" //$NON-NLS-1$ + IterableExtensions.join(args, ", ") //$NON-NLS-1$
parameter2.setParameterType(this._typeReferenceBuilder.typeRef(AgentTrait.class)); constructor.getParameters().add(parameter2); setBody(constructor, it -> { it.append("super(capacity, caller);"); //$NON-NLS-1$ });
this.associator.associate(sarlElement, param); result.getParameters().add(param); setBody(result, new Procedures.Procedure1<ITreeAppendable>() { @SuppressWarnings("synthetic-access") @Override
setBody(operation, it -> { it.append("try {"); //$NON-NLS-1$ it.increaseIndentation().newLine();
setBody(newOp, it -> bodyBuilder.apply(operation, it));
setBody(newCons, it -> { it.append(this.grammarKeywordAccess.getSuperKeyword()); it.append("("); //$NON-NLS-1$
container.getMembers().add(operation); setBody(operation, it -> { it.append("assert "); //$NON-NLS-1$ it.append(this.grammarKeywordAccess.getOccurrenceKeyword());
setBody(operation, it -> { it.append("if (this.").append(fieldName).append(" == null || this."); //$NON-NLS-1$ //$NON-NLS-2$ it.append(fieldName).append(".get() == null) {"); //$NON-NLS-1$
addAnnotationSafe(result, Pure.class); setBody(result, it -> { final TypeReferences refs = SARLJvmModelInferrer.this.typeReferences; it.append("int result = super.").append(HASHCODE_FUNCTION_NAME); //$NON-NLS-1$