File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xml/type/impl/XMLTypeDocumentRootImpl.java | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xml/namespace/impl/XMLNamespaceDocumentRootImpl.java | |||
Method name: Object eGet(int, boolean, boolean)
|
Method name: Object eGet(int, boolean, boolean)
|
|||
Number of AST nodes: 22 | Number of AST nodes: 22 | |||
1 | switch (featureID)↵ | 1 | switch (featureID)↵ | |
2 | {↵ | 2 | {↵ | |
3 | case XMLTypePackage.XML_TYPE_DOCUMENT_ROOT__MIXED:↵ | 3 | case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__MIXED:↵ | |
4 | if (coreType) return getMixed();↵ | 4 | if (coreType) return getMixed();↵ | |
5 | return ((FeatureMap.Internal)getMixed()).getWrapper();↵ | 5 | return ((FeatureMap.Internal)getMixed()).getWrapper();↵ | |
6 | case XMLTypePackage.XML_TYPE_DOCUMENT_ROOT__XMLNS_PREFIX_MAP:↵ | 6 | case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__XMLNS_PREFIX_MAP:↵ | |
7 | if (coreType) return getXMLNSPrefixMap();↵ | 7 | if (coreType) return getXMLNSPrefixMap();↵ | |
8 | else return getXMLNSPrefixMap().map();↵ | 8 | else return getXMLNSPrefixMap().map();↵ | |
9 | case XMLTypePackage.XML_TYPE_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:↵ | 9 | case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:↵ | |
10 | if (coreType) return getXSISchemaLocation();↵ | 10 | if (coreType) return getXSISchemaLocation();↵ | |
11 | else return getXSISchemaLocation().map();↵ | 11 | else return getXSISchemaLocation().map();↵ | |
12 | case XMLTypePackage.XML_TYPE_DOCUMENT_ROOT__CDATA:↵ | 12 | case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__BASE:↵ | |
13 | return getCDATA();↵ | 13 | return getBase();↵ | |
14 | case XMLTypePackage.XML_TYPE_DOCUMENT_ROOT__COMMENT:↵ | 14 | case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__ID:↵ | |
15 | return getComment();↵ | 15 | return getId();↵ | |
16 | case XMLTypePackage.XML_TYPE_DOCUMENT_ROOT__PROCESSING_INSTRUCTION:↵ | 16 | case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__↵ | |
17 | return getProcessingInstruction↵ | 17 | LANG:↵ | |
18 | ();↵ | 18 | return getLang();↵ | |
19 | case XMLTypePackage.XML_TYPE_DOCUMENT_ROOT__TEXT:↵ | 19 | case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__SPACE:↵ | |
20 | return getText();↵ | 20 | return getSpace();↵ | |
21 | }↵ | 21 | }↵ | |
22 | return eDynamicGet(featureID, resolve, coreType); | 22 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.3 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 137 |
Number of mapped statements | 18 |
Number of unmapped statements in the first code fragment | 4 |
Number of unmapped statements in the second code fragment | 4 |
Time elapsed for statement mapping (ms) | 7.1 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | switch (featureID) | 1 | switch (featureID) | |||||||||||||||
2 | case XMLTypePackage.XML_TYPE_DOCUMENT_ROOT__MIXED: |
| 2 | case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__MIXED: | ||||||||||||||
3 | if (coreType) | 3 | if (coreType) | |||||||||||||||
4 | return getMixed(); | 4 | return getMixed(); | |||||||||||||||
5 | return ((FeatureMap.Internal)getMixed()).getWrapper(); | 5 | return ((FeatureMap.Internal)getMixed()).getWrapper(); | |||||||||||||||
6 | case XMLTypePackage.XML_TYPE_DOCUMENT_ROOT__XMLNS_PREFIX_MAP: |
| 6 | case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__XMLNS_PREFIX_MAP: | ||||||||||||||
7 | if (coreType) | 7 | if (coreType) | |||||||||||||||
8 | return getXMLNSPrefixMap(); | 8 | return getXMLNSPrefixMap(); | |||||||||||||||
else | else | |||||||||||||||||
9 | return getXMLNSPrefixMap().map(); | 9 | return getXMLNSPrefixMap().map(); | |||||||||||||||
10 | case XMLTypePackage.XML_TYPE_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: |
| 10 | case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: | ||||||||||||||
11 | if (coreType) | 11 | if (coreType) | |||||||||||||||
12 | return getXSISchemaLocation(); | 12 | return getXSISchemaLocation(); | |||||||||||||||
else | else | |||||||||||||||||
13 | return getXSISchemaLocation().map(); | 13 | return getXSISchemaLocation().map(); | |||||||||||||||
14 | case XMLTypePackage.XML_TYPE_DOCUMENT_ROOT__CDATA: |
| 14 | case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__BASE: | ||||||||||||||
|
| 15 | return getBase(); | |||||||||||||||
15 | return getCDATA(); |
| | |||||||||||||||
16 | case XMLTypePackage.XML_TYPE_DOCUMENT_ROOT__COMMENT: |
| 16 | case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__ID: | ||||||||||||||
|
| 17 | return getId(); | |||||||||||||||
17 | return getComment(); |
| | |||||||||||||||
18 | case XMLTypePackage.XML_TYPE_DOCUMENT_ROOT__PROCESSING_INSTRUCTION: |
| 18 | case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__LANG: | ||||||||||||||
|
| 19 | return getLang(); | |||||||||||||||
19 | return getProcessingInstruction(); |
| | |||||||||||||||
20 | case XMLTypePackage.XML_TYPE_DOCUMENT_ROOT__TEXT: |
| 20 | case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__SPACE: | ||||||||||||||
|
| 21 | return getSpace(); | |||||||||||||||
21 | return getText(); |
| | |||||||||||||||
22 | return eDynamicGet(featureID, resolve, coreType); | 22 | return eDynamicGet(featureID, resolve, coreType); |
Row | Violation |
---|---|
1 | Type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage does not match with type org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage of variable XMLNamespacePackage |
2 | Type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage does not match with type org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage of variable XMLNamespacePackage |
3 | Type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage does not match with type org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage of variable XMLNamespacePackage |
4 | Type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage does not match with type org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage of variable XMLNamespacePackage |
5 | Unmatched return getBase(); |
6 | Unmatched return getCDATA(); |
7 | Type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage does not match with type org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage of variable XMLNamespacePackage |
8 | Unmatched return getId(); |
9 | Unmatched return getComment(); |
10 | Type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage does not match with type org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage of variable XMLNamespacePackage |
11 | Unmatched return getLang(); |
12 | Unmatched return getProcessingInstruction(); |
13 | Type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage does not match with type org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage of variable XMLNamespacePackage |
14 | Unmatched return getSpace(); |
15 | Unmatched return getText(); |