-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFASTPyClassDefinition.class.st
More file actions
107 lines (86 loc) · 3.12 KB
/
FASTPyClassDefinition.class.st
File metadata and controls
107 lines (86 loc) · 3.12 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
"
I represent a class definition. I have a name, a list of expressions to declare my superclasses, a list of keywords to customize the metaclass and a block of code.
## Relations
======================
### Parents
| Relation | Origin | Opposite | Type | Comment |
|---|
| `fastBehaviouralParent` | `FASTTStatementBlock` | `statementBlock` | `FASTTWithStatements` | Behavioural entity containing the statement block.|
| `invokedIn` | `FASTTNamedEntity` | `invoked` | `FASTTInvocation` | Optional invocation where this name is used|
| `parentLoopStatement` | `FASTTStatement` | `body` | `FASTTLoopStatement` | Optional loop of which this statement is the body|
| `statementContainer` | `FASTTStatement` | `statements` | `FASTTStatementBlock` | Block containing this statement.|
### Children
| Relation | Origin | Opposite | Type | Comment |
|---|
| `decorators` | `FASTPyTDefinition` | `parentDefinition` | `FASTPyDecorator` | |
| `keywords` | `FASTPyClassDefinition` | `parentClassDefinition` | `FASTPyKeywordArgument` | |
| `statements` | `FASTTStatementBlock` | `statementContainer` | `FASTTStatement` | Statements enclosed in this block|
| `superclasses` | `FASTPyClassDefinition` | `parentClassDefinition` | `FASTPyTSuperclass` | |
| `typeParameters` | `FASTPyTWithTypeParameters` | `parentWithTypeParameters` | `FASTPyType` | |
## Properties
======================
| Name | Type | Default value | Comment |
|---|
| `endPos` | `Number` | nil | |
| `name` | `String` | nil | |
| `startPos` | `Number` | nil | |
"
Class {
#name : 'FASTPyClassDefinition',
#superclass : 'FASTPyStatement',
#traits : 'FASTPyTDefinition + FASTPyTWithTypeParameters',
#classTraits : 'FASTPyTDefinition classTrait + FASTPyTWithTypeParameters classTrait',
#instVars : [
'#keywords => FMMany type: #FASTPyKeywordArgument opposite: #parentClassDefinition',
'#superclasses => FMMany type: #FASTPyTSuperclass opposite: #parentClassDefinition'
],
#category : 'FAST-Python-Model-Entities',
#package : 'FAST-Python-Model',
#tag : 'Entities'
}
{ #category : 'meta' }
FASTPyClassDefinition class >> annotation [
<FMClass: #ClassDefinition super: #FASTPyStatement>
<package: #'FAST-Python-Model'>
<generated>
^ self
]
{ #category : 'adding' }
FASTPyClassDefinition >> addKeyword: anObject [
<generated>
^ self keywords add: anObject
]
{ #category : 'adding' }
FASTPyClassDefinition >> addSuperclass: anObject [
<generated>
^ self superclasses add: anObject
]
{ #category : 'testing' }
FASTPyClassDefinition >> isClassDefinition [
<generated>
^ true
]
{ #category : 'accessing' }
FASTPyClassDefinition >> keywords [
"Relation named: #keywords type: #FASTPyKeywordArgument opposite: #parentClassDefinition"
<generated>
<derived>
^ keywords
]
{ #category : 'accessing' }
FASTPyClassDefinition >> keywords: anObject [
<generated>
keywords value: anObject
]
{ #category : 'accessing' }
FASTPyClassDefinition >> superclasses [
"Relation named: #superclasses type: #FASTPyTSuperclass opposite: #parentClassDefinition"
<generated>
<derived>
^ superclasses
]
{ #category : 'accessing' }
FASTPyClassDefinition >> superclasses: anObject [
<generated>
superclasses value: anObject
]