-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFASTPyFromModule.class.st
More file actions
77 lines (61 loc) · 1.8 KB
/
Copy pathFASTPyFromModule.class.st
File metadata and controls
77 lines (61 loc) · 1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
"
## Relations
======================
### Parents
| Relation | Origin | Opposite | Type | Comment |
|---|
| `import` | `FASTPyFromModule` | `fromModule` | `FASTPyImportFromStatement` | Import declaring me as from import module.|
## Properties
======================
| Name | Type | Default value | Comment |
|---|
| `segments` | `String` | nil | The segments of the module path. For example if you declare `xml.etree.ElementTree` as module, the segments will be { 'xml' . 'etree' . 'ElementTree'}.|
"
Class {
#name : 'FASTPyFromModule',
#superclass : 'FASTPyEntity',
#instVars : [
'#segments => FMProperty',
'#import => FMOne type: #FASTPyImportFromStatement opposite: #fromModule'
],
#category : 'FAST-Python-Model-Entities',
#package : 'FAST-Python-Model',
#tag : 'Entities'
}
{ #category : 'meta' }
FASTPyFromModule class >> annotation [
<FMClass: #FromModule super: #FASTPyEntity>
<package: #'FAST-Python-Model'>
<generated>
]
{ #category : 'adding' }
FASTPyFromModule >> addSegments: aCollection [
segments := segments , aCollection
]
{ #category : 'accessing' }
FASTPyFromModule >> import [
"Relation named: #import type: #FASTPyImportFromStatement opposite: #fromModule"
<generated>
<FMComment: 'Import declaring me as from import module.'>
<container>
<derived>
^ import
]
{ #category : 'accessing' }
FASTPyFromModule >> import: anObject [
<generated>
import := anObject
]
{ #category : 'accessing' }
FASTPyFromModule >> segments [
<FMProperty: #segments type: #String>
<generated>
<multivalued>
<FMComment: 'The segments of the module path. For example if you declare `xml.etree.ElementTree` as module, the segments will be { ''xml'' . ''etree'' . ''ElementTree''}.'>
^ segments
]
{ #category : 'accessing' }
FASTPyFromModule >> segments: anObject [
<generated>
segments := anObject
]