CloneSet265


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9760.956class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
19277
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTMatcher.java
29599
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTMatcher.java
39624
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTMatcher.java
49744
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTMatcher.java
59938
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTMatcher.java
691261
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTMatcher.java
792091
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTMatcher.java
Clone Instance
1
Line Count
9
Source Line
277
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTMatcher.java

        /**
         * Returns whether the given node and the other object object match.
         * <p>
         * The default implementation provided by this class tests whether the
         * other object is a node of the same type with structurally isomorphic
         * child subtrees. Subclasses may override this method as needed.
         * </p>
         * 
         * @param node the node
         * @param other the other object, or <code>null</code>
         * @return <code>true</code> if the subtree matches, or 
         *   <code>false</code> if they do not match or the other object has a
         *   different node type or is <code>null</code>
         */
        public boolean match(ArrayCreation node, Object other) {
                if ( !(other instanceof ArrayCreation)) {
                        return false;
                }
                ArrayCreation o = (ArrayCreation) other;
                return (
                        safeSubtreeMatch(node.getType(), o.getType()) &&
                                   safeSubtreeListMatch(node.dimensions(), o.dimensions()) &&
                                   safeSubtreeMatch(node.getInitializer(), o.getInitializer()));
        }


Clone Instance
2
Line Count
9
Source Line
599
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTMatcher.java

        /**
         * Returns whether the given node and the other object match.
         * <p>
         * The default implementation provided by this class tests whether the
         * other object is a node of the same type with structurally isomorphic
         * child subtrees. Subclasses may override this method as needed.
         * </p>
         * 
         * @param node the node
         * @param other the other object, or <code>null</code>
         * @return <code>true</code> if the subtree matches, or 
         *   <code>false</code> if they do not match or the other object has a
         *   different node type or is <code>null</code>
         */
        public boolean match(CompilationUnit node, Object other) {
                if ( !(other instanceof CompilationUnit)) {
                        return false;
                }
                CompilationUnit o = (CompilationUnit) other;
                return (
                        safeSubtreeMatch(node.getPackage(), o.getPackage()) &&
                                   safeSubtreeListMatch(node.imports(), o.imports()) &&
                                   safeSubtreeListMatch(node.types(), o.types()));
        }


Clone Instance
3
Line Count
9
Source Line
624
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTMatcher.java

        /**
         * Returns whether the given node and the other object match.
         * <p>
         * The default implementation provided by this class tests whether the
         * other object is a node of the same type with structurally isomorphic
         * child subtrees. Subclasses may override this method as needed.
         * </p>
         * 
         * @param node the node
         * @param other the other object, or <code>null</code>
         * @return <code>true</code> if the subtree matches, or 
         *   <code>false</code> if they do not match or the other object has a
         *   different node type or is <code>null</code>
         */
        public boolean match(ConditionalExpression node, Object other) {
                if ( !(other instanceof ConditionalExpression)) {
                        return false;
                }
                ConditionalExpression o = (ConditionalExpression) other;
                return (
                        safeSubtreeMatch(node.getExpression(), o.getExpression()) &&
                                   safeSubtreeMatch(node.getThenExpression(), o.getThenExpression()) &&
                                   safeSubtreeMatch(node.getElseExpression(), o.getElseExpression()));
        }


Clone Instance
4
Line Count
9
Source Line
744
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTMatcher.java

        /**
         * Returns whether the given node and the other object match.
         * <p>
         * The default implementation provided by this class tests whether the
         * other object is a node of the same type with structurally isomorphic
         * child subtrees. Subclasses may override this method as needed.
         * </p>
         * 
         * @param node the node
         * @param other the other object, or <code>null</code>
         * @return <code>true</code> if the subtree matches, or 
         *   <code>false</code> if they do not match or the other object has a
         *   different node type or is <code>null</code>
         * @since 3.1
         */
        public boolean match(EnhancedForStatement node, Object other) {
                if ( !(other instanceof EnhancedForStatement)) {
                        return false;
                }
                EnhancedForStatement o = (EnhancedForStatement) other;
                return (
                        safeSubtreeMatch(node.getParameter(), o.getParameter()) &&
                                   safeSubtreeMatch(node.getExpression(), o.getExpression()) &&
                                   safeSubtreeMatch(node.getBody(), o.getBody()));
        }


