10365-1-2

case EcorePackage.EATTRIBUTE__TRANSIENT: setTransient(TRANSIENT_EDEFAULT); return; case EcorePackage.EATTRIBUTE__DEFAULT_VALUE_LITERAL: setDefaultValueLiteral(DEFAULT_VALUE_LITERAL_EDEFAULT); return; case EcorePackage.EATTRIBUTE__UNSETTABLE: setUnsettable(UNSETTABLE_EDEFAULT); return; case EcorePackage.EATTRIBUTE__DERIVED: setDerived(DERIVED_EDEFAULT); return; case EcorePackage.EATTRIBUTE__ID: setID(ID_EDEFAULT); return; } eDynamicUnset(featureID); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case EcorePackage.EATTRIBUTE__EANNOTATIONS: return eAnnotations != null && !eAnnotations.isEmpty(); case EcorePackage.EATTRIBUTE__NAME: return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); case EcorePackage.EATTRIBUTE__ORDERED: return ((eFlags & ORDERED_EFLAG) != 0) != ORDERED_EDEFAULT; case EcorePackage.EATTRIBUTE__UNIQUE: return ((eFlags & UNIQUE_EFLAG) != 0) != UNIQUE_EDEFAULT; case EcorePackage.EATTRIBUTE__LOWER_BOUND: return lowerBound != LOWER_BOUND_EDEFAULT; case EcorePackage.EATTRIBUTE__UPPER_BOUND: return upperBound != UPPER_BOUND_EDEFAULT; case EcorePackage.EATTRIBUTE__MANY: return isMany() != MANY_EDEFAULT; case EcorePackage.EATTRIBUTE__REQUIRED: return isRequired() != REQUIRED_EDEFAULT; case EcorePackage.EATTRIBUTE__ETYPE: return isSetEType(); case EcorePackage.EATTRIBUTE__EGENERIC_TYPE: return isSetEGenericType(); case EcorePackage.EATTRIBUTE__CHANGEABLE: return ((eFlags & CHANGEABLE_EFLAG) != 0) != CHANGEABLE_EDEFAULT; case
case EcorePackage.ESTRUCTURAL_FEATURE__VOLATILE: setVolatile(VOLATILE_EDEFAULT); return; case EcorePackage.ESTRUCTURAL_FEATURE__TRANSIENT: setTransient(TRANSIENT_EDEFAULT); return; case EcorePackage.ESTRUCTURAL_FEATURE__DEFAULT_VALUE_LITERAL: setDefaultValueLiteral(DEFAULT_VALUE_LITERAL_EDEFAULT); return; case EcorePackage.ESTRUCTURAL_FEATURE__UNSETTABLE: setUnsettable(UNSETTABLE_EDEFAULT); return; case EcorePackage.ESTRUCTURAL_FEATURE__DERIVED: setDerived(DERIVED_EDEFAULT); return; } eDynamicUnset(featureID); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case EcorePackage.ESTRUCTURAL_FEATURE__EANNOTATIONS: return eAnnotations != null && !eAnnotations.isEmpty(); case EcorePackage.ESTRUCTURAL_FEATURE__NAME: return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); case EcorePackage.ESTRUCTURAL_FEATURE__ORDERED: return ((eFlags & ORDERED_EFLAG) != 0) != ORDERED_EDEFAULT; case EcorePackage.ESTRUCTURAL_FEATURE__UNIQUE: return ((eFlags & UNIQUE_EFLAG) != 0) != UNIQUE_EDEFAULT; case EcorePackage.ESTRUCTURAL_FEATURE__LOWER_BOUND: return lowerBound != LOWER_BOUND_EDEFAULT; case EcorePackage.ESTRUCTURAL_FEATURE__UPPER_BOUND: return upperBound != UPPER_BOUND_EDEFAULT; case EcorePackage.ESTRUCTURAL_FEATURE__MANY: return isMany() != MANY_EDEFAULT; case EcorePackage.ESTRUCTURAL_FEATURE__REQUIRED: return isRequired() != REQUIRED_EDEFAULT; case EcorePackage.ESTRUCTURAL_FEATURE__ETYPE: return isSetEType(); case EcorePackage.ESTRUCTURAL_FEATURE__EGENERIC_TYPE: return isSetEGenericType(); case EcorePackage.ESTRUCTURAL_FEATURE__CHANGEABLE: return ((eFlags & CHANGEABLE_EFLAG) != 0) != CHANGEABLE_EDEFAULT; case

Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EAttributeImpl.java |  | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EStructuralFeatureImpl.java
Method name: `` |  | Method name: ``
Number of AST nodes: 0 |  | Number of AST nodes: 0

1

    case EcorePackage.EATTRIBUT↵

1

    case EcorePackage.ESTRUCTURAL_FEATURE__VOLATILE:↵

2

            setVolatile(VOLATILE_EDEFAULT);↵

3

            return;↵

2

    E__TRANSIENT:↵

4

          case EcorePackage.ESTRUCTURAL_FEATURE__TRANSIENT:↵

3

            setTransient(TRANSIENT_EDEFAULT);↵

5

            setTransient(TRANSIENT_EDEFAULT);↵

4

            return;↵

6

            return;↵

5

          case EcorePackage.EATTRIBUTE__DEFAULT_VALUE_LITERAL:↵

7

          case EcorePackage.ESTRUCTURAL_FEATURE__DEFAULT_VALUE_LITERAL:↵

6

            setDefaultValueLiteral(DEFAULT_VALUE_LITERAL_EDEFAULT);↵

