Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
8 | 19 | 5 | 0.955 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 8 | 253 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTMatcher.java |
2 | 8 | 346 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTMatcher.java |
3 | 8 | 488 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTMatcher.java |
4 | 8 | 512 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTMatcher.java |
5 | 8 | 698 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTMatcher.java |
6 | 8 | 852 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTMatcher.java |
7 | 8 | 1026 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTMatcher.java |
8 | 8 | 1137 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTMatcher.java |
9 | 8 | 1212 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTMatcher.java |
10 | 7 | 1237 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTMatcher.java |
11 | 7 | 1429 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTMatcher.java |
12 | 8 | 1641 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTMatcher.java |
13 | 8 | 1666 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTMatcher.java |
14 | 7 | 1757 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTMatcher.java |
15 | 8 | 1875 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTMatcher.java |
16 | 8 | 1951 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTMatcher.java |
17 | 8 | 1975 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTMatcher.java |
18 | 8 | 2000 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTMatcher.java |
19 | 8 | 2332 | 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(ArrayAccess node, Object other) { if ( !(other instanceof ArrayAccess)) { return false; } ArrayAccess o = (ArrayAccess) other; return ( safeSubtreeMatch(node.getArray(), o.getArray()) && safeSubtreeMatch(node.getIndex(), o.getIndex())); } |
| ||||
/** * 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(AssertStatement node, Object other) { if ( !(other instanceof AssertStatement)) { return false; } AssertStatement o = (AssertStatement) other; return ( safeSubtreeMatch(node.getExpression(), o.getExpression()) && safeSubtreeMatch(node.getMessage(), o.getMessage())); } |
| ||||
/** * 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(CastExpression node, Object other) { if ( !(other instanceof CastExpression)) { return false; } CastExpression o = (CastExpression) other; return ( safeSubtreeMatch(node.getType(), o.getType()) && safeSubtreeMatch(node.getExpression(), o.getExpression())); } |
| ||||
/** * 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(CatchClause node, Object other) { if ( !(other instanceof CatchClause)) { return false; } CatchClause o = (CatchClause) other; return ( safeSubtreeMatch(node.getException(), o.getException()) && safeSubtreeMatch(node.getBody(), o.getBody())); } |
| ||||
/** * 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(DoStatement node, Object other) { if ( !(other instanceof DoStatement)) { return false; } DoStatement o = (DoStatement) other; return ( safeSubtreeMatch(node.getExpression(), o.getExpression()) && safeSubtreeMatch(node.getBody(), o.getBody())); } |
| ||||
/** * 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(FieldAccess node, Object other) { if ( !(other instanceof FieldAccess)) { return false; } FieldAccess o = (FieldAccess) other; return ( safeSubtreeMatch(node.getExpression(), o.getExpression()) && safeSubtreeMatch(node.getName(), o.getName())); } |
| ||||
/** * 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(InstanceofExpression node, Object other) { if ( !(other instanceof InstanceofExpression)) { return false; } InstanceofExpression o = (InstanceofExpression) other; return ( safeSubtreeMatch(node.getLeftOperand(), o.getLeftOperand()) && safeSubtreeMatch(node.getRightOperand(), o.getRightOperand())); } |
| ||||
/** * 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(LabeledStatement node, Object other) { if ( !(other instanceof LabeledStatement)) { return false; } LabeledStatement o = (LabeledStatement) other; return ( safeSubtreeMatch(node.getLabel(), o.getLabel()) && safeSubtreeMatch(node.getBody(), o.getBody())); } |
| ||||
/** * 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(MemberRef node, Object other) { if ( !(other instanceof MemberRef)) { return false; } MemberRef o = (MemberRef) other; return ( safeSubtreeMatch(node.getQualifier(), o.getQualifier()) && safeSubtreeMatch(node.getName(), o.getName())); } |
| ||||
/** * 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(MemberValuePair node, Object other) { if ( !(other instanceof MemberValuePair)) { return false; } MemberValuePair o = (MemberValuePair) other; return (safeSubtreeMatch(node.getName(), o.getName()) && safeSubtreeMatch(node.getValue(), o.getValue())); } |
| ||||
/** * 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(NormalAnnotation node, Object other) { if ( !(other instanceof NormalAnnotation)) { return false; } NormalAnnotation o = (NormalAnnotation) other; return (safeSubtreeMatch(node.getTypeName(), o.getTypeName()) && safeSubtreeListMatch(node.values(), o.values())); } |
| ||||
/** * 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(QualifiedName node, Object other) { if ( !(other instanceof QualifiedName)) { return false; } QualifiedName o = (QualifiedName) other; return ( safeSubtreeMatch(node.getQualifier(), o.getQualifier()) && safeSubtreeMatch(node.getName(), o.getName())); } |
| ||||
/** * 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(QualifiedType node, Object other) { if ( !(other instanceof QualifiedType)) { return false; } QualifiedType o = (QualifiedType) other; return ( safeSubtreeMatch(node.getQualifier(), o.getQualifier()) && safeSubtreeMatch(node.getName(), o.getName())); } |
| ||||
/** * 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(SingleMemberAnnotation node, Object other) { if ( !(other instanceof SingleMemberAnnotation)) { return false; } SingleMemberAnnotation o = (SingleMemberAnnotation) other; return (safeSubtreeMatch(node.getTypeName(), o.getTypeName()) && safeSubtreeMatch(node.getValue(), o.getValue())); } |
| ||||
/** * 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(SuperFieldAccess node, Object other) { if ( !(other instanceof SuperFieldAccess)) { return false; } SuperFieldAccess o = (SuperFieldAccess) other; return ( safeSubtreeMatch(node.getName(), o.getName()) && safeSubtreeMatch(node.getQualifier(), o.getQualifier())); } |
| ||||
/** * 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(SwitchStatement node, Object other) { if ( !(other instanceof SwitchStatement)) { return false; } SwitchStatement o = (SwitchStatement) other; return ( safeSubtreeMatch(node.getExpression(), o.getExpression()) && safeSubtreeListMatch(node.statements(), o.statements())); } |
| ||||
/** * 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(SynchronizedStatement node, Object other) { if ( !(other instanceof SynchronizedStatement)) { return false; } SynchronizedStatement o = (SynchronizedStatement) other; return ( safeSubtreeMatch(node.getExpression(), o.getExpression()) && safeSubtreeMatch(node.getBody(), o.getBody())); } |
| ||||
/** * 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(TagElement node, Object other) { if ( !(other instanceof TagElement)) { return false; } TagElement o = (TagElement) other; return ( safeEquals(node.getTagName(), o.getTagName()) && safeSubtreeListMatch(node.fragments(), o.fragments())); } |
| ||||
/** * 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(WhileStatement node, Object other) { if ( !(other instanceof WhileStatement)) { return false; } WhileStatement o = (WhileStatement) other; return ( safeSubtreeMatch(node.getExpression(), o.getExpression()) && safeSubtreeMatch(node.getBody(), o.getBody())); } |
| |||
/** * 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.0 */ /** * 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( [[#variablebc00bea0]] node, Object other) { if ( !(other instanceof [[#variablebc00bea0]])) { return false; } [[#variablebc00bea0]] o = ( [[#variablebc00bea0]]) other; return ( [[#variablebc00be00]](node. [[#variablebc00b880]](), o. [[#variablebc00b880]]()) && [[#variablebc00bc20]](node. [[#variablebc00bdc0]](), o. [[#variablebc00bdc0]]())); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#bc00bea0]] | ArrayAccess |
1 | 2 | [[#bc00bea0]] | AssertStatement |
1 | 3 | [[#bc00bea0]] | CastExpression |
1 | 4 | [[#bc00bea0]] | CatchClause |
1 | 5 | [[#bc00bea0]] | DoStatement |
1 | 6 | [[#bc00bea0]] | FieldAccess |
1 | 7 | [[#bc00bea0]] | InstanceofExpression |
1 | 8 | [[#bc00bea0]] | LabeledStatement |
1 | 9 | [[#bc00bea0]] | MemberRef |
1 | 10 | [[#bc00bea0]] | MemberValuePair |
1 | 11 | [[#bc00bea0]] | NormalAnnotation |
1 | 12 | [[#bc00bea0]] | QualifiedName |
1 | 13 | [[#bc00bea0]] | QualifiedType |
1 | 14 | [[#bc00bea0]] | SingleMemberAnnotation |
1 | 15 | [[#bc00bea0]] | SuperFieldAccess |
1 | 16 | [[#bc00bea0]] | SwitchStatement |
1 | 17 | [[#bc00bea0]] | SynchronizedStatement |
1 | 18 | [[#bc00bea0]] | TagElement |
1 | 19 | [[#bc00bea0]] | WhileStatement |
2 | 1 | [[#bc00be00]] | safeSubtreeMatch |
2 | 2 | [[#bc00be00]] | safeSubtreeMatch |
2 | 3 | [[#bc00be00]] | safeSubtreeMatch |
2 | 4 | [[#bc00be00]] | safeSubtreeMatch |
2 | 5 | [[#bc00be00]] | safeSubtreeMatch |
2 | 6 | [[#bc00be00]] | safeSubtreeMatch |
2 | 7 | [[#bc00be00]] | safeSubtreeMatch |
2 | 8 | [[#bc00be00]] | safeSubtreeMatch |
2 | 9 | [[#bc00be00]] | safeSubtreeMatch |
2 | 10 | [[#bc00be00]] | safeSubtreeMatch |
2 | 11 | [[#bc00be00]] | safeSubtreeMatch |
2 | 12 | [[#bc00be00]] | safeSubtreeMatch |
2 | 13 | [[#bc00be00]] | safeSubtreeMatch |
2 | 14 | [[#bc00be00]] | safeSubtreeMatch |
2 | 15 | [[#bc00be00]] | safeSubtreeMatch |
2 | 16 | [[#bc00be00]] | safeSubtreeMatch |
2 | 17 | [[#bc00be00]] | safeSubtreeMatch |
2 | 18 | [[#bc00be00]] | safeEquals |
2 | 19 | [[#bc00be00]] | safeSubtreeMatch |
3 | 1 | [[#bc00b880]] | getArray |
3 | 2 | [[#bc00b880]] | getExpression |
3 | 3 | [[#bc00b880]] | getType |
3 | 4 | [[#bc00b880]] | getException |
3 | 5 | [[#bc00b880]] | getExpression |
3 | 6 | [[#bc00b880]] | getExpression |
3 | 7 | [[#bc00b880]] | getLeftOperand |
3 | 8 | [[#bc00b880]] | getLabel |
3 | 9 | [[#bc00b880]] | getQualifier |
3 | 10 | [[#bc00b880]] | getName |
3 | 11 | [[#bc00b880]] | getTypeName |
3 | 12 | [[#bc00b880]] | getQualifier |
3 | 13 | [[#bc00b880]] | getQualifier |
3 | 14 | [[#bc00b880]] | getTypeName |
3 | 15 | [[#bc00b880]] | getName |
3 | 16 | [[#bc00b880]] | getExpression |
3 | 17 | [[#bc00b880]] | getExpression |
3 | 18 | [[#bc00b880]] | getTagName |
3 | 19 | [[#bc00b880]] | getExpression |
4 | 1 | [[#bc00bc20]] | safeSubtreeMatch |
4 | 2 | [[#bc00bc20]] | safeSubtreeMatch |
4 | 3 | [[#bc00bc20]] | safeSubtreeMatch |
4 | 4 | [[#bc00bc20]] | safeSubtreeMatch |
4 | 5 | [[#bc00bc20]] | safeSubtreeMatch |
4 | 6 | [[#bc00bc20]] | safeSubtreeMatch |
4 | 7 | [[#bc00bc20]] | safeSubtreeMatch |
4 | 8 | [[#bc00bc20]] | safeSubtreeMatch |
4 | 9 | [[#bc00bc20]] | safeSubtreeMatch |
4 | 10 | [[#bc00bc20]] | safeSubtreeMatch |
4 | 11 | [[#bc00bc20]] | safeSubtreeListMatch |
4 | 12 | [[#bc00bc20]] | safeSubtreeMatch |
4 | 13 | [[#bc00bc20]] | safeSubtreeMatch |
4 | 14 | [[#bc00bc20]] | safeSubtreeMatch |
4 | 15 | [[#bc00bc20]] | safeSubtreeMatch |
4 | 16 | [[#bc00bc20]] | safeSubtreeListMatch |
4 | 17 | [[#bc00bc20]] | safeSubtreeMatch |
4 | 18 | [[#bc00bc20]] | safeSubtreeListMatch |
4 | 19 | [[#bc00bc20]] | safeSubtreeMatch |
5 | 1 | [[#bc00bdc0]] | getIndex |
5 | 2 | [[#bc00bdc0]] | getMessage |
5 | 3 | [[#bc00bdc0]] | getExpression |
5 | 4 | [[#bc00bdc0]] | getBody |
5 | 5 | [[#bc00bdc0]] | getBody |
5 | 6 | [[#bc00bdc0]] | getName |
5 | 7 | [[#bc00bdc0]] | getRightOperand |
5 | 8 | [[#bc00bdc0]] | getBody |
5 | 9 | [[#bc00bdc0]] | getName |
5 | 10 | [[#bc00bdc0]] | getValue |
5 | 11 | [[#bc00bdc0]] | values |
5 | 12 | [[#bc00bdc0]] | getName |
5 | 13 | [[#bc00bdc0]] | getName |
5 | 14 | [[#bc00bdc0]] | getValue |
5 | 15 | [[#bc00bdc0]] | getQualifier |
5 | 16 | [[#bc00bdc0]] | statements |
5 | 17 | [[#bc00bdc0]] | getBody |
5 | 18 | [[#bc00bdc0]] | fragments |
5 | 19 | [[#bc00bdc0]] | getBody |