Clone Instance
5
Line Count
9
Source Line
938
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTMatcher.java

        /**
         * Returns whether the given node and the other object match.
         * <p>
         * The default implementation provided by this class tests whether the
         * other object is a node of the same type with structurally isomorphic
         * child subtrees. Subclasses may override this method as needed.
         * </p>
         * 
         * @param node the node
         * @param other the other object, or <code>null</code>
         * @return <code>true</code> if the subtree matches, or 
         *   <code>false</code> if they do not match or the other object has a
         *   different node type or is <code>null</code>
         */
        public boolean match(IfStatement node, Object other) {
                if ( !(other instanceof IfStatement)) {
                        return false;
                }
                IfStatement o = (IfStatement) other;
                return (
                        safeSubtreeMatch(node.getExpression(), o.getExpression()) &&
                                   safeSubtreeMatch(node.getThenStatement(), o.getThenStatement()) &&
                                   safeSubtreeMatch(node.getElseStatement(), o.getElseStatement()));
        }


Clone Instance
6
Line Count
9
Source Line
1261
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTMatcher.java

        /**
         * Returns whether the given node and the other object match.
         * <p>
         * The default implementation provided by this class tests whether the
         * other object is a node of the same type with structurally isomorphic
         * child subtrees. Subclasses may override this method as needed.
         * </p>
         * 
         * @param node the node
         * @param other the other object, or <code>null</code>
         * @return <code>true</code> if the subtree matches, or 
         *   <code>false</code> if they do not match or the other object has a
         *   different node type or is <code>null</code>
         * @since 3.0
         */
        public boolean match(MethodRef node, Object other) {
                if ( !(other instanceof MethodRef)) {
                        return false;
                }
                MethodRef o = (MethodRef) other;
                return (
                                safeSubtreeMatch(node.getQualifier(), o.getQualifier()) &&
                                   safeSubtreeMatch(node.getName(), o.getName()) &&
                           safeSubtreeListMatch(node.parameters(), o.parameters()));
        }


Clone Instance
7
Line Count
9
Source Line
2091
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTMatcher.java

        /**
         * Returns whether the given node and the other object match.
         * <p>
         * The default implementation provided by this class tests whether the
         * other object is a node of the same type with structurally isomorphic
         * child subtrees. Subclasses may override this method as needed.
         * </p>
         * 
         * @param node the node
         * @param other the other object, or <code>null</code>
         * @return <code>true</code> if the subtree matches, or 
         *   <code>false</code> if they do not match or the other object has a
         *   different node type or is <code>null</code>
         */
        public boolean match(TryStatement node, Object other) {
                if ( !(other instanceof TryStatement)) {
                        return false;
                }
                TryStatement o = (TryStatement) other;
                return (
                        safeSubtreeMatch(node.getBody(), o.getBody()) &&
                                   safeSubtreeListMatch(node.catchClauses(), o.catchClauses()) &&
                                   safeSubtreeMatch(node.getFinally(), o.getFinally()));
        }


Clone AbstractionParameter Count: 6Parameter Bindings

/**
         * Returns whether the given node and the other object object match.
         * <p>
         * The default implementation provided by this class tests whether the
         * other object is a node of the same type with structurally isomorphic
         * child subtrees. Subclasses may override this method as needed.
         * </p>
         * 
         * @param node the node
         * @param other the other object, or <code>null</code>
         * @return <code>true</code> if the subtree matches, or 
         *   <code>false</code> if they do not match or the other object has a
         *   different node type or is <code>null</code>
         */
