CloneSet24


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
98220.993class_body_declarations[6]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
198242
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/impl/EClassImpl.java
298607
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/impl/EOperationImpl.java
Next
Last
Clone Instance
1
Line Count
98
Source Line
242
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/impl/EClassImpl.java

@Override protected NotificationChain shadowAdd(EGenericType eGenericType, NotificationChain notifications) {
  ENotificationImpl notification = new ENotificationImpl(owner, Notification.ADD, EcorePackage.ECLASS__ESUPER_TYPES, null, unwrap(eGenericType), indexOf(eGenericType), false);
  if (notifications == null) {
    notifications = notification;
  }
  else {
    notifications.add(notification);
  }
  return notifications;
}

@Override protected NotificationChain shadowRemove(EGenericType eGenericType, NotificationChain notifications) {
  ENotificationImpl notification = new ENotificationImpl(owner, Notification.REMOVE, EcorePackage.ECLASS__ESUPER_TYPES, unwrap(eGenericType), null, indexOf(eGenericType), false);
  if (notifications == null) {
    notifications = notification;
  }
  else {
    notifications.add(notification);
  }
  return notifications;
}

@Override protected NotificationChain shadowSet(EGenericType oldEGenericType, EGenericType newEGenericType, NotificationChain notifications) {
  ENotificationImpl notification = new ENotificationImpl(owner, Notification.SET, EcorePackage.ECLASS__ESUPER_TYPES, unwrap(oldEGenericType), unwrap(newEGenericType), indexOf(oldEGenericType), false);
  if (notifications == null) {
    notifications = notification;
  }
  else {
    notifications.add(notification);
  }
  return notifications;
}

@Override public EGenericType move(int targetIndex, int sourceIndex) {
  EGenericType result = super.move(targetIndex, sourceIndex);
  if (isNotificationRequired()) {
    dispatchNotification(new ENotificationImpl(EClassImpl.this, Notification.MOVE, EcorePackage.Literals.ECLASS__ESUPER_TYPES, new Integer(sourceIndex), unwrap(result), targetIndex));
  }
  return result;
}

@Override public void unset() {
  // Don't really unset it.
  clear();
}

@Override protected NotificationImpl createNotification(int eventType, Object oldObject, Object newObject, int index, boolean wasSet) {
  switch (eventType) {
    case Notification.ADD:
      {
        return super.createNotification(eventType, oldObject, newObject, index, size > 1);
      }
    case Notification.ADD_MANY:
      {
        return super.createNotification(eventType, oldObject, newObject, index, size - ((List<? >) newObject).size() > 0);
      }
    default:
      {
        return super.createNotification(eventType, oldObject, newObject, index, true);
      }
  }
}


First
Previous
Clone Instance
2
Line Count
98
Source Line
607
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/impl/EOperationImpl.java

@Override protected NotificationChain shadowAdd(EGenericType eGenericType, NotificationChain notifications) {
  ENotificationImpl notification = new ENotificationImpl(owner, Notification.ADD, EcorePackage.EOPERATION__EEXCEPTIONS, null, unwrap(eGenericType), indexOf(eGenericType), false);
  if (notifications == null) {
    notifications = notification;
  }
  else {
    notifications.add(notification);
  }
  return notifications;
}

@Override protected NotificationChain shadowRemove(EGenericType eGenericType, NotificationChain notifications) {
  ENotificationImpl notification = new ENotificationImpl(owner, Notification.REMOVE, EcorePackage.EOPERATION__EEXCEPTIONS, unwrap(eGenericType), null, indexOf(eGenericType), false);
  if (notifications == null) {
    notifications = notification;
  }
  else {
    notifications.add(notification);
  }
  return notifications;
}

@Override protected NotificationChain shadowSet(EGenericType oldEGenericType, EGenericType newEGenericType, NotificationChain notifications) {
  ENotificationImpl notification = new ENotificationImpl(owner, Notification.SET, EcorePackage.EOPERATION__EEXCEPTIONS, unwrap(oldEGenericType), unwrap(newEGenericType), indexOf(oldEGenericType), false);
  if (notifications == null) {
    notifications = notification;
  }
  else {
    notifications.add(notification);
  }
  return notifications;
}

