Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
10 | 2 | 2 | 0.991 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 10 | 165 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/MatchFilter.java |
2 | 10 | 183 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/MatchFilter.java |
| ||||
public boolean isApplicable(JavaSearchQuery query) { QuerySpecification spec = query.getSpecification(); if (spec instanceof ElementQuerySpecification) { ElementQuerySpecification elementSpec = (ElementQuerySpecification) spec; return elementSpec.getElement() instanceof IType; } else if (spec instanceof PatternQuerySpecification) { PatternQuerySpecification patternSpec = (PatternQuerySpecification) spec; return patternSpec.getSearchFor() == IJavaSearchConstants.TYPE; } return false; } |
| ||||
public boolean isApplicable(JavaSearchQuery query) { QuerySpecification spec = query.getSpecification(); if (spec instanceof ElementQuerySpecification) { ElementQuerySpecification elementSpec = (ElementQuerySpecification) spec; return elementSpec.getElement() instanceof IField; } else if (spec instanceof PatternQuerySpecification) { PatternQuerySpecification patternSpec = (PatternQuerySpecification) spec; return patternSpec.getSearchFor() == IJavaSearchConstants.FIELD; } return false; } |
| |||
public boolean isApplicable(JavaSearchQuery query) { QuerySpecification spec = query.getSpecification(); if (spec instanceof ElementQuerySpecification) { ElementQuerySpecification elementSpec = (ElementQuerySpecification) spec; return elementSpec.getElement() instanceof [[#variable54812e60]]; } else if (spec instanceof PatternQuerySpecification) { PatternQuerySpecification patternSpec = (PatternQuerySpecification) spec; return patternSpec.getSearchFor() == IJavaSearchConstants. [[#variable53e022a0]]; } return false; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#54812e60]] | IType |
1 | 2 | [[#54812e60]] | IField |
2 | 1 | [[#53e022a0]] | TYPE |
2 | 2 | [[#53e022a0]] | FIELD |