author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Thu, 09 Feb 2017 09:56:47 +0000 | |
branch | jv |
changeset 17459 | 9f54cb54204c |
parent 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 |
||
16735 | 14 |
"{ NameSpace: Smalltalk }" |
15 |
||
12910 | 16 |
SyntaxElement subclass:#SyntaxElementVariable |
12978 | 17 |
instanceVariableNames:'name assigned' |
12910 | 18 |
classVariableNames:'' |
19 |
poolDictionaries:'' |
|
20 |
category:'Interface-CodeView-Syntax' |
|
21 |
! |
|
22 |
||
23 |
!SyntaxElementVariable class methodsFor:'documentation'! |
|
24 |
||
13821 | 25 |
copyright |
26 |
" |
|
27 |
COPYRIGHT (c) 2006 by eXept Software AG |
|
28 |
All Rights Reserved |
|
29 |
||
30 |
This software is furnished under a license and may be used |
|
31 |
only in accordance with the terms of that license and with the |
|
32 |
inclusion of the above copyright notice. This software may not |
|
33 |
be provided or otherwise made available to, or used by, any |
|
34 |
other person. No title to or ownership of the software is |
|
35 |
hereby transferred. |
|
36 |
" |
|
37 |
! |
|
38 |
||
12910 | 39 |
documentation |
40 |
" |
|
16735 | 41 |
documentation to be added |
12910 | 42 |
|
16735 | 43 |
[author:] |
12910 | 44 |
|
16735 | 45 |
[instance variables:] |
12910 | 46 |
|
16735 | 47 |
[class variables:] |
12910 | 48 |
|
16735 | 49 |
[see also:] |
12910 | 50 |
" |
51 |
! ! |
|
52 |
||
53 |
!SyntaxElementVariable methodsFor:'accessing'! |
|
54 |
||
55 |
assigned |
|
13532
aa233ac282bc
class: SyntaxElementVariable
Claus Gittinger <cg@exept.de>
parents:
12995
diff
changeset
|
56 |
^ assigned ? false |
12910 | 57 |
! |
58 |
||
59 |
assigned:something |
|
60 |
assigned := something. |
|
12978 | 61 |
! |
62 |
||
63 |
name |
|
64 |
^ name |
|
65 |
! |
|
66 |
||
67 |
name:something |
|
68 |
name := something. |
|
12910 | 69 |
! ! |
70 |
||
71 |
!SyntaxElementVariable methodsFor:'queries'! |
|
72 |
||
12978 | 73 |
isClass |
74 |
^ type == #class |
|
75 |
! |
|
76 |
||
77 |
isGlobal |
|
78 |
^ (type == #GlobalVariable) or:[ type == #class] |
|
79 |
! |
|
80 |
||
12995
211c2022783c
class: SyntaxElementVariable
Claus Gittinger <cg@exept.de>
parents:
12988
diff
changeset
|
81 |
isInstanceVariable |
211c2022783c
class: SyntaxElementVariable
Claus Gittinger <cg@exept.de>
parents:
12988
diff
changeset
|
82 |
^ (type == #InstanceVariable) |
211c2022783c
class: SyntaxElementVariable
Claus Gittinger <cg@exept.de>
parents:
12988
diff
changeset
|
83 |
! |
211c2022783c
class: SyntaxElementVariable
Claus Gittinger <cg@exept.de>
parents:
12988
diff
changeset
|
84 |
|
12910 | 85 |
isVariable |
86 |
^ true |
|
87 |
! ! |
|
88 |
||
89 |
!SyntaxElementVariable class methodsFor:'documentation'! |
|
90 |
||
91 |
version |
|
16735 | 92 |
^ '$Header$' |
12910 | 93 |
! |
94 |
||
95 |
version_CVS |
|
16735 | 96 |
^ '$Header$' |
12910 | 97 |
! ! |
98 |