CloneSet336


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8650.962class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
191766
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java
291823
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java
382315
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java
482408
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java
592482
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java
682929
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java
Clone Instance
1
Line Count
9
Source Line
1766
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java

        /* (non-Javadoc)
         * @see org.eclipse.jdt.core.dom.ASTVisitor#visit(BooleanLiteral)
         */
        public boolean visit(BooleanLiteral node) {
                if ( !hasChildrenChanges(node)) {
                        return doVisitUnchangedChildren(node);
                }

                Boolean newLiteral = (Boolean) getNewValue(node, BooleanLiteral.BOOLEAN_VALUE_PROPERTY);
                TextEditGroup group = getEditGroup(node, BooleanLiteral.BOOLEAN_VALUE_PROPERTY);
                doTextReplace(node.getStartPosition(), node.getLength(), newLiteral.toString(), group);
                return false;
        }


Clone Instance
2
Line Count
9
Source Line
1823
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java

        /* (non-Javadoc)
         * @see org.eclipse.jdt.core.dom.ASTVisitor#visit(CharacterLiteral)
         */
        public boolean visit(CharacterLiteral node) {
                if ( !hasChildrenChanges(node)) {
                        return doVisitUnchangedChildren(node);
                }

                String escapedSeq = (String) getNewValue(node, CharacterLiteral.ESCAPED_VALUE_PROPERTY);
                TextEditGroup group = getEditGroup(node, CharacterLiteral.ESCAPED_VALUE_PROPERTY);
                doTextReplace(node.getStartPosition(), node.getLength(), escapedSeq, group);
                return false;
        }


Clone Instance
3
Line Count
8
Source Line
2315
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java

        /* (non-Javadoc)
         * @see org.eclipse.jdt.core.dom.ASTVisitor#visit(NumberLiteral)
         */
        public boolean visit(NumberLiteral node) {
                if ( !hasChildrenChanges(node)) {
                        return doVisitUnchangedChildren(node);
                }
                String newLiteral = (String) getNewValue(node, NumberLiteral.TOKEN_PROPERTY);
                TextEditGroup group = getEditGroup(node, NumberLiteral.TOKEN_PROPERTY);
                doTextReplace(node.getStartPosition(), node.getLength(), newLiteral, group);
                return false;
        }


Clone Instance
4
Line Count
8
Source Line
2408
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java

        /* (non-Javadoc)
         * @see org.eclipse.jdt.core.dom.ASTVisitor#visit(SimpleName)
         */
        public boolean visit(SimpleName node) {
                if ( !hasChildrenChanges(node)) {
                        return doVisitUnchangedChildren(node);
                }
                String newString = (String) getNewValue(node, SimpleName.IDENTIFIER_PROPERTY);
                TextEditGroup group = getEditGroup(node, SimpleName.IDENTIFIER_PROPERTY);
                doTextReplace(node.getStartPosition(), node.getLength(), newString, group);
                return false;
        }


Clone Instance
5
Line Count
9
Source Line
2482
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java

        /* (non-Javadoc)
         * @see org.eclipse.jdt.core.dom.ASTVisitor#visit(StringLiteral)
         */
        public boolean visit(StringLiteral node) {
                if ( !hasChildrenChanges(node)) {
                        return doVisitUnchangedChildren(node);
                }
                String escapedSeq = (String) getNewValue(node, StringLiteral.ESCAPED_VALUE_PROPERTY);
                TextEditGroup group = getEditGroup(node, StringLiteral.ESCAPED_VALUE_PROPERTY);
                doTextReplace(node.getStartPosition(), node.getLength(), escapedSeq, group);

                return false;
        }


Clone Instance
6
Line Count
8
Source Line
2929
Source File
plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java

        /* (non-Javadoc)
         * @see org.eclipse.jdt.core.dom.ASTVisitor#visit(org.eclipse.jdt.core.dom.TextElement)
         */
        public boolean visit(TextElement node) {
                if ( !hasChildrenChanges(node)) {
                        return doVisitUnchangedChildren(node);
                }
                String newText = (String) getNewValue(node, TextElement.TEXT_PROPERTY);
                TextEditGroup group = getEditGroup(node, TextElement.TEXT_PROPERTY);
                doTextReplace(node.getStartPosition(), node.getLength(), newText, group);
                return false;
        }


Clone AbstractionParameter Count: 5Parameter Bindings

/* (non-Javadoc)
         * @see org.eclipse.jdt.core.dom.ASTVisitor#visit(org.eclipse.jdt.core.dom.TextElement)
         */
/* (non-Javadoc)
         * @see org.eclipse.jdt.core.dom.ASTVisitor#visit(StringLiteral)
         */
/* (non-Javadoc)
         * @see org.eclipse.jdt.core.dom.ASTVisitor#visit(SimpleName)
         */
/* (non-Javadoc)
         * @see org.eclipse.jdt.core.dom.ASTVisitor#visit(NumberLiteral)
         */
/* (non-Javadoc)
         * @see org.eclipse.jdt.core.dom.ASTVisitor#visit(CharacterLiteral)
         */
/* (non-Javadoc)
         * @see org.eclipse.jdt.core.dom.ASTVisitor#visit(BooleanLiteral)
         */
public boolean visit( [[#variable5bbe07e0]] node) {
  if ( !hasChildrenChanges(node)) {
    return doVisitUnchangedChildren(node);
  }
   [[#variable5bbe0760]]  [[#variable5b89bbc0]]= ( [[#variable5bbe0760]]) getNewValue(node,  [[#variable5bbe07e0]]. [[#variable5b89bb60]]);
  TextEditGroup group = getEditGroup(node,  [[#variable5bbe07e0]]. [[#variable5b89bb60]]);
  doTextReplace(node.getStartPosition(), node.getLength(),  [[#variable5bbe04e0]], group);
  return false;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5bbe07e0]]
TextElement 
12[[#5bbe07e0]]
StringLiteral 
13[[#5bbe07e0]]
SimpleName 
14[[#5bbe07e0]]
NumberLiteral 
15[[#5bbe07e0]]
CharacterLiteral 
16[[#5bbe07e0]]
BooleanLiteral 
21[[#5bbe0760]]
String 
22[[#5bbe0760]]
String 
23[[#5bbe0760]]
String 
24[[#5bbe0760]]
String 
25[[#5bbe0760]]
String 
26[[#5bbe0760]]
Boolean 
31[[#5b89bbc0]]
newText 
32[[#5b89bbc0]]
escapedSeq 
33[[#5b89bbc0]]
newString 
34[[#5b89bbc0]]
newLiteral 
35[[#5b89bbc0]]
escapedSeq 
36[[#5b89bbc0]]
newLiteral 
41[[#5b89bb60]]
TEXT_PROPERTY 
42[[#5b89bb60]]
ESCAPED_VALUE_PROPERTY 
43[[#5b89bb60]]
IDENTIFIER_PROPERTY 
44[[#5b89bb60]]
TOKEN_PROPERTY 
45[[#5b89bb60]]
ESCAPED_VALUE_PROPERTY 
46[[#5b89bb60]]
BOOLEAN_VALUE_PROPERTY 
51[[#5bbe04e0]]
newText 
52[[#5bbe04e0]]
escapedSeq 
53[[#5bbe04e0]]
newString 
54[[#5bbe04e0]]
newLiteral 
55[[#5bbe04e0]]
escapedSeq 
56[[#5bbe04e0]]
newLiteral.toString()