/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case TypesPackage.JVM_ANNOTATION_REFERENCE__ANNOTATION: if (resolve) return getAnnotation(); return basicGetAnnotation(); case TypesPackage.JVM_ANNOTATION_REFERENCE__VALUES: return getValues(); } return super.eGet(featureID, resolve, coreType); }
/** * <!-- 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 JvmAnnotationReference createJvmAnnotationReference() { JvmAnnotationReferenceImpl jvmAnnotationReference = new JvmAnnotationReferenceImpl(); return jvmAnnotationReference; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case TypesPackage.JVM_ANNOTATION_REFERENCE__ANNOTATION: if (resolve) return getAnnotation(); return basicGetAnnotation(); case TypesPackage.JVM_ANNOTATION_REFERENCE__EXPLICIT_VALUES: return getExplicitValues(); } return super.eGet(featureID, resolve, coreType); }
/** * <!-- 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 */ @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case TypesPackage.JVM_ANNOTATION_REFERENCE__ANNOTATION: setAnnotation((JvmAnnotationType)newValue); return; case TypesPackage.JVM_ANNOTATION_REFERENCE__VALUES: getValues().clear(); getValues().addAll((Collection<? extends JvmAnnotationValue>)newValue); return; } super.eSet(featureID, newValue); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case TypesPackage.JVM_ANNOTATION_REFERENCE__ANNOTATION: setAnnotation((JvmAnnotationType)newValue); return; case TypesPackage.JVM_ANNOTATION_REFERENCE__EXPLICIT_VALUES: getExplicitValues().clear(); getExplicitValues().addAll((Collection<? extends JvmAnnotationValue>)newValue); return; } super.eSet(featureID, newValue); }
@Override public EObject eResolveProxy(InternalEObject proxy) { Resource resource = eResource(); if (resource instanceof IJavaSchemeUriResolver) { EObject result = ((IJavaSchemeUriResolver) resource).resolveJavaObjectURIProxy(proxy, this); if (result != null) return result; } return super.eResolveProxy(proxy); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case TypesPackage.JVM_ANNOTATION_REFERENCE__EXPLICIT_VALUES: return ((InternalEList<?>)getExplicitValues()).basicRemove(otherEnd, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case TypesPackage.JVM_ANNOTATION_REFERENCE__VALUES: return ((InternalEList<?>)getValues()).basicRemove(otherEnd, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); }
/** * <!-- 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 */ @Override public void eUnset(int featureID) { switch (featureID) { case TypesPackage.JVM_ANNOTATION_REFERENCE__ANNOTATION: setAnnotation((JvmAnnotationType)null); return; case TypesPackage.JVM_ANNOTATION_REFERENCE__VALUES: getValues().clear(); return; } super.eUnset(featureID); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case TypesPackage.JVM_ANNOTATION_REFERENCE__ANNOTATION: setAnnotation((JvmAnnotationType)null); return; case TypesPackage.JVM_ANNOTATION_REFERENCE__EXPLICIT_VALUES: getExplicitValues().clear(); return; } super.eUnset(featureID); }
/** * <!-- 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)); }