@Override public void setStatic(final boolean isStatic) { this.checkMutable(); this.getDelegate().setStatic(isStatic); if (isStatic) { JvmOperation _delegate = this.getDelegate(); _delegate.setDefault(false); } }
protected void createMethods(Class<?> clazz, JvmDeclaredType result) { try { Method[] declaredMethods = clazz.getDeclaredMethods(); if (declaredMethods.length != 0) { boolean intf = clazz.isInterface() && !clazz.isAnnotation(); InternalEList<JvmMember> members = (InternalEList<JvmMember>)result.getMembers(); for (Method method : declaredMethods) { if (!method.isSynthetic()) { JvmOperation operation = createOperation(method); if (clazz.isAnnotation()) { setDefaultValue(operation, method); } else if (intf && !operation.isAbstract() && !operation.isStatic()) { operation.setDefault(true); } members.addUnique(operation); } } } } catch (NoClassDefFoundError e) { logNoClassDefFoundError(e, clazz, "methods"); } }
@Override public void setAbstract(final boolean isAbstract) { this.checkMutable(); this.getDelegate().setAbstract(isAbstract); if (isAbstract) { JvmOperation _delegate = this.getDelegate(); _delegate.setDefault(false); } }
@Override public void setDefault(final boolean isDefault) { this.checkMutable(); this.getDelegate().setDefault(isDefault); if (isDefault) { JvmOperation _delegate = this.getDelegate(); _delegate.setAbstract(false); JvmOperation _delegate_1 = this.getDelegate(); _delegate_1.setStatic(false); } } }
if (declarator.eClass() == TypesPackage.Literals.JVM_GENERIC_TYPE && ((JvmGenericType) declarator).isInterface()) { if (!operation.isAbstract() && !operation.isStatic()) { operation.setDefault(true);
operation.setDefault(enableFunctionBody && !operation.isStatic()); operation.setAbstract(!enableFunctionBody); operation.setFinal(false); } else { operation.setDefault(false); enableFunctionBody = context != null && !source.isAbstract(); operation.setAbstract(!enableFunctionBody); operation2.setDefault(container.isInterface()); operation2.setAbstract(false); setBody(operation2, it -> { }); } else { operation2.setDefault(false); operation2.setAbstract(true);
newOp.setVisibility(JvmVisibility.PUBLIC); newOp.setDefault(operation.isDefault()); newOp.setDeprecated(operation.isDeprecated()); newOp.setSimpleName(operation.getSimpleName());
operation.setStatic(source.isStatic()); if (!operation.isAbstract() && !operation.isStatic() && container.isInterface()) operation.setDefault(true); for (XtendParameter parameter : source.getParameters()) { translateParameter(operation, parameter);