File path: /emf-2.4.1/src/org/eclipse/emf/importer/ecore/EcoreImporterApplication.java | File path: /emf-2.4.1/src/org/eclipse/emf/importer/java/JavaImporterApplication.java | |||
Method name: StringBuffer getUsage()
|
Method name: StringBuffer getUsage()
|
|||
Number of AST nodes: 33 | Number of AST nodes: 31 | |||
1 | StringBuffer result = new StringBuffer();↵ | 1 | StringBuffer result = new StringBuffer();↵ | |
2 | appendLine(result, "Usage: { <model.ecore> }+ [ <model.genmodel> [ -reload ] ] <OPTION>");↵ | 2 | appendLine(result, "Usage: <workspace absolute path of model.genmodel> [ -reload ] <OPTION>");↵ | |
3 | appendLine(result, "<OPTION> ::= [ <PROJECT-OPTION> ] [ <PATHMAP> ]");↵ | 3 | appendLine(result, "<OPTION> ::= [ <PROJECT-OPTION> ] [ <PATHMAP> ]");↵ | |
4 | appendLine(result, " { <PACKAGE> }+ { <REF-PACKAGE> }* { <REF-GEN-MODEL> }*");↵ | 4 | appendLine(result, " { <PACKAGE> }+ { <REF-PACKAGE> }* { <REF-GEN-MODEL> }*");↵ | |
5 | appendLine(result, " [ <TEMPLATE-PATH> ] [ <MODEL-PLUGIN-ID> ] [ <COPYRIGHT> ]");↵ | 5 | appendLine(result, " [ <TEMPLATE-PATH> ] [ <MODEL-PLUGIN-ID> ] [ <COPYRIGHT> ]");↵ | |
6 | appendLine(result, " [ <SDO> ] [ <QUIET> ]");↵ | 6 | appendLine(result, " [ <SDO> ] [ <QUIET> ]");↵ | |
7 | appendLine(result, "<PROJECT-OPTION> ::= <MODEL-PROJECT> [ <EDIT-PROJECT> ] [ <EDITOR-PROJECT> ]");↵ | 7 | appendLine(result, "<PROJECT-OPTION> ::= <MODEL-PROJECT> [ <EDIT-PROJECT> ] [ <EDITOR-PROJECT> ]");↵ | |
8 | appendLine(result, " [ <TESTS-PROJECT> ]");↵ | 8 | appendLine(result, " [ <TESTS-PROJECT> ]");↵ | |
9 | appendLine(result, "<MODEL-PROJECT> ::= -modelProject <model-directory> <fragment-path>");↵ | 9 | appendLine(result, "<MODEL-PROJECT> ::= -modelProject <model-directory>");↵ | |
10 | appendLine(result, "<EDIT-PROJECT> ::= -editProject <edit-directory> <fragment-path>");↵ | 10 | appendLine(result, "<EDIT-PROJECT> ::= -editProject <edit-directory> <fragment-path>");↵ | |
11 | appendLine(result, "<EDITOR-PROJECT> ::= -editorProject <editor-directory> <fragment-path>");↵ | 11 | appendLine(result, "<EDITOR-PROJECT> ::= -editorProject <editor-directory> <fragment-path>");↵ | |
12 | appendLine(result, "<TESTS-PROJECT> ::= -testsProject <tests-directory> <fragment-path>");↵ | 12 | appendLine(result, "<TESTS-PROJECT> ::= -testsProject <tests-directory> <fragment-path>");↵ | |
13 | appendLine(result, "<PACKAGE> ::= -package <nsURI> [ <base> <prefix> ]");↵ | 13 | appendLine(result, "<PACKAGE> ::= -package <nsURI> [ <base> <prefix> ]");↵ | |
14 | appendLine(result, "<REF-GEN-MODEL> ::= -refGenModel <model.genmodel> { <nsURI> }+");↵ | 14 | appendLine(result, "<REF-GEN-MODEL> ::= -refGenModel <model.genmodel> { <nsURI> }+");↵ | |
15 | appendLine(result, "<TEMPLATE-PATH> ::= -templatePath <template-directory>");↵ | 15 | appendLine(result, "<TEMPLATE-PATH> ::= -templatePath <template-directory>");↵ | |
16 | appendLine(result, "<MODEL-PLUGIN-ID> ::= -modelPluginID <plugin-ID>"); ↵ | 16 | appendLine(result, "<MODEL-PLUGIN-ID> ::= -modelPluginID <plugin-ID>"); ↵ | |
17 | appendLine(result, "<COPYRIGHT> ::= -copyright <copyright-string>");↵ | 17 | appendLine(result, "<COPYRIGHT> ::= -copyright <copyright-string>");↵ | |
18 | appendLine(result, "<JDK-LEVEL> ::= -jdkLevel <jdk level: 1.4 5.0 6.0>"); ↵ | 18 | appendLine(result, "<JDK-LEVEL> ::= -jdkLevel <jdk level: 1.4 5.0 6.0>"); ↵ | |
19 | appendLine(result, "<VALIDATE-MODEL> ::= -validateModel <true|false>");↵ | 19 | appendLine(result, "<VALIDATE-MODEL> ::= -validateModel <true|false>");↵ | |
20 | appendLine(result, "<SDO> ::= -sdo");↵ | 20 | appendLine(result, "<SDO> ::= -sdo");↵ | |
21 | appendLine(result, "<QUIET> ::= -quiet");↵ | 21 | appendLine(result, "<QUIET> ::= -quiet");↵ | |
22 | appendLine(result, "");↵ | 22 | appendLine(result, "");↵ | |
23 | appendLine(result, "For example:");↵ | 23 | appendLine(result, "For example:");↵ | |
24 | appendLine(result, "");↵ | 24 | appendLine(result, "");↵ | |
25 | appendLine(result, "");↵ | 25 | appendLine(result, "");↵ | |
26 | appendLine(result, " ecore2genmodel");↵ | 26 | appendLine(result, " ecore2genmodel");↵ | |
27 | appendLine(result, " ../../etools.company/model.ecore");↵ | 27 | appendLine(result, " ↵ | |
28 | appendLine(result, " result/model/Extended.genmodel");↵ | 28 | /library/model/lib.genmodel");↵ | |
29 | appendLine(result, " -modelProject result src");↵ | 29 | appendLine(result, " -modelProject result");↵ | |
30 | appendLine(result, " -editProject result.edit src");↵ | 30 | appendLine(result, " -editProject result.edit src");↵ | |
31 | appendLine(result, " -editorProject result.editor src");↵ | 31 | appendLine(result, " -editorProject result.editor src");↵ | |
32 | appendLine(result, " -refGenModel company.genmodel http://org.sample.company");↵ | |||
33 | return result; | 32 |
| |
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 | 963 |
Number of mapped statements | 31 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 3 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | StringBuffer result = new StringBuffer(); | 1 | StringBuffer result = new StringBuffer(); | |||||||||||
2 | appendLine(result, "Usage: { <model.ecore> }+ [ <model.genmodel> [ -reload ] ] <OPTION>"); |
| 2 | appendLine(result, "Usage: <workspace absolute path of model.genmodel> [ -reload ] <OPTION>"); | ||||||||||
3 | appendLine(result, "<OPTION> ::= [ <PROJECT-OPTION> ] [ <PATHMAP> ]"); | 3 | appendLine(result, "<OPTION> ::= [ <PROJECT-OPTION> ] [ <PATHMAP> ]"); | |||||||||||
4 | appendLine(result, " { <PACKAGE> }+ { <REF-PACKAGE> }* { <REF-GEN-MODEL> }*"); | 4 | appendLine(result, " { <PACKAGE> }+ { <REF-PACKAGE> }* { <REF-GEN-MODEL> }*"); | |||||||||||
5 | appendLine(result, " [ <TEMPLATE-PATH> ] [ <MODEL-PLUGIN-ID> ] [ <COPYRIGHT> ]"); | 5 | appendLine(result, " [ <TEMPLATE-PATH> ] [ <MODEL-PLUGIN-ID> ] [ <COPYRIGHT> ]"); | |||||||||||
6 | appendLine(result, " [ <SDO> ] [ <QUIET> ]"); | 6 | appendLine(result, " [ <SDO> ] [ <QUIET> ]"); | |||||||||||
7 | appendLine(result, "<PROJECT-OPTION> ::= <MODEL-PROJECT> [ <EDIT-PROJECT> ] [ <EDITOR-PROJECT> ]"); | 7 | appendLine(result, "<PROJECT-OPTION> ::= <MODEL-PROJECT> [ <EDIT-PROJECT> ] [ <EDITOR-PROJECT> ]"); | |||||||||||
8 | appendLine(result, " [ <TESTS-PROJECT> ]"); | 8 | appendLine(result, " [ <TESTS-PROJECT> ]"); | |||||||||||
9 | appendLine(result, "<MODEL-PROJECT> ::= -modelProject <model-directory> <fragment-path>"); |
| 9 | appendLine(result, "<MODEL-PROJECT> ::= -modelProject <model-directory>"); | ||||||||||
10 | appendLine(result, "<EDIT-PROJECT> ::= -editProject <edit-directory> <fragment-path>"); | 10 | appendLine(result, "<EDIT-PROJECT> ::= -editProject <edit-directory> <fragment-path>"); | |||||||||||
11 | appendLine(result, "<EDITOR-PROJECT> ::= -editorProject <editor-directory> <fragment-path>"); | 11 | appendLine(result, "<EDITOR-PROJECT> ::= -editorProject <editor-directory> <fragment-path>"); | |||||||||||
12 | appendLine(result, "<TESTS-PROJECT> ::= -testsProject <tests-directory> <fragment-path>"); | 12 | appendLine(result, "<TESTS-PROJECT> ::= -testsProject <tests-directory> <fragment-path>"); | |||||||||||
13 | appendLine(result, "<PACKAGE> ::= -package <nsURI> [ <base> <prefix> ]"); | 13 | appendLine(result, "<PACKAGE> ::= -package <nsURI> [ <base> <prefix> ]"); | |||||||||||
14 | appendLine(result, "<REF-GEN-MODEL> ::= -refGenModel <model.genmodel> { <nsURI> }+"); | 14 | appendLine(result, "<REF-GEN-MODEL> ::= -refGenModel <model.genmodel> { <nsURI> }+"); | |||||||||||
15 | appendLine(result, "<TEMPLATE-PATH> ::= -templatePath <template-directory>"); | 15 | appendLine(result, "<TEMPLATE-PATH> ::= -templatePath <template-directory>"); | |||||||||||
16 | appendLine(result, "<MODEL-PLUGIN-ID> ::= -modelPluginID <plugin-ID>"); | 16 | appendLine(result, "<MODEL-PLUGIN-ID> ::= -modelPluginID <plugin-ID>"); | |||||||||||
17 | appendLine(result, "<COPYRIGHT> ::= -copyright <copyright-string>"); | 17 | appendLine(result, "<COPYRIGHT> ::= -copyright <copyright-string>"); | |||||||||||
18 | appendLine(result, "<JDK-LEVEL> ::= -jdkLevel <jdk level: 1.4 5.0 6.0>"); | 18 | appendLine(result, "<JDK-LEVEL> ::= -jdkLevel <jdk level: 1.4 5.0 6.0>"); | |||||||||||
19 | appendLine(result, "<VALIDATE-MODEL> ::= -validateModel <true|false>"); | 19 | appendLine(result, "<VALIDATE-MODEL> ::= -validateModel <true|false>"); | |||||||||||
20 | appendLine(result, "<SDO> ::= -sdo"); | 20 | appendLine(result, "<SDO> ::= -sdo"); | |||||||||||
21 | appendLine(result, "<QUIET> ::= -quiet"); | 21 | appendLine(result, "<QUIET> ::= -quiet"); | |||||||||||
22 | appendLine(result, ""); | 22 | appendLine(result, ""); | |||||||||||
23 | appendLine(result, "For example:"); | 23 | appendLine(result, "For example:"); | |||||||||||
24 | appendLine(result, ""); | 24 | appendLine(result, ""); | |||||||||||
25 | appendLine(result, ""); | 25 | appendLine(result, ""); | |||||||||||
26 | appendLine(result, " ecore2genmodel"); | 26 | appendLine(result, " ecore2genmodel"); | |||||||||||
27 | appendLine(result, " ../../etools.company/model.ecore"); |
| 27 | appendLine(result, " /library/model/lib.genmodel"); | ||||||||||
28 | appendLine(result, " result/model/Extended.genmodel"); |
| 28 | appendLine(result, " -modelProject result"); | ||||||||||
29 | appendLine(result, " -modelProject result src"); |
| 29 | appendLine(result, " -editProject result.edit src"); | ||||||||||
30 | appendLine(result, " -editProject result.edit src"); |
| 30 | appendLine(result, " -editorProject result.editor src"); | ||||||||||
31 | appendLine(result, " -editorProject result.editor src"); | | ||||||||||||
32 | appendLine(result, " -refGenModel company.genmodel http://org.sample.company"); | | ||||||||||||
33 | return result; | 31 | return result; |
Row | Violation |
---|---|
1 | Clone fragment #1 returns variables result , while Clone fragment #2 returns variables |