1
|
1 |
"{ Package: 'cvut:fel/cface' }"
|
|
2 |
|
|
3 |
"{ NameSpace: Cface }"
|
|
4 |
|
|
5 |
CDefinitionNode subclass:#CEnumValueNode
|
|
6 |
instanceVariableNames:'smalltalkNamespace intValue'
|
|
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 |
smalltalkClass
|
|
46 |
|
|
47 |
^self smalltalkName
|
|
48 |
|
|
49 |
"Created: / 17-02-2008 / 21:03:24 / janfrog"
|
|
50 |
!
|
|
51 |
|
|
52 |
smalltalkClass: className
|
|
53 |
|
|
54 |
self smalltalkName: className
|
|
55 |
|
|
56 |
"Created: / 17-02-2008 / 21:03:24 / janfrog"
|
|
57 |
!
|
|
58 |
|
|
59 |
smalltalkNamespace
|
|
60 |
^ smalltalkNamespace
|
|
61 |
|
|
62 |
"Created: / 17-02-2008 / 21:03:02 / janfrog"
|
|
63 |
!
|
|
64 |
|
|
65 |
smalltalkNamespace:something
|
|
66 |
smalltalkNamespace := something.
|
|
67 |
|
|
68 |
"Created: / 17-02-2008 / 21:03:02 / janfrog"
|
|
69 |
! !
|
|
70 |
|
|
71 |
!CEnumValueNode methodsFor:'printing'!
|
|
72 |
|
|
73 |
printOn: stream indent: level
|
|
74 |
|
|
75 |
stream
|
|
76 |
nextPutAll:'(value (';
|
|
77 |
nextPutAll:cName;
|
|
78 |
nextPutAll:') ';
|
|
79 |
nextPutAll:intValue printString;
|
|
80 |
nextPut:$)
|
|
81 |
|
|
82 |
"Created: / 17-02-2008 / 18:06:13 / janfrog"
|
|
83 |
! !
|
|
84 |
|
|
85 |
!CEnumValueNode methodsFor:'testing'!
|
|
86 |
|
|
87 |
isCEnumValueNode
|
|
88 |
^ true
|
|
89 |
|
|
90 |
"Created: / 17-02-2008 / 21:49:53 / janfrog"
|
|
91 |
! !
|
|
92 |
|
|
93 |
!CEnumValueNode methodsFor:'visiting'!
|
|
94 |
|
|
95 |
acceptVisitor:aVisitor
|
|
96 |
"Double dispatch back to the visitor, passing my type encoded in
|
|
97 |
the selector (visitor pattern)"
|
|
98 |
"stub code automatically generated - please change if required"
|
|
99 |
|
|
100 |
^ aVisitor visitCEnumValueNode:self
|
|
101 |
|
|
102 |
"Created: / 02-11-2007 / 10:43:07 / haja"
|
|
103 |
"Modified: / 12-02-2008 / 23:05:47 / janfrog"
|
|
104 |
! !
|
|
105 |
|
|
106 |
!CEnumValueNode class methodsFor:'documentation'!
|
|
107 |
|
|
108 |
version
|
|
109 |
^ '$Header: /opt/data/cvs/cvut-fel/cface/Cface__CEnumValueNode.st,v 1.1 2008/02/26 15:57:17 vranyj1 Exp $'
|
|
110 |
! !
|