10364-1-2

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 EcorePackage.EATTRIBUTE__VOLATILE: return ((eFlags & VOLATILE_EFLAG) != 0) != VOLATILE_EDEFAULT; case
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 EcorePackage.ESTRUCTURAL_FEATURE__VOLATILE: return ((eFlags & VOLATILE_EFLAG) != 0) != VOLATILE_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__TRANSIENT:↵

2

            setTransient(TRANSIENT_EDEFAULT);↵

3

            return;↵

2

    E__DEFAULT_VALUE_LITERAL:↵

4

          case EcorePackage.ESTRUCTURAL_FEATURE__DEFAULT_VALUE_LITERAL:↵

3

            setDefaultValueLiteral(DEFAULT_VALUE_LITERAL_EDEFAULT);↵

5

            setDefaultValueLiteral(DEFAULT_VALUE_LITERAL_EDEFAULT);↵

4

            return;↵

6

            return;↵

5

          case EcorePackage.EATTRIBUTE__UNSETTABLE:↵

7

          case EcorePackage.ESTRUCTURAL_FEATURE__UNSETTABLE:↵

6

            setUnsettable(UNSETTABLE_EDEFAULT);↵

8

            setUnsettable(UNSETTABLE_EDEFAULT);↵

7

            return;↵

9

            return;↵

8

          case EcorePackage.EATTRIBUTE__DERIVED:↵

10

          case EcorePackage.ESTRUCTURAL_FEATURE__DERIVED:↵

9

            setDerived(DERIVED_EDEFAULT);↵

11

            setDerived(DERIVED_EDEFAULT);↵

10

            return;↵

12

            return;↵

11

          case EcorePackage.EATTRIBUTE__ID:↵

12

            setID(ID_EDEFAULT);↵

13

            return;↵

14

        }↵

13

        }↵

15

        eDynamicUnset(featureID);↵

14

        eDynamicUnset(featureID);↵

16

      }↵

15

      }↵

17

      /**↵

16

      /**↵

18

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

17

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

19

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

18

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

20

       * @generated↵

19

       * @generated↵

21

       */↵

20

       */↵

22

      @Override↵

21

      @Override↵

23

      public boolean eIsSet(int featureID)↵

22

      public boolean eIsSet(int featureID)↵

24

      {↵

23

      {↵

25

        switch (featureID)↵

24

        switch (featureID)↵

26

        {↵

25

        {↵

27

          case EcorePackage.EATTRIBUTE__EANNOTATIONS:↵

26

          case EcorePackage.ESTRUCTURAL_FEATURE__EANNOTATIONS:↵

28

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

27

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

29

          case EcorePackage.EATTRIBUTE__NAME:↵

28

          case EcorePackage.ESTRUCTURAL_FEATURE__NAME:↵

30

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

29

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

31

          case EcorePackage.EATTRIBUTE__ORDERED:↵

30

          case EcorePackage.ESTRUCTURAL_FEATURE__ORDERED:↵

32

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

31

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

33

          case EcorePackage.EATTRIBUTE__UNIQUE:↵

32

          case EcorePackage.ESTRUCTURAL_FEATURE__UNIQUE:↵

34

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

33

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

35

          case EcorePackage.EATTRIBUTE__LOWER_BOUND:↵

34

          case EcorePackage.ESTRUCTURAL_FEATURE__LOWER_BOUND:↵

36

            return lowerBound != LOWER_BOUND_EDEFAULT;↵

35

            return lowerBound != LOWER_BOUND_EDEFAULT;↵

37

          case EcorePackage.EATTRIBUTE__UPPER_BOUND:↵

36

          case EcorePackage.ESTRUCTURAL_FEATURE__UPPER_BOUND:↵

38

            return upperBound != UPPER_BOUND_EDEFAULT;↵

37

            return upperBound != UPPER_BOUND_EDEFAULT;↵

39

          case EcorePackage.EATTRIBUTE__MANY:↵

38

          case EcorePackage.ESTRUCTURAL_FEATURE__MANY:↵

40

            return isMany() != MANY_EDEFAULT;↵

39

            return isMany() != MANY_EDEFAULT;↵

41

          case EcorePackage.EATTRIBUTE__REQUIRED:↵

40

          case EcorePackage.ESTRUCTURAL_FEATURE__REQUIRED:↵

42

            return isRequired() != REQUIRED_EDEFAULT;↵

41

            return isRequired() != REQUIRED_EDEFAULT;↵

43

          case EcorePackage.EATTRIBUTE__ETYPE:↵

42

          case EcorePackage.ESTRUCTURAL_FEATURE__ETYPE:↵

44

            return isSetEType();↵

43

            return isSetEType();↵

45

          case EcorePackage.EATTRIBUTE__EGENERIC_TYPE:↵

44

          case EcorePackage.ESTRUCTURAL_FEATURE__EGENERIC_TYPE:↵

46

            return isSetEGenericType();↵

45

            return isSetEGenericType();↵

47

          case EcorePackage.EATTRIBUTE__CHANGEABLE:↵

46

          case EcorePackage.ESTRUCTURAL_FEATURE__CHANGEABLE:↵

48

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

47

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

49

          case EcorePackage.EATTRIBUTE__VOLATILE:↵

48

          case EcorePackage.ESTRUCTURAL_FEATURE__VOLATILE:↵

50

            return ((eFlags & VOLATILE_EFLAG) != 0) != VOLATILE_EDEFAULT;↵

49

            return ((eFlags & VOLATILE_EFLAG) != 0) != VOLATILE_EDEFAULT;↵

51

          case

50

          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