CloneSet4585


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6220.961class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
161406
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTMatcher.java
261619
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTMatcher.java
Clone Instance
1
Line Count
6
Source Line
1406
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(Modifier node, Object other) {
                if ( !(other instanceof Modifier)) {
                        return false;
                }
                Modifier o = (Modifier) other;
                return (node.getKeyword() == o.getKeyword());
        }


Clone Instance
2
Line Count
6
Source Line
1619
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(PrimitiveType node, Object other) {
                if ( !(other instanceof PrimitiveType)) {
                        return false;
                }
                PrimitiveType o = (PrimitiveType) other;
                return (node.getPrimitiveTypeCode() == o.getPrimitiveTypeCode());
        }


Clone AbstractionParameter Count: 2Parameter 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>
         * @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>
         */
public boolean match( [[#variable538cbdc0]] node, Object other) {
  if ( !(other instanceof [[#variable538cbdc0]])) {
    return false;
  }
   [[#variable538cbdc0]] o = ( [[#variable538cbdc0]]) other;
  return (node. [[#variable538cbd20]]() == o. [[#variable538cbd20]]());
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#538cbdc0]]
Modifier 
12[[#538cbdc0]]
PrimitiveType 
21[[#538cbd20]]
getKeyword 
22[[#538cbd20]]
getPrimitiveTypeCode