| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 5 | 4 | 1 | 0.978 | class_body_declaration |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 5 | 423 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTMatcher.java |
| 2 | 5 | 722 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTMatcher.java |
| 3 | 5 | 1167 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTMatcher.java |
| 4 | 5 | 1452 | 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. Subclasses may override
* this method as needed.
* </p>
* <p>Note: {@link LineComment} and {@link BlockComment} nodes are
* not considered part of main structure of the AST. This method will
* only be called if a client goes out of their way to visit this
* kind of node explicitly.
* </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(BlockComment node, Object other) {
if ( !(other instanceof BlockComment)) {
return false;
}
return true;
}
|
| ||||
/**
* 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(EmptyStatement node, Object other) {
if ( !(other instanceof EmptyStatement)) {
return false;
}
return true;
}
|
| ||||
/**
* 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. Subclasses may override
* this method as needed.
* </p>
* <p>Note: {@link LineComment} and {@link BlockComment} nodes are
* not considered part of main structure of the AST. This method will
* only be called if a client goes out of their way to visit this
* kind of node explicitly.
* </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(LineComment node, Object other) {
if ( !(other instanceof LineComment)) {
return false;
}
return true;
}
|
| ||||
/**
* 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(NullLiteral node, Object other) {
if ( !(other instanceof NullLiteral)) {
return false;
}
return true;
}
|
| |||
/**
* 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. Subclasses may override
* this method as needed.
* </p>
* <p>Note: {@link LineComment} and {@link BlockComment} nodes are
* not considered part of main structure of the AST. This method will
* only be called if a client goes out of their way to visit this
* kind of node explicitly.
* </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>
*/
public boolean match( [[#variable9a1eb980]] node, Object other) {
if ( !(other instanceof [[#variable9a1eb980]])) {
return false;
}
return true;
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#9a1eb980]] | BlockComment |
| 1 | 2 | [[#9a1eb980]] | EmptyStatement |
| 1 | 3 | [[#9a1eb980]] | LineComment |
| 1 | 4 | [[#9a1eb980]] | NullLiteral |