/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setAnnotation(JvmAnnotationType newAnnotation) { JvmAnnotationType oldAnnotation = annotation; annotation = newAnnotation; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, TypesPackage.JVM_ANNOTATION_REFERENCE__ANNOTATION, oldAnnotation, annotation)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setAnnotation(JvmAnnotationType newAnnotation) { JvmAnnotationType oldAnnotation = annotation; annotation = newAnnotation; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, TypesPackage.JVM_ANNOTATION_REFERENCE__ANNOTATION, oldAnnotation, annotation)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public JvmAnnotationType getAnnotation() { if (annotation != null && annotation.eIsProxy()) { InternalEObject oldAnnotation = (InternalEObject)annotation; annotation = (JvmAnnotationType)eResolveProxy(oldAnnotation); if (annotation != oldAnnotation) { if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, TypesPackage.JVM_ANNOTATION_REFERENCE__ANNOTATION, oldAnnotation, annotation)); } } return annotation; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public JvmAnnotationType getAnnotation() { if (annotation != null && annotation.eIsProxy()) { InternalEObject oldAnnotation = (InternalEObject)annotation; annotation = (JvmAnnotationType)eResolveProxy(oldAnnotation); if (annotation != oldAnnotation) { if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, TypesPackage.JVM_ANNOTATION_REFERENCE__ANNOTATION, oldAnnotation, annotation)); } } return annotation; }