File path: /jEdit-4.2/src/bsh/BshMethod.java | File path: /jEdit-4.2/src/bsh/DelayedEvalBshMethod.java | |||
Method name: void BshMethod(String, Class, String[], Class[], BSHBlock, NameSpace, Modifiers)
|
Method name: void DelayedEvalBshMethod(String, String, BSHReturnType, String[], String[], BSHFormalParameters, BSHBlock, NameSpace, Modifiers, CallStack, Interpreter)
|
|||
Number of AST nodes: 9 | Number of AST nodes: 7 | |||
1 | this.name = name;↵ | |||
2 | this.creturnType = returnType;↵ | 1 | super( name, null/*returnType↵ | |
3 | this.paramNames = paramNames;↵ | 2 | */, paramNames↵ | |
4 | if ( paramNames != null )↵ | |||
5 | this.numArgs = paramNames.length↵ | 3 | , null/*paramTypes*/,↵ | |
4 | methodBody, declaringNameSpace, modifiers );↵ | |||
5 | this.returnTypeDescriptor = returnTypeDescriptor;↵ | |||
6 | ;↵ | 6 | this.returnTypeNode = returnTypeNode;↵ | |
7 | this.cparamTypes = paramTypes;↵ | 7 | this.paramTypeDescriptors = paramType↵ | |
8 | this.methodB↵ | 8 | Descriptors;↵ | |
9 | ody = methodBody;↵ | 9 | this.paramTypesNode = ↵ | |
10 | this.declaringNameSp↵ | 10 | paramTypesNode;↵ | |
11 | ace = declaringNameSpace;↵ | 11 | this.callstack = callstack;↵ | |
12 | this.modifiers = modifiers; | 12 | this.interpreter = interpreter; | |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 36 |
Number of mapped statements | 3 |
Number of unmapped statements in the first code fragment | 6 |
Number of unmapped statements in the second code fragment | 4 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 3 |
ID | Statement | ID | Statement | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | super(name, null, paramNames, null, methodBody, declaringNameSpace, modifiers); | ||||||||||||||||||||
1 | this.name = name; |
| 2 | this.returnTypeDescriptor = returnTypeDescriptor; | ||||||||||||||||||
2 | this.creturnType = returnType; | | ||||||||||||||||||||
| 3 | this.returnTypeNode = returnTypeNode; | ||||||||||||||||||||
3 | this.paramNames = paramNames; |
| 4 | this.paramTypeDescriptors = paramTypeDescriptors; | ||||||||||||||||||
4 | if (paramNames != null) | | ||||||||||||||||||||
5 | this.numArgs = paramNames.length; | | ||||||||||||||||||||
| 6 | this.callstack = callstack; | ||||||||||||||||||||
6 | this.cparamTypes = paramTypes; | | ||||||||||||||||||||
7 | this.methodBody = methodBody; |
| 5 | this.paramTypesNode = paramTypesNode; | ||||||||||||||||||
| 7 | this.interpreter = interpreter; | ||||||||||||||||||||
8 | this.declaringNameSpace = declaringNameSpace; | | ||||||||||||||||||||
9 | this.modifiers = modifiers; | |
Row | Violation |
---|---|
1 | Expression this.name is a field being modified, and thus it cannot be parameterized |
2 | Expression this.returnTypeDescriptor is a field being modified, and thus it cannot be parameterized |
3 | Expression this.paramNames is a field being modified, and thus it cannot be parameterized |
4 | Expression this.paramTypeDescriptors is a field being modified, and thus it cannot be parameterized |
5 | Expression this.methodBody is a field being modified, and thus it cannot be parameterized |
6 | Expression this.paramTypesNode is a field being modified, and thus it cannot be parameterized |