author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Wed, 01 Apr 2015 10:38:01 +0100 | |
branch | jv |
changeset 15566 | 184cea584be5 |
parent 13609 | 8b400fde34ef |
parent 13821 | 3e9428fa12b6 |
child 16738 | 1a1b5477fdd5 |
permissions | -rw-r--r-- |
13821 | 1 |
" |
2 |
COPYRIGHT (c) 2006 by eXept Software AG |
|
3 |
All Rights Reserved |
|
4 |
||
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
12910 | 12 |
"{ Package: 'stx:libtool' }" |
13 |
||
14 |
SyntaxElement subclass:#SyntaxElementVariable |
|
12978 | 15 |
instanceVariableNames:'name assigned' |
12910 | 16 |
classVariableNames:'' |
17 |
poolDictionaries:'' |
|
18 |
category:'Interface-CodeView-Syntax' |
|
19 |
! |
|
20 |
||
21 |
!SyntaxElementVariable class methodsFor:'documentation'! |
|
22 |
||
13821 | 23 |
copyright |
24 |
" |
|
25 |
COPYRIGHT (c) 2006 by eXept Software AG |
|
26 |
All Rights Reserved |
|
27 |
||
28 |
This software is furnished under a license and may be used |
|
29 |
only in accordance with the terms of that license and with the |
|
30 |
inclusion of the above copyright notice. This software may not |
|
31 |
be provided or otherwise made available to, or used by, any |
|
32 |
other person. No title to or ownership of the software is |
|
33 |
hereby transferred. |
|
34 |
" |
|
35 |
! |
|
36 |
||
12910 | 37 |
documentation |
38 |
" |
|
39 |
Replace 'SyntaxElement', 'NewClass1' and |
|
40 |
the empty string arguments by true values. |
|
41 |
||
42 |
Install (or change) the class by 'accepting', |
|
43 |
either via the menu or the keyboard (usually CMD-A). |
|
44 |
||
45 |
You can also change the category simply by editing |
|
46 |
the categoryString and accepting. |
|
47 |
||
48 |
To be nice to others (and yourself later), do not forget to |
|
49 |
add some documentation; preferably under the classes documentation |
|
50 |
protocol. |
|
51 |
(see the `create documentation stubs' item in the methodList menu; |
|
52 |
switch from instance to class to find this menu item.) |
|
53 |
||
54 |
Notice, that ST/X uses the convention to document the class using |
|
55 |
comment-only class methods (however, ST80 comments are supported and |
|
56 |
can be changed via the class-documentation menu). |
|
57 |
||
58 |
" |
|
59 |
! ! |
|
60 |
||
61 |
!SyntaxElementVariable methodsFor:'accessing'! |
|
62 |
||
63 |
assigned |
|
13532
aa233ac282bc
class: SyntaxElementVariable
Claus Gittinger <cg@exept.de>
parents:
12995
diff
changeset
|
64 |
^ assigned ? false |
12910 | 65 |
! |
66 |
||
67 |
assigned:something |
|
68 |
assigned := something. |
|
12978 | 69 |
! |
70 |
||
71 |
name |
|
72 |
^ name |
|
73 |
! |
|
74 |
||
75 |
name:something |
|
76 |
name := something. |
|
12910 | 77 |
! ! |
78 |
||
79 |
!SyntaxElementVariable methodsFor:'queries'! |
|
80 |
||
12978 | 81 |
isClass |
82 |
^ type == #class |
|
83 |
! |
|
84 |
||
85 |
isGlobal |
|
86 |
^ (type == #GlobalVariable) or:[ type == #class] |
|
87 |
! |
|
88 |
||
12995
211c2022783c
class: SyntaxElementVariable
Claus Gittinger <cg@exept.de>
parents:
12988
diff
changeset
|
89 |
isInstanceVariable |
211c2022783c
class: SyntaxElementVariable
Claus Gittinger <cg@exept.de>
parents:
12988
diff
changeset
|
90 |
^ (type == #InstanceVariable) |
211c2022783c
class: SyntaxElementVariable
Claus Gittinger <cg@exept.de>
parents:
12988
diff
changeset
|
91 |
! |
211c2022783c
class: SyntaxElementVariable
Claus Gittinger <cg@exept.de>
parents:
12988
diff
changeset
|
92 |
|
12910 | 93 |
isVariable |
94 |
^ true |
|
95 |
! ! |
|
96 |
||
97 |
!SyntaxElementVariable class methodsFor:'documentation'! |
|
98 |
||
99 |
version |
|
13821 | 100 |
^ '$Header: /cvs/stx/stx/libtool/SyntaxElementVariable.st,v 1.6 2014-02-05 18:57:25 cg Exp $' |
12910 | 101 |
! |
102 |
||
103 |
version_CVS |
|
13821 | 104 |
^ '$Header: /cvs/stx/stx/libtool/SyntaxElementVariable.st,v 1.6 2014-02-05 18:57:25 cg Exp $' |
12910 | 105 |
! ! |
106 |