CloneSet871


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
30260.987class_body_declarations[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1313492
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/complete/CompletionParser.java
2301085
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/impl/AssistParser.java
Clone Instance
1
Line Count
31
Source Line
3492
Source File
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/complete/CompletionParser.java

protected boolean isInsideAnnotation() {
        int i = elementPtr;
        while (i > -1) {
                if (elementKindStack[i] == K_BETWEEN_ANNOTATION_NAME_AND_RPAREN)
                        return true;
                i--;
        }
        return false;
}

protected boolean isIndirectlyInsideBlock() {
        int i = elementPtr;
        while (i > -1) {
                if (elementKindStack[i] == K_BLOCK_DELIMITER)
                        return true;
                i--;
        }
        return false;
}

protected boolean isInsideBlock() {
        int i = elementPtr;
        while (i > -1) {
                switch (elementKindStack[i]) {
                        case K_TYPE_DELIMITER:  return false;
                        case K_METHOD_DELIMITER:  return false;
                        case K_FIELD_INITIALIZER_DELIMITER:  return false;
                        case K_BLOCK_DELIMITER:  return true;
                      }
                i--;
        }
        return false;
}


Clone Instance
2
Line Count
30
Source Line
1085
Source File
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/impl/AssistParser.java

protected boolean isIndirectlyInsideMethod() {
        int i = elementPtr;
        while (i > -1) {
                if (elementKindStack[i] == K_METHOD_DELIMITER)
                        return true;
                i--;
        }
        return false;
}

protected boolean isIndirectlyInsideType() {
        int i = elementPtr;
        while (i > -1) {
                if (elementKindStack[i] == K_TYPE_DELIMITER)
                        return true;
                i--;
        }
        return false;
}

protected boolean isInsideAttributeValue() {
        int i = elementPtr;
        while (i > -1) {
                switch (elementKindStack[i]) {
                        case K_TYPE_DELIMITER:  return false;
                        case K_METHOD_DELIMITER:  return false;
                        case K_FIELD_INITIALIZER_DELIMITER:  return false;
                        case K_ATTRIBUTE_VALUE_DELIMITER:  return true;
                      }
                i--;
        }
        return false;
}


Clone AbstractionParameter Count: 6Parameter Bindings

protected boolean  [[#variable773a5400]]() {
  int i = elementPtr;
  while (i > -1) {
    if (elementKindStack[i] == [[#variableb84a50a0]])
      return true;
    i--;
  }
  return false;
}

protected boolean  [[#variablebb03b7a0]]() {
  int i = elementPtr;
  while (i > -1) {
    if (elementKindStack[i] == [[#variable773a53a0]])
      return true;
    i--;
  }
  return false;
}

protected boolean  [[#variableb30ec400]]() {
  int i = elementPtr;
  while (i > -1) {
    switch (elementKindStack[i]) {
      case K_TYPE_DELIMITER:
        return false;
      case K_METHOD_DELIMITER:
        return false;
      case K_FIELD_INITIALIZER_DELIMITER:
        return false;
      case [[#variableb84a4c40]]:
        return true;
    }
    i--;
  }
  return false;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#773a5400]]
isIndirectlyInsideMethod 
12[[#773a5400]]
isInsideAnnotation 
21[[#b84a50a0]]
K_METHOD_DELIMITER 
22[[#b84a50a0]]
K_BETWEEN_ANNOTATION_NAME_AND_RPAREN 
31[[#bb03b7a0]]
isIndirectlyInsideType 
32[[#bb03b7a0]]
isIndirectlyInsideBlock 
41[[#773a53a0]]
K_TYPE_DELIMITER 
42[[#773a53a0]]
K_BLOCK_DELIMITER 
51[[#b30ec400]]
isInsideAttributeValue 
52[[#b30ec400]]
isInsideBlock 
61[[#b84a4c40]]
K_ATTRIBUTE_VALUE_DELIMITER 
62[[#b84a4c40]]
K_BLOCK_DELIMITER