@Override public void registerInterface(final String qualifiedName) throws IllegalArgumentException { final JvmGenericType newType = TypesFactory.eINSTANCE.createJvmGenericType(); newType.setVisibility(JvmVisibility.PUBLIC); newType.setInterface(true); this.setNameAndAccept(newType, qualifiedName); }
/** * Creates a public interface declaration, associated to the given sourceElement. It sets the given name, which might be * fully qualified using the standard Java notation. * * @param sourceElement * the sourceElement the resulting element is associated with. * @param name * the qualified name of the resulting class. * @param initializer * the initializer to apply on the created interface element. If <code>null</code>, the interface won't be initialized. * * @return a {@link JvmGenericType} representing a Java class of the given name, <code>null</code> * if sourceElement or name are <code>null</code>. */ /* @Nullable */ public JvmGenericType toInterface(/* @Nullable */ EObject sourceElement, /* @Nullable */ String name, /* @Nullable */ Procedure1<? super JvmGenericType> initializer) { final JvmGenericType result = createJvmGenericType(sourceElement, name); if (result == null) return null; result.setInterface(true); result.setAbstract(true); associate(sourceElement, result); return initializeSafely(result, initializer); }
XtendInterface xtendInterface = (XtendInterface) declaration; final JvmGenericType javaType = typesFactory.createJvmGenericType(); javaType.setInterface(true); copyTypeParameters(xtendInterface.getTypeParameters(), javaType); if (!preIndexingPhase) {
result.setInterface(clazz.isInterface()); result.setStrictFloatingPoint(Modifier.isStrict(clazz.getModifiers())); setTypeModifiers(clazz, result);
result.setInterface(clazz.isInterface()); result.setStrictFloatingPoint(Modifier.isStrict(clazz.getModifiers())); setTypeModifiers(clazz, result);
JvmGenericType _createJvmGenericType = TypesFactory.eINSTANCE.createJvmGenericType(); final Procedure1<JvmGenericType> _function = (JvmGenericType it) -> { it.setInterface(true); }; _switchResult = ObjectExtensions.<JvmGenericType>operator_doubleArrow(_createJvmGenericType, _function);
result = generic; generic.setInterface((access & ACC_INTERFACE) != 0); generic.setStrictFloatingPoint((access & ACC_STRICT) != 0);
innerType.setInterface(false); innerType.setAbstract(false); innerType.setVisibility(JvmVisibility.PUBLIC);
inferredJvmType.setInterface(true); inferredJvmType.setAbstract(true); setVisibility(inferredJvmType, source);