2152-10-19

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; }
XMLTypeResourceImpl.DataFrame pushIDREF(XMLTypeResourceImpl.StackFrame previous, Attributes attributes) { XMLTypeResourceImpl.DataFrame resultIDREF = idref == null ? new XMLTypeResourceImpl.DataFrame() : idref; idref = null; resultIDREF.pushOnto(previous); resultIDREF.handleAttributes(attributes); return resultIDREF; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public String popIDREF(XMLTypeResourceImpl.DataFrame idref) { String resultIDREFValue = XMLTypeFactory.eINSTANCE.createIDREF(idref.popValue()); this.idref = idref; return resultIDREFValue; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public XMLTypeResourceImpl.DataFrame pushIDREFS(XMLTypeResourceImpl.StackFrame previous, Attributes attributes) { XMLTypeResourceImpl.DataFrame resultIDREFS = idrefs == null ? new XMLTypeResourceImpl.DataFrame() : idrefs; idrefs = null; resultIDREFS.pushOnto(previous); resultIDREFS.handleAttributes(attributes); return resultIDREFS; }

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 pushDate(XMLTypeResourceImpl.StackFrame previous, Attributes attributes)↵

1

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

2

        {↵

2

        {↵

3

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

3

           XMLTypeResourceImpl.DataFrame resultIDREF = idref == null ? new XMLTypeResourceImpl.DataFrame() : idref;↵

4

           date = null;↵

4

           idref = null;↵

5

           resultDate.pushOnto(previous);↵

5

           resultIDREF.pushOnto(previous);↵

6

           resultDate.handleAttributes(attributes);↵

6

           resultIDREF.handleAttributes(attributes);↵

7

           return resultDate;↵

7

           return resultIDREF;↵

8

        }↵

8

        }↵

9

        /**↵

9

        /**↵

10

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

10

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

11

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

11

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

12

         * @generated↵

12

         * @generated↵

13

         */↵

13

         */↵

14

        public XMLGregorianCalendar popDate(XMLTypeResourceImpl.DataFrame date)↵

14

        public String popIDREF(XMLTypeResourceImpl.DataFrame idref)↵

15

        {↵

15

        {↵

16

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

16

          String resultIDREFValue = XMLTypeFactory.eINSTANCE.createIDREF(idref.popValue());↵

17

          this.date = date;↵

17

          this.idref = idref;↵

18

          return resultDateValue;↵

18

          return resultIDREFValue;↵

19

        }↵

19

        }↵

20

        /**↵

20

        /**↵

21

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

21

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

22

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

22

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

23

         * @generated↵

23

         * @generated↵

24

         */↵

24

         */↵

25

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

25

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

26

        {↵

26

        {↵

27

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

27

           XMLTypeResourceImpl.DataFrame resultIDREFS = idrefs == null ? new XMLTypeResourceImpl.DataFrame() : idrefs;↵

28

           dateTime = null;↵

28

           idrefs = null;↵

29

           resultDateTime.pushOnto(previous);↵

29

           resultIDREFS.pushOnto(previous);↵

30

           resultDateTime.handleAttributes(attributes);↵

30

           resultIDREFS.handleAttributes(attributes);↵

31

           return resultDateTime;↵

31

           return resultIDREFS;↵

32

        }

32

        }

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