author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Mon, 06 Jul 2015 22:28:52 +0100 | |
changeset 40 | 7d1e77b6115e |
parent 32 | d7464405cbda |
child 43 | 9327987437ae |
permissions | -rw-r--r-- |
32
d7464405cbda
Package renamed from cvut:fel/cface to jv:cface
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
19
diff
changeset
|
1 |
"{ Package: 'jv:cface' }" |
1 | 2 |
|
3 |
"{ NameSpace: Cface }" |
|
4 |
||
5 |
CDefinitionNode subclass:#CEnumValueNode |
|
4
fc74bd43a3eb
Minor parser fixes to parse Cairo Xlib stuff
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
6 |
instanceVariableNames:'intValue' |
1 | 7 |
classVariableNames:'' |
8 |
poolDictionaries:'' |
|
9 |
category:'Cface-C AST' |
|
10 |
! |
|
11 |
||
12 |
!CEnumValueNode class methodsFor:'documentation'! |
|
13 |
||
14 |
history |
|
15 |
||
16 |
"Created: / 25-10-2007 / 17:44:38 / haja" |
|
17 |
"Created: #name / 25-10-2007 / 17:44:44 / haja" |
|
18 |
"Created: #name: / 25-10-2007 / 17:44:44 / haja" |
|
19 |
"Created: #id / 25-10-2007 / 17:44:44 / haja" |
|
20 |
"Created: #id: / 25-10-2007 / 17:44:44 / haja" |
|
21 |
"Created: #name:id: / 25-10-2007 / 18:15:51 / haja" |
|
22 |
"Deleted: #id: / 25-10-2007 / 18:17:19 / haja" |
|
23 |
"Deleted: #id / 25-10-2007 / 18:17:19 / haja" |
|
24 |
"Created: #number / 25-10-2007 / 18:17:21 / haja" |
|
25 |
"Created: #number: / 25-10-2007 / 18:17:21 / haja" |
|
26 |
"Created: #name:number: / 25-10-2007 / 18:17:40 / haja" |
|
27 |
"Deleted: #name:id: / 25-10-2007 / 18:17:42 / haja" |
|
28 |
"Created: #acceptVisitor: / 02-11-2007 / 10:43:07 / haja" |
|
29 |
! ! |
|
30 |
||
31 |
!CEnumValueNode methodsFor:'accessing'! |
|
32 |
||
33 |
intValue |
|
34 |
^ intValue |
|
35 |
||
36 |
"Created: / 10-02-2008 / 19:20:27 / janfrog" |
|
37 |
! |
|
38 |
||
39 |
intValue:something |
|
40 |
intValue := something. |
|
41 |
||
42 |
"Created: / 10-02-2008 / 19:20:27 / janfrog" |
|
43 |
! ! |
|
44 |
||
45 |
!CEnumValueNode methodsFor:'printing'! |
|
46 |
||
47 |
printOn: stream indent: level |
|
48 |
||
49 |
stream |
|
50 |
nextPutAll:'(value ('; |
|
51 |
nextPutAll:cName; |
|
52 |
nextPutAll:') '; |
|
53 |
nextPutAll:intValue printString; |
|
54 |
nextPut:$) |
|
55 |
||
56 |
"Created: / 17-02-2008 / 18:06:13 / janfrog" |
|
57 |
! ! |
|
58 |
||
59 |
!CEnumValueNode methodsFor:'testing'! |
|
60 |
||
61 |
isCEnumValueNode |
|
62 |
^ true |
|
63 |
||
64 |
"Created: / 17-02-2008 / 21:49:53 / janfrog" |
|
65 |
! ! |
|
66 |
||
67 |
!CEnumValueNode methodsFor:'visiting'! |
|
68 |
||
69 |
acceptVisitor:aVisitor |
|
70 |
"Double dispatch back to the visitor, passing my type encoded in |
|
71 |
the selector (visitor pattern)" |
|
72 |
"stub code automatically generated - please change if required" |
|
73 |
||
74 |
^ aVisitor visitCEnumValueNode:self |
|
75 |
||
76 |
"Created: / 02-11-2007 / 10:43:07 / haja" |
|
77 |
"Modified: / 12-02-2008 / 23:05:47 / janfrog" |
|
78 |
! ! |
|
79 |
||
80 |
!CEnumValueNode class methodsFor:'documentation'! |
|
81 |
||
82 |
version |
|
19
1297bf936bfb
Some fixes for modern GCC XML
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14
diff
changeset
|
83 |
^ '$Id$' |
14 | 84 |
! |
85 |
||
86 |
version_SVN |
|
87 |
^ '$Id$' |
|
1 | 88 |
! ! |