CloneSet2906


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8210.981class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
181571
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTMatcher.java
281595
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTMatcher.java
Clone Instance
1
Line Count
8
Source Line
1571
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(PostfixExpression node, Object other) {
                if ( !(other instanceof PostfixExpression)) {
                        return false;
                }
                PostfixExpression o = (PostfixExpression) other;
                return (
                        node.getOperator().equals(o.getOperator()) &&
                                   safeSubtreeMatch(node.getOperand(), o.getOperand()));
        }


Clone Instance
2
Line Count
8
Source Line
1595
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(PrefixExpression node, Object other) {
                if ( !(other instanceof PrefixExpression)) {
                        return false;
                }
                PrefixExpression o = (PrefixExpression) other;
                return (
                        node.getOperator().equals(o.getOperator()) &&
                                   safeSubtreeMatch(node.getOperand(), o.getOperand()));
        }


Clone AbstractionParameter Count: 1Parameter Bindings

/**
         * 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( [[#variable6376ef60]] node, Object other) {
  if ( !(other instanceof [[#variable6376ef60]])) {
    return false;
  }
   [[#variable6376ef60]] o = ( [[#variable6376ef60]]) other;
  return (node.getOperator().equals(o.getOperator()) && safeSubtreeMatch(node.getOperand(), o.getOperand()));
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#6376ef60]]
PostfixExpression 
12[[#6376ef60]]
PrefixExpression