8

            setDefaultValueLiteral(DEFAULT_VALUE_LITERAL_EDEFAULT);↵

7

            return;↵

9

            return;↵

8

          case EcorePackage.EATTRIBUTE__UNSETTABLE:↵

10

          case EcorePackage.ESTRUCTURAL_FEATURE__UNSETTABLE:↵

9

            setUnsettable(UNSETTABLE_EDEFAULT);↵

11

            setUnsettable(UNSETTABLE_EDEFAULT);↵

10

            return;↵

12

            return;↵

11

          case EcorePackage.EATTRIBUTE__DERIVED:↵

13

          case EcorePackage.ESTRUCTURAL_FEATURE__DERIVED:↵

12

            setDerived(DERIVED_EDEFAULT);↵

14

            setDerived(DERIVED_EDEFAULT);↵

13

            return;↵

15

            return;↵

14

          case EcorePackage.EATTRIBUTE__ID:↵

15

            setID(ID_EDEFAULT);↵

16

            return;↵

17

        }↵

16

        }↵

18

        eDynamicUnset(featureID);↵

17

        eDynamicUnset(featureID);↵

19

      }↵

18

      }↵

20

      /**↵

19

      /**↵

21

       * <!-- begin-user-doc -->↵

20

       * <!-- begin-user-doc -->↵

22

       * <!-- end-user-doc -->↵

21

       * <!-- end-user-doc -->↵

23

       * @generated↵

22

       * @generated↵

24

       */↵

23

       */↵

25

      @Override↵

24

      @Override↵

26

      public boolean eIsSet(int featureID)↵

25

      public boolean eIsSet(int featureID)↵

27

      {↵

26

      {↵

28

        switch (featureID)↵

27

        switch (featureID)↵

29

        {↵

28

        {↵

30

          case EcorePackage.EATTRIBUTE__EANNOTATIONS:↵

29

          case EcorePackage.ESTRUCTURAL_FEATURE__EANNOTATIONS:↵

31

            return eAnnotations != null && !eAnnotations.isEmpty();↵

30

            return eAnnotations != null && !eAnnotations.isEmpty();↵

32

          case EcorePackage.EATTRIBUTE__NAME:↵

31

          case EcorePackage.ESTRUCTURAL_FEATURE__NAME:↵

33

            return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);↵

32

            return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);↵

34

          case EcorePackage.EATTRIBUTE__ORDERED:↵

33

          case EcorePackage.ESTRUCTURAL_FEATURE__ORDERED:↵

35

            return ((eFlags & ORDERED_EFLAG) != 0) != ORDERED_EDEFAULT;↵

34

            return ((eFlags & ORDERED_EFLAG) != 0) != ORDERED_EDEFAULT;↵

36

          case EcorePackage.EATTRIBUTE__UNIQUE:↵

35

          case EcorePackage.ESTRUCTURAL_FEATURE__UNIQUE:↵

37

            return ((eFlags & UNIQUE_EFLAG) != 0) != UNIQUE_EDEFAULT;↵

36

            return ((eFlags & UNIQUE_EFLAG) != 0) != UNIQUE_EDEFAULT;↵

38

          case EcorePackage.EATTRIBUTE__LOWER_BOUND:↵

37

          case EcorePackage.ESTRUCTURAL_FEATURE__LOWER_BOUND:↵

39

            return lowerBound != LOWER_BOUND_EDEFAULT;↵

38

            return lowerBound != LOWER_BOUND_EDEFAULT;↵

40

          case EcorePackage.EATTRIBUTE__UPPER_BOUND:↵

39

          case EcorePackage.ESTRUCTURAL_FEATURE__UPPER_BOUND:↵

41

            return upperBound != UPPER_BOUND_EDEFAULT;↵

40

            return upperBound != UPPER_BOUND_EDEFAULT;↵

42

          case EcorePackage.EATTRIBUTE__MANY:↵

41

          case EcorePackage.ESTRUCTURAL_FEATURE__MANY:↵

43

            return isMany() != MANY_EDEFAULT;↵

42

            return isMany() != MANY_EDEFAULT;↵

44

          case EcorePackage.EATTRIBUTE__REQUIRED:↵

43

          case EcorePackage.ESTRUCTURAL_FEATURE__REQUIRED:↵

45

            return isRequired() != REQUIRED_EDEFAULT;↵

44

            return isRequired() != REQUIRED_EDEFAULT;↵

46

          case EcorePackage.EATTRIBUTE__ETYPE:↵

45

          case EcorePackage.ESTRUCTURAL_FEATURE__ETYPE:↵

47

            return isSetEType();↵

46

            return isSetEType();↵

48

          case EcorePackage.EATTRIBUTE__EGENERIC_TYPE:↵

47

          case EcorePackage.ESTRUCTURAL_FEATURE__EGENERIC_TYPE:↵

49

            return isSetEGenericType();↵

48

            return isSetEGenericType();↵

50

          case EcorePackage.EATTRIBUTE__CHANGEABLE:↵

49

          case EcorePackage.ESTRUCTURAL_FEATURE__CHANGEABLE:↵

51

            return ((eFlags & CHANGEABLE_EFLAG) != 0) != CHANGEABLE_EDEFAULT;↵

50

            return ((eFlags & CHANGEABLE_EFLAG) != 0) != CHANGEABLE_EDEFAULT;↵

52

          case

51

          case

See real code fragment |  | See real code fragment

Summary
Number of common nesting structure subtrees | 0
Number of refactorable cases | 0
Number of non-refactorable cases | 0
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0
Clones location |
Number of node comparisons | 0