Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
8 | 6 | 5 | 0.962 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 9 | 1766 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java |
2 | 9 | 1823 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java |
3 | 8 | 2315 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java |
4 | 8 | 2408 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java |
5 | 9 | 2482 | plugins/org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/rewrite/ASTRewriteAnalyzer.java |
6 | 8 | 2929 | 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; } |
| ||||
/* (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; } |
| ||||
/* (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; } |
| ||||
/* (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; } |
| ||||
/* (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; } |
| ||||
/* (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; } |
| |||
/* (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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5bbe07e0]] | TextElement |
1 | 2 | [[#5bbe07e0]] | StringLiteral |
1 | 3 | [[#5bbe07e0]] | SimpleName |
1 | 4 | [[#5bbe07e0]] | NumberLiteral |
1 | 5 | [[#5bbe07e0]] | CharacterLiteral |
1 | 6 | [[#5bbe07e0]] | BooleanLiteral |
2 | 1 | [[#5bbe0760]] | String |
2 | 2 | [[#5bbe0760]] | String |
2 | 3 | [[#5bbe0760]] | String |
2 | 4 | [[#5bbe0760]] | String |
2 | 5 | [[#5bbe0760]] | String |
2 | 6 | [[#5bbe0760]] | Boolean |
3 | 1 | [[#5b89bbc0]] | newText |
3 | 2 | [[#5b89bbc0]] | escapedSeq |
3 | 3 | [[#5b89bbc0]] | newString |
3 | 4 | [[#5b89bbc0]] | newLiteral |
3 | 5 | [[#5b89bbc0]] | escapedSeq |
3 | 6 | [[#5b89bbc0]] | newLiteral |
4 | 1 | [[#5b89bb60]] | TEXT_PROPERTY |
4 | 2 | [[#5b89bb60]] | ESCAPED_VALUE_PROPERTY |
4 | 3 | [[#5b89bb60]] | IDENTIFIER_PROPERTY |
4 | 4 | [[#5b89bb60]] | TOKEN_PROPERTY |
4 | 5 | [[#5b89bb60]] | ESCAPED_VALUE_PROPERTY |
4 | 6 | [[#5b89bb60]] | BOOLEAN_VALUE_PROPERTY |
5 | 1 | [[#5bbe04e0]] | newText |
5 | 2 | [[#5bbe04e0]] | escapedSeq |
5 | 3 | [[#5bbe04e0]] | newString |
5 | 4 | [[#5bbe04e0]] | newLiteral |
5 | 5 | [[#5bbe04e0]] | escapedSeq |
5 | 6 | [[#5bbe04e0]] | newLiteral.toString() |