protected Map<EObject, Collection<EStructuralFeature.Setting>> findProxyCrossReferences() { crossReference(); done(); return this; } /** * Returns a map of all proxy references from the specified content tree. * @param eObject an object whose content trees should be considered. * @return a map of cross references. */ public static Map<EObject, Collection<EStructuralFeature.Setting>> find(EObject eObject) { return new ProxyCrossReferencer(eObject).findProxyCrossReferences(); } /** * Returns a map of all proxy references from the specified content tree. * @param resource a resource whose content tree should be considered. * @return a map of cross references. */ public static Map<EObject, Collection<EStructuralFeature.Setting>> find(Resource resource) { return new ProxyCrossReferencer(resource).findProxyCrossReferences(); } /** * Returns a map of all proxy references from the specified content tree. * @param resourceSet a resourceSet whose content tree should be considered. * @return a map of cross references. */ public static Map<EObject, Collection<EStructuralFeature.Setting>> find(ResourceSet resourceSet) { return new ProxyCrossReferencer(resourceSet).findProxyCrossReferences(); } /** * Returns a map of all proxy references from the specified content tree. * @param emfObjects a collection of objects whose combined content trees should be considered. * @return a map of cross references. */ public static Map<EObject, Collection<EStructuralFeature.Setting>> find(Collection<?> emfObjects) { return new ProxyCrossReferencer(emfObjects).findProxyCrossReferences();
protected Map<EObject, Collection<EStructuralFeature.Setting>> findUnresolvedProxyCrossReferences() { crossReference(); done(); return this; } /** * Returns a map of all unresolvable proxies from the specified content tree. * @param eObject an object whose content trees should be considered. * @return a map of cross references. */ public static Map<EObject, Collection<EStructuralFeature.Setting>> find(EObject eObject) { return new UnresolvedProxyCrossReferencer(eObject).findUnresolvedProxyCrossReferences(); } /** * Returns a map of all unresolvable proxies from the specified content tree. * @param resource a resource whose content tree should be considered. * @return a map of cross references. */ public static Map<EObject, Collection<EStructuralFeature.Setting>> find(Resource resource) { return new UnresolvedProxyCrossReferencer(resource).findUnresolvedProxyCrossReferences(); } /** * Returns a map of all unresolvable proxies from the specified content tree. * @param resourceSet a resourceSet whose content tree should be considered. * @return a map of cross references. */ public static Map<EObject, Collection<EStructuralFeature.Setting>> find(ResourceSet resourceSet) { return new UnresolvedProxyCrossReferencer(resourceSet).findUnresolvedProxyCrossReferences(); } /** * Returns a map of all unresolvable proxies from the specified content tree. * @param emfObjects a collection of objects whose combined content trees should be considered. * @return a map of cross references. */ public static Map<EObject, Collection<EStructuralFeature.Setting>> find(Collection<?> emfObjects) { return new UnresolvedProxyCrossReferencer(emfObjects).findUnresolvedProxyCrossReferences();
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/util/EcoreUtil.java File path: /emf-2.4.1/src/org/eclipse/emf/ecore/util/EcoreUtil.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
protected Map<EObject, Collection<EStructuralFeature.Setting>> findProxyCrossReferences()
1
protected Map<EObject, Collection<EStructuralFeature.Setting>> findUnresolvedProxyCrossReferences()
2
    {
2
    {
3
      crossReference();
3
      crossReference();
4
      done();
4
      done();
5
      return this;
5
      return this;
6
    }
6
    }
7
    /**
7
    /**
8
     * Returns a map of all proxy references from the specified content tree.
8
     * Returns a map of all unresolvable proxies from the specified content tree.
9
     * @param eObject an object whose content trees should be considered.
9
     * @param eObject an object whose content trees should be considered.
10
     * @return a map of cross references.
10
     * @return a map of cross references.
11
     */
11
     */
12
    public static Map<EObject, Collection<EStructuralFeature.Setting>> find(EObject eObject)
12
    public static Map<EObject, Collection<EStructuralFeature.Setting>> find(EObject eObject)
13
    {
13
    {
14
      return new ProxyCrossReferencer(eObject).findProxyCrossReferences();
14
      return new UnresolvedProxyCrossReferencer(eObject).findUnresolvedProxyCrossReferences();
15
    }
15
    }
16
    /**
16
    /**
17
     * Returns a map of all proxy references from the specified content tree.
17
     * Returns a map of all unresolvable proxies from the specified content tree.
18
     * @param resource a resource whose content tree should be considered.
18
     * @param resource a resource whose content tree should be considered.
19
     * @return a map of cross references.
19
     * @return a map of cross references.
20
     */
20
     */
21
    public static Map<EObject, Collection<EStructuralFeature.Setting>> find(Resource resource)
21
    public static Map<EObject, Collection<EStructuralFeature.Setting>> find(Resource resource)
22
    {
22
    {
23
      return new ProxyCrossReferencer(resource).findProxyCrossReferences();
23
      return new UnresolvedProxyCrossReferencer(resource).findUnresolvedProxyCrossReferences();
24
    }
24
    }
25
    /**
25
    /**
26
     * Returns a map of all proxy references from the specified content tree.
26
     * Returns a map of all unresolvable proxies from the specified content tree.
27
     * @param resourceSet a resourceSet whose content tree should be considered.
27
     * @param resourceSet a resourceSet whose content tree should be considered.
28
     * @return a map of cross references.
28
     * @return a map of cross references.
29
     */
29
     */
30
    public static Map<EObject, Collection<EStructuralFeature.Setting>> find(ResourceSet resourceSet)
30
    public static Map<EObject, Collection<EStructuralFeature.Setting>> find(ResourceSet resourceSet)
31
    {
31
    {
32
      return new ProxyCrossReferencer(resourceSet).findProxyCrossReferences();
32
      return new UnresolvedProxyCrossReferencer(resourceSet).findUnresolvedProxyCrossReferences();
33
    }
33
    }
34
    /**
34
    /**
35
     * Returns a map of all proxy references from the specified content tree.
35
     * Returns a map of all unresolvable proxies from the specified content tree.
36
     * @param emfObjects a collection of objects whose combined content trees should be considered.
36
     * @param emfObjects a collection of objects whose combined content trees should be considered.
37
     * @return a map of cross references.
37
     * @return a map of cross references.
38
     */
38
     */
39
    public static Map<EObject, Collection<EStructuralFeature.Setting>> find(Collection<?> emfObjects)
39
    public static Map<EObject, Collection<EStructuralFeature.Setting>> find(Collection<?> emfObjects)
40
    {
40
    {
41
      return new ProxyCrossReferencer(emfObjects).findProxyCrossReferences();
41
      return new UnresolvedProxyCrossReferencer(emfObjects).findUnresolvedProxyCrossReferences();
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0