@Override public EGenericType move(int targetIndex, int sourceIndex) {
  EGenericType result = super.move(targetIndex, sourceIndex);
  if (isNotificationRequired()) {
    dispatchNotification(new ENotificationImpl(EOperationImpl.this, Notification.MOVE, EcorePackage.Literals.EOPERATION__EEXCEPTIONS, new Integer(sourceIndex), unwrap(result), targetIndex));
  }
  return result;
}

@Override public void unset() {
  // Don't really unset it.
  clear();
}

@Override protected NotificationImpl createNotification(int eventType, Object oldObject, Object newObject, int index, boolean wasSet) {
  switch (eventType) {
    case Notification.ADD:
      {
        return super.createNotification(eventType, oldObject, newObject, index, size > 1);
      }
    case Notification.ADD_MANY:
      {
        return super.createNotification(eventType, oldObject, newObject, index, size - ((List<? >) newObject).size() > 0);
      }
    default:
      {
        return super.createNotification(eventType, oldObject, newObject, index, true);
      }
  }
}


Clone AbstractionParameter Count: 2Parameter Bindings

@Override protected NotificationChain shadowAdd(EGenericType eGenericType, NotificationChain notifications) {
  ENotificationImpl notification = new ENotificationImpl(owner, Notification.ADD, EcorePackage. [[#variable149a34a0]], null, unwrap(eGenericType), indexOf(eGenericType), false);
  if (notifications == null) {
    notifications = notification;
  }
  else {
    notifications.add(notification);
  }
  return notifications;
}

@Override protected NotificationChain shadowRemove(EGenericType eGenericType, NotificationChain notifications) {
  ENotificationImpl notification = new ENotificationImpl(owner, Notification.REMOVE, EcorePackage. [[#variable149a34a0]], unwrap(eGenericType), null, indexOf(eGenericType), false);
  if (notifications == null) {
    notifications = notification;
  }
  else {
    notifications.add(notification);
  }
  return notifications;
}

@Override protected NotificationChain shadowSet(EGenericType oldEGenericType, EGenericType newEGenericType, NotificationChain notifications) {
  ENotificationImpl notification = new ENotificationImpl(owner, Notification.SET, EcorePackage. [[#variable149a34a0]], unwrap(oldEGenericType), unwrap(newEGenericType), indexOf(oldEGenericType), false);
  if (notifications == null) {
    notifications = notification;
  }
  else {
    notifications.add(notification);
  }
  return notifications;
}

@Override public EGenericType move(int targetIndex, int sourceIndex) {
  EGenericType result = super.move(targetIndex, sourceIndex);
  if (isNotificationRequired()) {
    dispatchNotification(new ENotificationImpl( [[#variable149a3220]].this, Notification.MOVE, EcorePackage.Literals. [[#variable149a34a0]], new Integer(sourceIndex), unwrap(result), targetIndex));
  }
  return result;
}

@Override public void unset() {
  // Don't really unset it.
  clear();
}

@Override protected NotificationImpl createNotification(int eventType, Object oldObject, Object newObject, int index, boolean wasSet) {
  switch (eventType) {
    case Notification.ADD:
      {
        return super.createNotification(eventType, oldObject, newObject, index, size > 1);
      }
    case Notification.ADD_MANY:
      {
        return super.createNotification(eventType, oldObject, newObject, index, size - ((List<? >) newObject).size() > 0);
      }
    default:
      {
        return super.createNotification(eventType, oldObject, newObject, index, true);
      }
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#149a34a0]]
ECLASS__ESUPER_TYPES 
12[[#149a34a0]]
EOPERATION__EEXCEPTIONS 
21[[#149a3220]]
EClassImpl 
22[[#149a3220]]
EOperationImpl