author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Wed, 04 Sep 2013 18:00:49 +0100 | |
branch | default-browser-environment |
changeset 13493 | dd0651e3bb98 |
parent 12995 | 211c2022783c |
child 13471 | 3ee11c3d0306 |
child 13532 | aa233ac282bc |
permissions | -rw-r--r-- |
12910 | 1 |
"{ Package: 'stx:libtool' }" |
2 |
||
3 |
SyntaxElement subclass:#SyntaxElementVariable |
|
12978 | 4 |
instanceVariableNames:'name assigned' |
12910 | 5 |
classVariableNames:'' |
6 |
poolDictionaries:'' |
|
7 |
category:'Interface-CodeView-Syntax' |
|
8 |
! |
|
9 |
||
10 |
!SyntaxElementVariable class methodsFor:'documentation'! |
|
11 |
||
12 |
documentation |
|
13 |
" |
|
14 |
Replace 'SyntaxElement', 'NewClass1' and |
|
15 |
the empty string arguments by true values. |
|
16 |
||
17 |
Install (or change) the class by 'accepting', |
|
18 |
either via the menu or the keyboard (usually CMD-A). |
|
19 |
||
20 |
You can also change the category simply by editing |
|
21 |
the categoryString and accepting. |
|
22 |
||
23 |
To be nice to others (and yourself later), do not forget to |
|
24 |
add some documentation; preferably under the classes documentation |
|
25 |
protocol. |
|
26 |
(see the `create documentation stubs' item in the methodList menu; |
|
27 |
switch from instance to class to find this menu item.) |
|
28 |
||
29 |
Notice, that ST/X uses the convention to document the class using |
|
30 |
comment-only class methods (however, ST80 comments are supported and |
|
31 |
can be changed via the class-documentation menu). |
|
32 |
||
33 |
" |
|
34 |
! ! |
|
35 |
||
36 |
!SyntaxElementVariable methodsFor:'accessing'! |
|
37 |
||
38 |
assigned |
|
39 |
^ assigned |
|
40 |
! |
|
41 |
||
42 |
assigned:something |
|
43 |
assigned := something. |
|
12978 | 44 |
! |
45 |
||
46 |
name |
|
47 |
^ name |
|
48 |
! |
|
49 |
||
50 |
name:something |
|
51 |
name := something. |
|
12910 | 52 |
! ! |
53 |
||
54 |
!SyntaxElementVariable methodsFor:'queries'! |
|
55 |
||
12978 | 56 |
isClass |
57 |
^ type == #class |
|
58 |
! |
|
59 |
||
60 |
isGlobal |
|
61 |
^ (type == #GlobalVariable) or:[ type == #class] |
|
62 |
! |
|
63 |
||
12995
211c2022783c
class: SyntaxElementVariable
Claus Gittinger <cg@exept.de>
parents:
12988
diff
changeset
|
64 |
isInstanceVariable |
211c2022783c
class: SyntaxElementVariable
Claus Gittinger <cg@exept.de>
parents:
12988
diff
changeset
|
65 |
^ (type == #InstanceVariable) |
211c2022783c
class: SyntaxElementVariable
Claus Gittinger <cg@exept.de>
parents:
12988
diff
changeset
|
66 |
! |
211c2022783c
class: SyntaxElementVariable
Claus Gittinger <cg@exept.de>
parents:
12988
diff
changeset
|
67 |
|
12910 | 68 |
isVariable |
69 |
^ true |
|
70 |
! ! |
|
71 |
||
72 |
!SyntaxElementVariable class methodsFor:'documentation'! |
|
73 |
||
74 |
version |
|
12995
211c2022783c
class: SyntaxElementVariable
Claus Gittinger <cg@exept.de>
parents:
12988
diff
changeset
|
75 |
^ '$Header: /cvs/stx/stx/libtool/SyntaxElementVariable.st,v 1.4 2013-06-24 17:09:21 cg Exp $' |
12910 | 76 |
! |
77 |
||
78 |
version_CVS |
|
12995
211c2022783c
class: SyntaxElementVariable
Claus Gittinger <cg@exept.de>
parents:
12988
diff
changeset
|
79 |
^ '$Header: /cvs/stx/stx/libtool/SyntaxElementVariable.st,v 1.4 2013-06-24 17:09:21 cg Exp $' |
12910 | 80 |
! ! |
81 |