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: 26 | Number of AST nodes: 26 | |||
1 | appendLine(result, "<OPTION> ::= [ <PROJECT-OPTION> ] [ <PATHMAP> ]");↵ | 1 | appendLine(result, "<OPTION> ::= [ <PROJECT-OPTION> ] [ <PATHMAP> ]");↵ | |
2 | appendLine(result, " { <PACKAGE> }+ { <REF-PACKAGE> }* { <REF-GEN-MODEL> }*");↵ | 2 | appendLine(result, " { <PACKAGE> }+ { <REF-PACKAGE> }* { <REF-GEN-MODEL> }*");↵ | |
3 | appendLine(result, " [ <TEMPLATE-PATH> ] [ <MODEL-PLUGIN-ID> ] [ <COPYRIGHT> ]");↵ | 3 | appendLine(result, " [ <TEMPLATE-PATH> ] [ <MODEL-PLUGIN-ID> ] [ <COPYRIGHT> ]");↵ | |
4 | appendLine(result, " [ <SDO> ] [ <QUIET> ]");↵ | 4 | appendLine(result, " [ <SDO> ] [ <QUIET> ]");↵ | |
5 | appendLine(result, "<PROJECT-OPTION> ::= <MODEL-PROJECT> [ <EDIT-PROJECT> ] [ <EDITOR-PROJECT> ]");↵ | 5 | appendLine(result, "<PROJECT-OPTION> ::= <MODEL-PROJECT> [ <EDIT-PROJECT> ] [ <EDITOR-PROJECT> ]");↵ | |
6 | appendLine(result, " [ <TESTS-PROJECT> ]");↵ | 6 | appendLine(result, " [ <TESTS-PROJECT> ]");↵ | |
7 | appendLine(result, "<MODEL-PROJECT> ::= -modelProject <model-directory> <fragment-path>");↵ | 7 | appendLine(result, "<MODEL-PROJECT> ::= -modelProject <model-directory>");↵ | |
8 | appendLine(result, "<EDIT-PROJECT> ::= -editProject <edit-directory> <fragment-path>");↵ | 8 | appendLine(result, "<EDIT-PROJECT> ::= -editProject <edit-directory> <fragment-path>");↵ | |
9 | appendLine(result, "<EDITOR-PROJECT> ::= -editorProject <editor-directory> <fragment-path>");↵ | 9 | appendLine(result, "<EDITOR-PROJECT> ::= -editorProject <editor-directory> <fragment-path>");↵ | |
10 | appendLine(result, "<TESTS-PROJECT> ::= -testsProject <tests-directory> <fragment-path>");↵ | 10 | appendLine(result, "<TESTS-PROJECT> ::= -testsProject <tests-directory> <fragment-path>");↵ | |
11 | appendLine(result, "<PACKAGE> ::= -package <nsURI> [ <base> <prefix> ]");↵ | 11 | appendLine(result, "<PACKAGE> ::= -package <nsURI> [ <base> <prefix> ]");↵ | |
12 | appendLine(result, "<REF-GEN-MODEL> ::= -refGenModel <model.genmodel> { <nsURI> }+");↵ | 12 | appendLine(result, "<REF-GEN-MODEL> ::= -refGenModel <model.genmodel> { <nsURI> }+");↵ | |
13 | appendLine(result, "<TEMPLATE-PATH> ::= -templatePath <template-directory>");↵ | 13 | appendLine(result, "<TEMPLATE-PATH> ::= -templatePath <template-directory>");↵ | |
14 | appendLine(result, "<MODEL-PLUGIN-ID> ::= -modelPluginID <plugin-ID>"); ↵ | 14 | appendLine(result, "<MODEL-PLUGIN-ID> ::= -modelPluginID <plugin-ID>"); ↵ | |
15 | appendLine(result, "<COPYRIGHT> ::= -copyright <copyright-string>");↵ | 15 | appendLine(result, "<COPYRIGHT> ::= -copyright <copyright-string>");↵ | |
16 | appendLine(result, "<JDK-LEVEL> ::= -jdkLevel <jdk level: 1.4 5.0 6.0>"); ↵ | 16 | appendLine(result, "<JDK-LEVEL> ::= -jdkLevel <jdk level: 1.4 5.0 6.0>"); ↵ | |
17 | appendLine(result, "<VALIDATE-MODEL> ::= -validateModel <true|false>");↵ | 17 | appendLine(result, "<VALIDATE-MODEL> ::= -validateModel <true|false>");↵ | |
18 | appendLine(result, "<SDO> ::= -sdo");↵ | 18 | appendLine(result, "<SDO> ::= -sdo");↵ | |
19 | appendLine(result, "<QUIET> ::= -quiet");↵ | 19 | appendLine(result, "<QUIET> ::= -quiet");↵ | |
20 | appendLine(result, "");↵ | 20 | appendLine(result, "");↵ | |
21 | appendLine(result, "For example:");↵ | 21 | appendLine(result, "For example:");↵ | |
22 | appendLine(result, "");↵ | 22 | appendLine(result, "");↵ | |
23 | appendLine(result, "");↵ | 23 | appendLine(result, "");↵ | |
24 | appendLine(result, " ecore2genmodel");↵ | 24 | appendLine(result, " ecore2genmodel");↵ | |
25 | appendLine(result, " ../../etools.company/model.ecore");↵ | 25 | appendLine(result, " /library/model/lib.genmodel");↵ | |
26 | appendLine(result, " result/model/Extended.genmodel"); | 26 | appendLine(result, " -modelProject result"); | |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
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 | 538 |
Number of mapped statements | 26 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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"); |
Row | Violation |
---|