2160-7-15

XMLTypeResourceImpl.DataFrame pushPositiveInteger(XMLTypeResourceImpl.StackFrame previous, Attributes attributes) { XMLTypeResourceImpl.DataFrame resultPositiveInteger = positiveInteger == null ? new XMLTypeResourceImpl.DataFrame() : positiveInteger; positiveInteger = null; resultPositiveInteger.pushOnto(previous); resultPositiveInteger.handleAttributes(attributes); return resultPositiveInteger; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public BigInteger popPositiveInteger(XMLTypeResourceImpl.DataFrame positiveInteger) { BigInteger resultPositiveIntegerValue = XMLTypeFactory.eINSTANCE.createPositiveInteger(positiveInteger.popValue()); this.positiveInteger = positiveInteger; return resultPositiveIntegerValue; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public XMLTypeResourceImpl.DataFrame pushQName(XMLTypeResourceImpl.StackFrame previous, Attributes attributes) { XMLTypeResourceImpl.DataFrame resultQName = qName == null ? new XMLTypeResourceImpl.DataFrame() : qName; qName = null; resultQName.pushOnto(previous); resultQName.handleAttributes(attributes); return resultQName; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public QName popQName(XMLTypeResourceImpl.DataFrame qName) { QName resultQNameValue = XMLTypeFactory.eINSTANCE.createQName(qName.popValue()); this.qName = qName; return resultQNameValue; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public XMLTypeResourceImpl.DataFrame pushShort(XMLTypeResourceImpl.StackFrame previous, Attributes attributes) { XMLTypeResourceImpl.DataFrame resultShort = short_ == null ? new XMLTypeResourceImpl.DataFrame() : short_; short_ = null; resultShort.pushOnto(previous); resultShort.handleAttributes(attributes); return resultShort; }
XMLTypeResourceImpl.DataFrame pushByteObject(XMLTypeResourceImpl.StackFrame previous, Attributes attributes) { XMLTypeResourceImpl.DataFrame resultByteObject = byteObject == null ? new XMLTypeResourceImpl.DataFrame() : byteObject; byteObject = null; resultByteObject.pushOnto(previous); resultByteObject.handleAttributes(attributes); return resultByteObject; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Byte popByteObject(XMLTypeResourceImpl.DataFrame byteObject) { Byte resultByteObjectValue = XMLTypeFactory.eINSTANCE.createByteObject(byteObject.popValue()); this.byteObject = byteObject; return resultByteObjectValue; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public XMLTypeResourceImpl.DataFrame pushDate(XMLTypeResourceImpl.StackFrame previous, Attributes attributes) { XMLTypeResourceImpl.DataFrame resultDate = date == null ? new XMLTypeResourceImpl.DataFrame() : date; date = null; resultDate.pushOnto(previous); resultDate.handleAttributes(attributes); return resultDate; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public XMLGregorianCalendar popDate(XMLTypeResourceImpl.DataFrame date) { XMLGregorianCalendar resultDateValue = XMLTypeFactory.eINSTANCE.createDate(date.popValue()); this.date = date; return resultDateValue; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public XMLTypeResourceImpl.DataFrame pushDateTime(XMLTypeResourceImpl.StackFrame previous, Attributes attributes) { XMLTypeResourceImpl.DataFrame resultDateTime = dateTime == null ? new XMLTypeResourceImpl.DataFrame() : dateTime; dateTime = null; resultDateTime.pushOnto(previous); resultDateTime.handleAttributes(attributes); return resultDateTime; }

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

1

    XMLTypeResourceImpl.DataFrame pushPositiveInteger(XMLTypeResourceImpl.StackFrame previous, Attributes attributes)↵

1

    XMLTypeResourceImpl.DataFrame pushByteObject(XMLTypeResourceImpl.StackFrame previous, Attributes attributes)↵

2

        {↵

2

        {↵

3

           XMLTypeResourceImpl.DataFrame resultPositiveInteger = positiveInteger == null ? new XMLTypeResourceImpl.DataFrame() : positiveInteger;↵

3

           XMLTypeResourceImpl.DataFrame resultByteObject = byteObject == null ? new XMLTypeResourceImpl.DataFrame() : ↵

4

           positiveInteger↵

4

    byteObject;↵

5

     = null;↵

5

           byteObject = null;↵

6

           resultPositiveInteger.pushOnto(previous);↵

6

           resultByteObject.pushOnto(previous);↵

7

           resultPositiveInteger.handleAttributes(attributes);↵

7

           resultByteObject.handleAttributes(attributes);↵

8

           return resultPositiveInteger;↵

8

           return resultByteObject;↵

9

        }↵

9

        }↵

10

        /**↵

10

        /**↵

11

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

11

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

12

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

12

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

13

         * @generated↵

13

         * @generated↵

14

         */↵

14

         */↵

15

        public BigInteger popPositiveInteger(XMLTypeResourceImpl.DataFrame positiveInteger)↵

15

        public Byte popByteObject(XMLTypeResourceImpl.DataFrame ↵

16

        {↵

17

          BigInteger resultPositiveInteger↵

16

    byteObject)↵

17

        {↵

18

    Value = XMLTypeFactory.eINSTANCE.createPositiveInteger(positiveInteger.popValue());↵

18

          Byte resultByteObjectValue = XMLTypeFactory.eINSTANCE.create↵

19

          this.positiveInteger = positiveInteger↵

19

    ByteObject(byteObject.popValue());↵

20

    ;↵

20

          this.byteObject = byteObject;↵

21

          return resultPositiveIntegerValue;↵

21

          return resultByteObjectValue;↵

22

        }↵

22

        }↵

23

        /**↵

23

        /**↵

24

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

24

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

25

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

25

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

26

         * @generated↵

26

         * @generated↵

27

         */↵

27

         */↵

28

        public XMLTypeResourceImpl.DataFrame pushQName(XMLTypeResourceImpl.StackFrame previous, Attributes attributes)↵

28

        public XMLTypeResourceImpl.DataFrame pushDate(XMLTypeResourceImpl.StackFrame previous, Attributes attributes)↵

29

        {↵

29

        {↵

30

           XMLTypeResourceImpl.DataFrame resultQName = qName == null ? new XMLTypeResourceImpl.DataFrame() : qName;↵

30

           XMLTypeResourceImpl.DataFrame resultDate = date == null ? new XMLTypeResourceImpl.DataFrame() : date;↵

31

           qName = null;↵

31

           date = null;↵

32

           resultQName.pushOnto(previous);↵

32

           resultDate.pushOnto(previous);↵

33

           resultQName.handleAttributes(attributes);↵

33

           resultDate.handleAttributes(attributes);↵

34

           return resultQName;↵

34

           return resultDate;↵

35

        }↵

35

        }↵

36

        /**↵

36

        /**↵

37

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

37

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

38

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

38

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

39

         * @generated↵

39

         * @generated↵

40

         */↵

40

         */↵

41

        public QName popQName(XMLTypeResourceImpl.DataFrame qName)↵

41

        public XMLGregorianCalendar popDate(XMLTypeResourceImpl.DataFrame date)↵

42

        {↵

42

        {↵

43

          QName resultQNameValue = XMLTypeFactory.eINSTANCE.createQName(qName.popValue());↵

43

          XMLGregorianCalendar resultDateValue = XMLTypeFactory.eINSTANCE.createDate(date.popValue());↵

44

          this.qName = qName;↵

44

          this.date = date;↵

45

          return resultQNameValue;↵

45

          return resultDateValue;↵

46

        }↵

46

        }↵

47

        /**↵

47

        /**↵

48

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

48

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

49

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

49

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

50

         * @generated↵

50

         * @generated↵

51

         */↵

51

         */↵

52

        public XMLTypeResourceImpl.DataFrame pushShort(XMLTypeResourceImpl.StackFrame previous, Attributes attributes)↵

52

        public XMLTypeResourceImpl.DataFrame pushDateTime(XMLTypeResourceImpl.StackFrame previous, Attributes attributes)↵

53

        {↵

53

        {↵

54

           XMLTypeResourceImpl.DataFrame resultShort = short_ == null ? new XMLTypeResourceImpl.DataFrame() : short_;↵

54

           XMLTypeResourceImpl.DataFrame resultDateTime = dateTime == null ? new XMLTypeResourceImpl.DataFrame() : dateTime;↵

55

           short_ = null;↵

55

           dateTime = null;↵

56

           resultShort.pushOnto(previous);↵

56

           resultDateTime.pushOnto(previous);↵

57

           resultShort.handleAttributes(attributes);↵

57

           resultDateTime.handleAttributes(attributes);↵

58

           return resultShort;↵

58

           return resultDateTime;↵

59

        }

59

        }

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