/**
         * Returns whether the given node and the other object match.
         * <p>
         * The default implementation provided by this class tests whether the
         * other object is a node of the same type with structurally isomorphic
         * child subtrees. Subclasses may override this method as needed.
         * </p>
         * 
         * @param node the node
         * @param other the other object, or <code>null</code>
         * @return <code>true</code> if the subtree matches, or 
         *   <code>false</code> if they do not match or the other object has a
         *   different node type or is <code>null</code>
         */
/**
         * Returns whether the given node and the other object match.
         * <p>
         * The default implementation provided by this class tests whether the
         * other object is a node of the same type with structurally isomorphic
         * child subtrees. Subclasses may override this method as needed.
         * </p>
         * 
         * @param node the node
         * @param other the other object, or <code>null</code>
         * @return <code>true</code> if the subtree matches, or 
         *   <code>false</code> if they do not match or the other object has a
         *   different node type or is <code>null</code>
         * @since 3.1
         */
/**
         * Returns whether the given node and the other object match.
         * <p>
         * The default implementation provided by this class tests whether the
         * other object is a node of the same type with structurally isomorphic
         * child subtrees. Subclasses may override this method as needed.
         * </p>
         * 
         * @param node the node
         * @param other the other object, or <code>null</code>
         * @return <code>true</code> if the subtree matches, or 
         *   <code>false</code> if they do not match or the other object has a
         *   different node type or is <code>null</code>
         * @since 3.0
         */
public boolean match( [[#variable957bf820]] node, Object other) {
  if ( !(other instanceof [[#variable957bf820]])) {
    return false;
  }
   [[#variable957bf820]] o = ( [[#variable957bf820]]) other;
  return (safeSubtreeMatch(node. [[#variable957bf7a0]](), o. [[#variable957bf7a0]]()) && [[#variable957bf700]](node. [[#variable957bf680]](), o. [[#variable957bf680]]()) && [[#variable957bf600]](node. [[#variable957bf560]](), o. [[#variable957bf560]]()));
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#957bf820]]
ArrayCreation 
12[[#957bf820]]
CompilationUnit 
13[[#957bf820]]
ConditionalExpression 
14[[#957bf820]]
EnhancedForStatement 
15[[#957bf820]]
IfStatement 
16[[#957bf820]]
MethodRef 
17[[#957bf820]]
TryStatement 
21[[#957bf7a0]]
getType 
22[[#957bf7a0]]
getPackage 
23[[#957bf7a0]]
getExpression 
24[[#957bf7a0]]
getParameter 
25[[#957bf7a0]]
getExpression 
26[[#957bf7a0]]
getQualifier 
27[[#957bf7a0]]
getBody 
31[[#957bf700]]
safeSubtreeListMatch 
32[[#957bf700]]
safeSubtreeListMatch 
33[[#957bf700]]
safeSubtreeMatch 
34[[#957bf700]]
safeSubtreeMatch 
35[[#957bf700]]
safeSubtreeMatch 
36[[#957bf700]]
safeSubtreeMatch 
37[[#957bf700]]
safeSubtreeListMatch 
41[[#957bf680]]
dimensions 
42[[#957bf680]]
imports 
43[[#957bf680]]
getThenExpression 
44[[#957bf680]]
getExpression 
45[[#957bf680]]
getThenStatement 
46[[#957bf680]]
getName 
47[[#957bf680]]
catchClauses 
51[[#957bf600]]
safeSubtreeMatch 
52[[#957bf600]]
safeSubtreeListMatch 
53[[#957bf600]]
safeSubtreeMatch 
54[[#957bf600]]
safeSubtreeMatch 
55[[#957bf600]]
safeSubtreeMatch 
56[[#957bf600]]
safeSubtreeListMatch 
57[[#957bf600]]
safeSubtreeMatch 
61[[#957bf560]]
getInitializer 
62[[#957bf560]]
types 
63[[#957bf560]]
getElseExpression 
64[[#957bf560]]
getBody 
65[[#957bf560]]
getElseStatement 
66[[#957bf560]]
parameters 
67[[#957bf560]]
getFinally