ts2famix 1.0.10 → 1.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.json +24 -24
- package/LICENSE +23 -23
- package/README.md +109 -109
- package/jest.config-old.ts +199 -199
- package/package.json +47 -47
- package/src/analyze.ts +94 -94
- package/src/analyze_functions/processAccesses.ts +57 -50
- package/src/analyze_functions/processFiles.ts +669 -660
- package/src/analyze_functions/processImportClauses.ts +77 -77
- package/src/analyze_functions/processInheritances.ts +84 -84
- package/src/analyze_functions/processInvocations.ts +51 -51
- package/src/famix2puml.ts +119 -119
- package/src/famix_functions/famix_functions.ts +559 -555
- package/src/famix_functions/famix_functions_associations.ts +215 -215
- package/src/famix_functions/famix_functions_index.ts +44 -44
- package/src/famix_functions/famix_functions_types.ts +105 -100
- package/src/generate_uml.sh +16 -16
- package/src/lib/famix/License.md +22 -22
- package/src/lib/famix/package-lock.json +301 -301
- package/src/lib/famix/package.json +27 -27
- package/src/lib/famix/readme.md +4 -4
- package/src/lib/famix/src/famix_JSON_exporter.ts +56 -56
- package/src/lib/famix/src/famix_base_element.ts +18 -18
- package/src/lib/famix/src/famix_repository.ts +199 -199
- package/src/lib/famix/src/index.ts +8 -8
- package/src/lib/famix/src/model/famix/access.ts +53 -53
- package/src/lib/famix/src/model/famix/accessor.ts +15 -15
- package/src/lib/famix/src/model/famix/alias.ts +41 -41
- package/src/lib/famix/src/model/famix/association.ts +44 -44
- package/src/lib/famix/src/model/famix/behavioral_entity.ts +107 -107
- package/src/lib/famix/src/model/famix/c_source_language.ts +15 -15
- package/src/lib/famix/src/model/famix/class.ts +86 -86
- package/src/lib/famix/src/model/famix/comment.ts +50 -50
- package/src/lib/famix/src/model/famix/container_entity.ts +165 -165
- package/src/lib/famix/src/model/famix/custom_source_language.ts +27 -27
- package/src/lib/famix/src/model/famix/decorator.ts +39 -39
- package/src/lib/famix/src/model/famix/entity.ts +15 -15
- package/src/lib/famix/src/model/famix/enum.ts +31 -31
- package/src/lib/famix/src/model/famix/enum_value.ts +29 -29
- package/src/lib/famix/src/model/famix/function.ts +15 -15
- package/src/lib/famix/src/model/famix/implicit_variable.ts +15 -15
- package/src/lib/famix/src/model/famix/import_clause.ts +53 -53
- package/src/lib/famix/src/model/famix/index.ts +42 -42
- package/src/lib/famix/src/model/famix/indexed_file_anchor.ts +49 -49
- package/src/lib/famix/src/model/famix/inheritance.ts +42 -42
- package/src/lib/famix/src/model/famix/interface.ts +75 -75
- package/src/lib/famix/src/model/famix/invocation.ts +68 -68
- package/src/lib/famix/src/model/famix/method.ts +96 -96
- package/src/lib/famix/src/model/famix/module.ts +31 -31
- package/src/lib/famix/src/model/famix/named_entity.ts +98 -98
- package/src/lib/famix/src/model/famix/namespace.ts +28 -28
- package/src/lib/famix/src/model/famix/parameter.ts +29 -29
- package/src/lib/famix/src/model/famix/parameterizable_class.ts +31 -31
- package/src/lib/famix/src/model/famix/parameterizable_interface.ts +31 -31
- package/src/lib/famix/src/model/famix/parameterized_type.ts +40 -40
- package/src/lib/famix/src/model/famix/primitive_type.ts +15 -15
- package/src/lib/famix/src/model/famix/property.ts +54 -54
- package/src/lib/famix/src/model/famix/reference.ts +42 -42
- package/src/lib/famix/src/model/famix/scoping_entity.ts +31 -31
- package/src/lib/famix/src/model/famix/script_entity.ts +38 -38
- package/src/lib/famix/src/model/famix/source_anchor.ts +31 -31
- package/src/lib/famix/src/model/famix/source_language.ts +31 -31
- package/src/lib/famix/src/model/famix/sourced_entity.ts +70 -70
- package/src/lib/famix/src/model/famix/structural_entity.ts +44 -44
- package/src/lib/famix/src/model/famix/text_anchor.ts +49 -49
- package/src/lib/famix/src/model/famix/type.ts +88 -88
- package/src/lib/famix/src/model/famix/type_parameter.ts +33 -33
- package/src/lib/famix/src/model/famix/variable.ts +28 -28
- package/src/lib/famix/tsconfig.json +26 -26
- package/src/lib/famix/tslint.json +14 -14
- package/src/lib/ts-complex/cyclomatic-service.ts +85 -85
- package/src/ts2famix-cli.ts +39 -39
- package/tsconfig.json +69 -69
- package/dist/analyze.js +0 -102
- package/dist/analyze_functions/processAccesses.js +0 -47
- package/dist/analyze_functions/processFiles.js +0 -540
- package/dist/analyze_functions/processImportClauses.js +0 -70
- package/dist/analyze_functions/processInheritances.js +0 -73
- package/dist/analyze_functions/processInvocations.js +0 -49
- package/dist/famix2puml.js +0 -125
- package/dist/famix_functions/famix_functions.js +0 -513
- package/dist/famix_functions/famix_functions_associations.js +0 -205
- package/dist/famix_functions/famix_functions_index.js +0 -62
- package/dist/famix_functions/famix_functions_types.js +0 -110
- package/dist/fqn.js +0 -126
- package/dist/fqp_implementation.js +0 -73
- package/dist/lib/famix/src/famix_JSON_exporter.js +0 -54
- package/dist/lib/famix/src/famix_base_element.js +0 -13
- package/dist/lib/famix/src/famix_repository.js +0 -187
- package/dist/lib/famix/src/index.js +0 -30
- package/dist/lib/famix/src/model/famix/access.js +0 -39
- package/dist/lib/famix/src/model/famix/accessor.js +0 -16
- package/dist/lib/famix/src/model/famix/alias.js +0 -32
- package/dist/lib/famix/src/model/famix/association.js +0 -36
- package/dist/lib/famix/src/model/famix/behavioral_entity.js +0 -81
- package/dist/lib/famix/src/model/famix/c_source_language.js +0 -16
- package/dist/lib/famix/src/model/famix/class.js +0 -70
- package/dist/lib/famix/src/model/famix/comment.js +0 -38
- package/dist/lib/famix/src/model/famix/container_entity.js +0 -125
- package/dist/lib/famix/src/model/famix/custom_source_language.js +0 -23
- package/dist/lib/famix/src/model/famix/decorator.js +0 -31
- package/dist/lib/famix/src/model/famix/entity.js +0 -16
- package/dist/lib/famix/src/model/famix/enum.js +0 -30
- package/dist/lib/famix/src/model/famix/enum_value.js +0 -24
- package/dist/lib/famix/src/model/famix/function.js +0 -16
- package/dist/lib/famix/src/model/famix/implicit_variable.js +0 -16
- package/dist/lib/famix/src/model/famix/import_clause.js +0 -39
- package/dist/lib/famix/src/model/famix/index.js +0 -87
- package/dist/lib/famix/src/model/famix/indexed_file_anchor.js +0 -37
- package/dist/lib/famix/src/model/famix/inheritance.js +0 -32
- package/dist/lib/famix/src/model/famix/interface.js +0 -63
- package/dist/lib/famix/src/model/famix/invocation.js +0 -53
- package/dist/lib/famix/src/model/famix/method.js +0 -66
- package/dist/lib/famix/src/model/famix/module.js +0 -30
- package/dist/lib/famix/src/model/famix/named_entity.js +0 -77
- package/dist/lib/famix/src/model/famix/namespace.js +0 -24
- package/dist/lib/famix/src/model/famix/parameter.js +0 -24
- package/dist/lib/famix/src/model/famix/parameterizable_class.js +0 -30
- package/dist/lib/famix/src/model/famix/parameterizable_interface.js +0 -30
- package/dist/lib/famix/src/model/famix/parameterized_type.js +0 -36
- package/dist/lib/famix/src/model/famix/primitive_type.js +0 -16
- package/dist/lib/famix/src/model/famix/property.js +0 -44
- package/dist/lib/famix/src/model/famix/reference.js +0 -32
- package/dist/lib/famix/src/model/famix/scoping_entity.js +0 -30
- package/dist/lib/famix/src/model/famix/script_entity.js +0 -30
- package/dist/lib/famix/src/model/famix/source_anchor.js +0 -26
- package/dist/lib/famix/src/model/famix/source_language.js +0 -30
- package/dist/lib/famix/src/model/famix/sourced_entity.js +0 -55
- package/dist/lib/famix/src/model/famix/structural_entity.js +0 -38
- package/dist/lib/famix/src/model/famix/text_anchor.js +0 -37
- package/dist/lib/famix/src/model/famix/type.js +0 -71
- package/dist/lib/famix/src/model/famix/type_parameter.js +0 -24
- package/dist/lib/famix/src/model/famix/variable.js +0 -23
- package/dist/lib/ts-complex/cyclomatic-service.js +0 -83
- package/dist/ts2famix-cli.js +0 -63
- package/dist/ts2famix-tsconfig.js +0 -53
- package/metrics.ts +0 -23
- package/src/fqp_implementation.ts +0 -66
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { FamixJSONExporter } from "../../famix_JSON_exporter";
|
|
2
|
-
import { NamedEntity } from "./named_entity";
|
|
3
|
-
|
|
4
|
-
export class Decorator extends NamedEntity {
|
|
5
|
-
|
|
6
|
-
private decoratorExpression: string;
|
|
7
|
-
|
|
8
|
-
public getDecoratorExpression(): string {
|
|
9
|
-
return this.decoratorExpression;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
public setDecoratorExpression(decoratorExpression: string) {
|
|
13
|
-
this.decoratorExpression = decoratorExpression;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
private decoratedEntity: NamedEntity;
|
|
17
|
-
|
|
18
|
-
public getDecoratedEntity(): NamedEntity {
|
|
19
|
-
return this.decoratedEntity;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
public setDecoratedEntity(decoratedEntity: NamedEntity): void {
|
|
23
|
-
this.decoratedEntity = decoratedEntity;
|
|
24
|
-
decoratedEntity.addDecorator(this);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
public getJSON(): string {
|
|
29
|
-
const mse: FamixJSONExporter = new FamixJSONExporter("Decorator", this);
|
|
30
|
-
this.addPropertiesToExporter(mse);
|
|
31
|
-
return mse.getJSON();
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
public addPropertiesToExporter(exporter: FamixJSONExporter): void {
|
|
35
|
-
super.addPropertiesToExporter(exporter);
|
|
36
|
-
exporter.addProperty("decoratorExpression", this.getDecoratorExpression());
|
|
37
|
-
exporter.addProperty("decoratedEntity", this.getDecoratedEntity());
|
|
38
|
-
}
|
|
39
|
-
}
|
|
1
|
+
import { FamixJSONExporter } from "../../famix_JSON_exporter";
|
|
2
|
+
import { NamedEntity } from "./named_entity";
|
|
3
|
+
|
|
4
|
+
export class Decorator extends NamedEntity {
|
|
5
|
+
|
|
6
|
+
private decoratorExpression: string;
|
|
7
|
+
|
|
8
|
+
public getDecoratorExpression(): string {
|
|
9
|
+
return this.decoratorExpression;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
public setDecoratorExpression(decoratorExpression: string) {
|
|
13
|
+
this.decoratorExpression = decoratorExpression;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
private decoratedEntity: NamedEntity;
|
|
17
|
+
|
|
18
|
+
public getDecoratedEntity(): NamedEntity {
|
|
19
|
+
return this.decoratedEntity;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
public setDecoratedEntity(decoratedEntity: NamedEntity): void {
|
|
23
|
+
this.decoratedEntity = decoratedEntity;
|
|
24
|
+
decoratedEntity.addDecorator(this);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
public getJSON(): string {
|
|
29
|
+
const mse: FamixJSONExporter = new FamixJSONExporter("Decorator", this);
|
|
30
|
+
this.addPropertiesToExporter(mse);
|
|
31
|
+
return mse.getJSON();
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
public addPropertiesToExporter(exporter: FamixJSONExporter): void {
|
|
35
|
+
super.addPropertiesToExporter(exporter);
|
|
36
|
+
exporter.addProperty("decoratorExpression", this.getDecoratorExpression());
|
|
37
|
+
exporter.addProperty("decoratedEntity", this.getDecoratedEntity());
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { FamixJSONExporter } from "../../famix_JSON_exporter";
|
|
2
|
-
import { FamixBaseElement } from "../../famix_base_element";
|
|
3
|
-
|
|
4
|
-
export class Entity extends FamixBaseElement {
|
|
5
|
-
|
|
6
|
-
public getJSON(): string {
|
|
7
|
-
const mse: FamixJSONExporter = new FamixJSONExporter("Entity", this);
|
|
8
|
-
this.addPropertiesToExporter(mse);
|
|
9
|
-
return mse.getJSON();
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
public addPropertiesToExporter(exporter: FamixJSONExporter): void {
|
|
13
|
-
super.addPropertiesToExporter(exporter);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
1
|
+
import { FamixJSONExporter } from "../../famix_JSON_exporter";
|
|
2
|
+
import { FamixBaseElement } from "../../famix_base_element";
|
|
3
|
+
|
|
4
|
+
export class Entity extends FamixBaseElement {
|
|
5
|
+
|
|
6
|
+
public getJSON(): string {
|
|
7
|
+
const mse: FamixJSONExporter = new FamixJSONExporter("Entity", this);
|
|
8
|
+
this.addPropertiesToExporter(mse);
|
|
9
|
+
return mse.getJSON();
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
public addPropertiesToExporter(exporter: FamixJSONExporter): void {
|
|
13
|
+
super.addPropertiesToExporter(exporter);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { FamixJSONExporter } from "../../famix_JSON_exporter";
|
|
2
|
-
import { Type } from "./type";
|
|
3
|
-
import { EnumValue } from "./enum_value";
|
|
4
|
-
|
|
5
|
-
export class Enum extends Type {
|
|
6
|
-
|
|
7
|
-
private values: Set<EnumValue> = new Set();
|
|
8
|
-
|
|
9
|
-
public getValues(): Set<EnumValue> {
|
|
10
|
-
return this.values;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
public addValue(value: EnumValue): void {
|
|
14
|
-
if (!this.values.has(value)) {
|
|
15
|
-
this.values.add(value);
|
|
16
|
-
value.setParentEntity(this);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
public getJSON(): string {
|
|
22
|
-
const mse: FamixJSONExporter = new FamixJSONExporter("Enum", this);
|
|
23
|
-
this.addPropertiesToExporter(mse);
|
|
24
|
-
return mse.getJSON();
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
public addPropertiesToExporter(exporter: FamixJSONExporter): void {
|
|
28
|
-
super.addPropertiesToExporter(exporter);
|
|
29
|
-
exporter.addProperty("values", this.getValues());
|
|
30
|
-
}
|
|
31
|
-
}
|
|
1
|
+
import { FamixJSONExporter } from "../../famix_JSON_exporter";
|
|
2
|
+
import { Type } from "./type";
|
|
3
|
+
import { EnumValue } from "./enum_value";
|
|
4
|
+
|
|
5
|
+
export class Enum extends Type {
|
|
6
|
+
|
|
7
|
+
private values: Set<EnumValue> = new Set();
|
|
8
|
+
|
|
9
|
+
public getValues(): Set<EnumValue> {
|
|
10
|
+
return this.values;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
public addValue(value: EnumValue): void {
|
|
14
|
+
if (!this.values.has(value)) {
|
|
15
|
+
this.values.add(value);
|
|
16
|
+
value.setParentEntity(this);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
public getJSON(): string {
|
|
22
|
+
const mse: FamixJSONExporter = new FamixJSONExporter("Enum", this);
|
|
23
|
+
this.addPropertiesToExporter(mse);
|
|
24
|
+
return mse.getJSON();
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
public addPropertiesToExporter(exporter: FamixJSONExporter): void {
|
|
28
|
+
super.addPropertiesToExporter(exporter);
|
|
29
|
+
exporter.addProperty("values", this.getValues());
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { FamixJSONExporter } from "../../famix_JSON_exporter";
|
|
2
|
-
import { StructuralEntity } from "./structural_entity";
|
|
3
|
-
import { Enum } from "./enum";
|
|
4
|
-
|
|
5
|
-
export class EnumValue extends StructuralEntity {
|
|
6
|
-
|
|
7
|
-
private parentEntity: Enum;
|
|
8
|
-
|
|
9
|
-
public getParentEntity(): Enum {
|
|
10
|
-
return this.parentEntity;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
public setParentEntity(parentEntity: Enum): void {
|
|
14
|
-
this.parentEntity = parentEntity;
|
|
15
|
-
parentEntity.addValue(this);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
public getJSON(): string {
|
|
20
|
-
const mse: FamixJSONExporter = new FamixJSONExporter("EnumValue", this);
|
|
21
|
-
this.addPropertiesToExporter(mse);
|
|
22
|
-
return mse.getJSON();
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
public addPropertiesToExporter(exporter: FamixJSONExporter): void {
|
|
26
|
-
super.addPropertiesToExporter(exporter);
|
|
27
|
-
exporter.addProperty("parentEntity", this.getParentEntity());
|
|
28
|
-
}
|
|
29
|
-
}
|
|
1
|
+
import { FamixJSONExporter } from "../../famix_JSON_exporter";
|
|
2
|
+
import { StructuralEntity } from "./structural_entity";
|
|
3
|
+
import { Enum } from "./enum";
|
|
4
|
+
|
|
5
|
+
export class EnumValue extends StructuralEntity {
|
|
6
|
+
|
|
7
|
+
private parentEntity: Enum;
|
|
8
|
+
|
|
9
|
+
public getParentEntity(): Enum {
|
|
10
|
+
return this.parentEntity;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
public setParentEntity(parentEntity: Enum): void {
|
|
14
|
+
this.parentEntity = parentEntity;
|
|
15
|
+
parentEntity.addValue(this);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
public getJSON(): string {
|
|
20
|
+
const mse: FamixJSONExporter = new FamixJSONExporter("EnumValue", this);
|
|
21
|
+
this.addPropertiesToExporter(mse);
|
|
22
|
+
return mse.getJSON();
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
public addPropertiesToExporter(exporter: FamixJSONExporter): void {
|
|
26
|
+
super.addPropertiesToExporter(exporter);
|
|
27
|
+
exporter.addProperty("parentEntity", this.getParentEntity());
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { FamixJSONExporter } from "../../famix_JSON_exporter";
|
|
2
|
-
import { BehavioralEntity } from "./behavioral_entity";
|
|
3
|
-
|
|
4
|
-
export class Function extends BehavioralEntity {
|
|
5
|
-
|
|
6
|
-
public getJSON(): string {
|
|
7
|
-
const mse: FamixJSONExporter = new FamixJSONExporter("Function", this);
|
|
8
|
-
this.addPropertiesToExporter(mse);
|
|
9
|
-
return mse.getJSON();
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
public addPropertiesToExporter(exporter: FamixJSONExporter): void {
|
|
13
|
-
super.addPropertiesToExporter(exporter);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
1
|
+
import { FamixJSONExporter } from "../../famix_JSON_exporter";
|
|
2
|
+
import { BehavioralEntity } from "./behavioral_entity";
|
|
3
|
+
|
|
4
|
+
export class Function extends BehavioralEntity {
|
|
5
|
+
|
|
6
|
+
public getJSON(): string {
|
|
7
|
+
const mse: FamixJSONExporter = new FamixJSONExporter("Function", this);
|
|
8
|
+
this.addPropertiesToExporter(mse);
|
|
9
|
+
return mse.getJSON();
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
public addPropertiesToExporter(exporter: FamixJSONExporter): void {
|
|
13
|
+
super.addPropertiesToExporter(exporter);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { FamixJSONExporter } from "../../famix_JSON_exporter";
|
|
2
|
-
import { Variable } from "./variable";
|
|
3
|
-
|
|
4
|
-
export class ImplicitVariable extends Variable {
|
|
5
|
-
|
|
6
|
-
public getJSON(): string {
|
|
7
|
-
const mse: FamixJSONExporter = new FamixJSONExporter("ImplicitVariable", this);
|
|
8
|
-
this.addPropertiesToExporter(mse);
|
|
9
|
-
return mse.getJSON();
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
public addPropertiesToExporter(exporter: FamixJSONExporter): void {
|
|
13
|
-
super.addPropertiesToExporter(exporter);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
1
|
+
import { FamixJSONExporter } from "../../famix_JSON_exporter";
|
|
2
|
+
import { Variable } from "./variable";
|
|
3
|
+
|
|
4
|
+
export class ImplicitVariable extends Variable {
|
|
5
|
+
|
|
6
|
+
public getJSON(): string {
|
|
7
|
+
const mse: FamixJSONExporter = new FamixJSONExporter("ImplicitVariable", this);
|
|
8
|
+
this.addPropertiesToExporter(mse);
|
|
9
|
+
return mse.getJSON();
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
public addPropertiesToExporter(exporter: FamixJSONExporter): void {
|
|
13
|
+
super.addPropertiesToExporter(exporter);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
import { FamixJSONExporter } from "../../famix_JSON_exporter";
|
|
2
|
-
import { Association } from "./association";
|
|
3
|
-
import { Module } from "./module";
|
|
4
|
-
import { NamedEntity } from "./named_entity";
|
|
5
|
-
|
|
6
|
-
export class ImportClause extends Association {
|
|
7
|
-
|
|
8
|
-
private importer: Module;
|
|
9
|
-
|
|
10
|
-
public getImporter(): Module {
|
|
11
|
-
return this.importer;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
public setImporter(importer: Module): void {
|
|
15
|
-
this.importer = importer;
|
|
16
|
-
importer.addImportClause(this);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
private importedEntity: NamedEntity;
|
|
20
|
-
|
|
21
|
-
public getImportedEntity(): NamedEntity {
|
|
22
|
-
return this.importedEntity;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
public setImportedEntity(importedEntity: NamedEntity): void {
|
|
26
|
-
this.importedEntity = importedEntity;
|
|
27
|
-
importedEntity.addImport(this);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
private moduleSpecifier: string;
|
|
31
|
-
|
|
32
|
-
public getModuleSpecifier(): string {
|
|
33
|
-
return this.moduleSpecifier;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
public setModuleSpecifier(moduleSpecifier: string): void {
|
|
37
|
-
this.moduleSpecifier = moduleSpecifier;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
public getJSON(): string {
|
|
42
|
-
const mse: FamixJSONExporter = new FamixJSONExporter("ImportClause", this);
|
|
43
|
-
this.addPropertiesToExporter(mse);
|
|
44
|
-
return mse.getJSON();
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
public addPropertiesToExporter(exporter: FamixJSONExporter): void {
|
|
48
|
-
super.addPropertiesToExporter(exporter);
|
|
49
|
-
exporter.addProperty("importer", this.getImporter());
|
|
50
|
-
exporter.addProperty("importedEntity", this.getImportedEntity());
|
|
51
|
-
exporter.addProperty("moduleSpecifier", this.getModuleSpecifier());
|
|
52
|
-
}
|
|
53
|
-
}
|
|
1
|
+
import { FamixJSONExporter } from "../../famix_JSON_exporter";
|
|
2
|
+
import { Association } from "./association";
|
|
3
|
+
import { Module } from "./module";
|
|
4
|
+
import { NamedEntity } from "./named_entity";
|
|
5
|
+
|
|
6
|
+
export class ImportClause extends Association {
|
|
7
|
+
|
|
8
|
+
private importer: Module;
|
|
9
|
+
|
|
10
|
+
public getImporter(): Module {
|
|
11
|
+
return this.importer;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
public setImporter(importer: Module): void {
|
|
15
|
+
this.importer = importer;
|
|
16
|
+
importer.addImportClause(this);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
private importedEntity: NamedEntity;
|
|
20
|
+
|
|
21
|
+
public getImportedEntity(): NamedEntity {
|
|
22
|
+
return this.importedEntity;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
public setImportedEntity(importedEntity: NamedEntity): void {
|
|
26
|
+
this.importedEntity = importedEntity;
|
|
27
|
+
importedEntity.addImport(this);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
private moduleSpecifier: string;
|
|
31
|
+
|
|
32
|
+
public getModuleSpecifier(): string {
|
|
33
|
+
return this.moduleSpecifier;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
public setModuleSpecifier(moduleSpecifier: string): void {
|
|
37
|
+
this.moduleSpecifier = moduleSpecifier;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
public getJSON(): string {
|
|
42
|
+
const mse: FamixJSONExporter = new FamixJSONExporter("ImportClause", this);
|
|
43
|
+
this.addPropertiesToExporter(mse);
|
|
44
|
+
return mse.getJSON();
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
public addPropertiesToExporter(exporter: FamixJSONExporter): void {
|
|
48
|
+
super.addPropertiesToExporter(exporter);
|
|
49
|
+
exporter.addProperty("importer", this.getImporter());
|
|
50
|
+
exporter.addProperty("importedEntity", this.getImportedEntity());
|
|
51
|
+
exporter.addProperty("moduleSpecifier", this.getModuleSpecifier());
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
export {Access} from "./access";
|
|
2
|
-
export {Accessor} from "./accessor";
|
|
3
|
-
export {Alias} from "./alias";
|
|
4
|
-
export {Association} from "./association";
|
|
5
|
-
export {BehavioralEntity} from "./behavioral_entity";
|
|
6
|
-
export {CSourceLanguage} from "./c_source_language";
|
|
7
|
-
export {Class} from "./class";
|
|
8
|
-
export {Comment} from "./comment";
|
|
9
|
-
export {ContainerEntity} from "./container_entity";
|
|
10
|
-
export {CustomSourceLanguage} from "./custom_source_language";
|
|
11
|
-
export {Decorator} from "./decorator";
|
|
12
|
-
export {Entity} from "./entity";
|
|
13
|
-
export {EnumValue} from "./enum_value";
|
|
14
|
-
export {Enum} from "./enum";
|
|
15
|
-
export {Property} from "./property";
|
|
16
|
-
export {Function} from "./function";
|
|
17
|
-
export {ImplicitVariable} from "./implicit_variable";
|
|
18
|
-
export {ImportClause} from "./import_clause";
|
|
19
|
-
export {IndexedFileAnchor} from "./indexed_file_anchor";
|
|
20
|
-
export {Inheritance} from "./inheritance";
|
|
21
|
-
export {Interface} from "./interface";
|
|
22
|
-
export {Invocation} from "./invocation";
|
|
23
|
-
export {Method} from "./method";
|
|
24
|
-
export {Module} from "./module";
|
|
25
|
-
export {NamedEntity} from "./named_entity";
|
|
26
|
-
export {Namespace} from "./namespace";
|
|
27
|
-
export {TypeParameter} from "./type_parameter";
|
|
28
|
-
export {Parameter} from "./parameter";
|
|
29
|
-
export {ParameterizableClass} from "./parameterizable_class";
|
|
30
|
-
export {ParameterizableInterface} from "./parameterizable_interface";
|
|
31
|
-
export {ParameterizedType} from "./parameterized_type";
|
|
32
|
-
export {PrimitiveType} from "./primitive_type";
|
|
33
|
-
export {Reference} from "./reference";
|
|
34
|
-
export {ScopingEntity} from "./scoping_entity";
|
|
35
|
-
export {ScriptEntity} from "./script_entity";
|
|
36
|
-
export {SourceAnchor} from "./source_anchor";
|
|
37
|
-
export {SourceLanguage} from "./source_language";
|
|
38
|
-
export {SourcedEntity} from "./sourced_entity";
|
|
39
|
-
export {StructuralEntity} from "./structural_entity";
|
|
40
|
-
export {TextAnchor} from "./text_anchor";
|
|
41
|
-
export {Type} from "./type";
|
|
42
|
-
export {Variable} from "./variable";
|
|
1
|
+
export {Access} from "./access";
|
|
2
|
+
export {Accessor} from "./accessor";
|
|
3
|
+
export {Alias} from "./alias";
|
|
4
|
+
export {Association} from "./association";
|
|
5
|
+
export {BehavioralEntity} from "./behavioral_entity";
|
|
6
|
+
export {CSourceLanguage} from "./c_source_language";
|
|
7
|
+
export {Class} from "./class";
|
|
8
|
+
export {Comment} from "./comment";
|
|
9
|
+
export {ContainerEntity} from "./container_entity";
|
|
10
|
+
export {CustomSourceLanguage} from "./custom_source_language";
|
|
11
|
+
export {Decorator} from "./decorator";
|
|
12
|
+
export {Entity} from "./entity";
|
|
13
|
+
export {EnumValue} from "./enum_value";
|
|
14
|
+
export {Enum} from "./enum";
|
|
15
|
+
export {Property} from "./property";
|
|
16
|
+
export {Function} from "./function";
|
|
17
|
+
export {ImplicitVariable} from "./implicit_variable";
|
|
18
|
+
export {ImportClause} from "./import_clause";
|
|
19
|
+
export {IndexedFileAnchor} from "./indexed_file_anchor";
|
|
20
|
+
export {Inheritance} from "./inheritance";
|
|
21
|
+
export {Interface} from "./interface";
|
|
22
|
+
export {Invocation} from "./invocation";
|
|
23
|
+
export {Method} from "./method";
|
|
24
|
+
export {Module} from "./module";
|
|
25
|
+
export {NamedEntity} from "./named_entity";
|
|
26
|
+
export {Namespace} from "./namespace";
|
|
27
|
+
export {TypeParameter} from "./type_parameter";
|
|
28
|
+
export {Parameter} from "./parameter";
|
|
29
|
+
export {ParameterizableClass} from "./parameterizable_class";
|
|
30
|
+
export {ParameterizableInterface} from "./parameterizable_interface";
|
|
31
|
+
export {ParameterizedType} from "./parameterized_type";
|
|
32
|
+
export {PrimitiveType} from "./primitive_type";
|
|
33
|
+
export {Reference} from "./reference";
|
|
34
|
+
export {ScopingEntity} from "./scoping_entity";
|
|
35
|
+
export {ScriptEntity} from "./script_entity";
|
|
36
|
+
export {SourceAnchor} from "./source_anchor";
|
|
37
|
+
export {SourceLanguage} from "./source_language";
|
|
38
|
+
export {SourcedEntity} from "./sourced_entity";
|
|
39
|
+
export {StructuralEntity} from "./structural_entity";
|
|
40
|
+
export {TextAnchor} from "./text_anchor";
|
|
41
|
+
export {Type} from "./type";
|
|
42
|
+
export {Variable} from "./variable";
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import { FamixJSONExporter } from "../../famix_JSON_exporter";
|
|
2
|
-
import { SourceAnchor } from "./source_anchor";
|
|
3
|
-
|
|
4
|
-
export class IndexedFileAnchor extends SourceAnchor {
|
|
5
|
-
|
|
6
|
-
private startPos: number;
|
|
7
|
-
|
|
8
|
-
public getStartPos(): number {
|
|
9
|
-
return this.startPos;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
public setStartPos(startPos: number): void {
|
|
13
|
-
this.startPos = startPos;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
private endPos: number;
|
|
17
|
-
|
|
18
|
-
public getEndPos(): number {
|
|
19
|
-
return this.endPos;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
public setEndPos(endPos: number): void {
|
|
23
|
-
this.endPos = endPos;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
private fileName: string;
|
|
27
|
-
|
|
28
|
-
public getFileName(): string {
|
|
29
|
-
return this.fileName;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
public setFileName(fileName: string): void {
|
|
33
|
-
this.fileName = fileName;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
public getJSON(): string {
|
|
38
|
-
const mse: FamixJSONExporter = new FamixJSONExporter("IndexedFileAnchor", this);
|
|
39
|
-
this.addPropertiesToExporter(mse);
|
|
40
|
-
return mse.getJSON();
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
public addPropertiesToExporter(exporter: FamixJSONExporter): void {
|
|
44
|
-
super.addPropertiesToExporter(exporter);
|
|
45
|
-
exporter.addProperty("startPos", this.getStartPos());
|
|
46
|
-
exporter.addProperty("endPos", this.getEndPos());
|
|
47
|
-
exporter.addProperty("fileName", this.getFileName());
|
|
48
|
-
}
|
|
49
|
-
}
|
|
1
|
+
import { FamixJSONExporter } from "../../famix_JSON_exporter";
|
|
2
|
+
import { SourceAnchor } from "./source_anchor";
|
|
3
|
+
|
|
4
|
+
export class IndexedFileAnchor extends SourceAnchor {
|
|
5
|
+
|
|
6
|
+
private startPos: number;
|
|
7
|
+
|
|
8
|
+
public getStartPos(): number {
|
|
9
|
+
return this.startPos;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
public setStartPos(startPos: number): void {
|
|
13
|
+
this.startPos = startPos;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
private endPos: number;
|
|
17
|
+
|
|
18
|
+
public getEndPos(): number {
|
|
19
|
+
return this.endPos;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
public setEndPos(endPos: number): void {
|
|
23
|
+
this.endPos = endPos;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
private fileName: string;
|
|
27
|
+
|
|
28
|
+
public getFileName(): string {
|
|
29
|
+
return this.fileName;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
public setFileName(fileName: string): void {
|
|
33
|
+
this.fileName = fileName;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
public getJSON(): string {
|
|
38
|
+
const mse: FamixJSONExporter = new FamixJSONExporter("IndexedFileAnchor", this);
|
|
39
|
+
this.addPropertiesToExporter(mse);
|
|
40
|
+
return mse.getJSON();
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
public addPropertiesToExporter(exporter: FamixJSONExporter): void {
|
|
44
|
+
super.addPropertiesToExporter(exporter);
|
|
45
|
+
exporter.addProperty("startPos", this.getStartPos());
|
|
46
|
+
exporter.addProperty("endPos", this.getEndPos());
|
|
47
|
+
exporter.addProperty("fileName", this.getFileName());
|
|
48
|
+
}
|
|
49
|
+
}
|