1
|
1 |
"{ Package: 'cvut:fel/cface' }"
|
|
2 |
|
|
3 |
"{ NameSpace: Cface }"
|
|
4 |
|
|
5 |
CTypeNode subclass:#CDerivedTypeNode
|
|
6 |
instanceVariableNames:'smalltalkNamespace'
|
|
7 |
classVariableNames:''
|
|
8 |
poolDictionaries:''
|
|
9 |
category:'Cface-C AST'
|
|
10 |
!
|
|
11 |
|
|
12 |
|
|
13 |
!CDerivedTypeNode methodsFor:'accessing'!
|
|
14 |
|
|
15 |
smalltalkClass
|
|
16 |
|
|
17 |
^self smalltalkName
|
|
18 |
|
|
19 |
"Created: / 17-02-2008 / 20:47:40 / janfrog"
|
|
20 |
!
|
|
21 |
|
|
22 |
smalltalkClass: className
|
|
23 |
|
|
24 |
self smalltalkName: className
|
|
25 |
|
|
26 |
"Created: / 17-02-2008 / 20:47:32 / janfrog"
|
|
27 |
!
|
|
28 |
|
|
29 |
smalltalkNamespace
|
|
30 |
^ smalltalkNamespace
|
|
31 |
|
|
32 |
"Created: / 17-02-2008 / 20:47:13 / janfrog"
|
|
33 |
!
|
|
34 |
|
|
35 |
smalltalkNamespace:something
|
|
36 |
smalltalkNamespace := something.
|
|
37 |
|
|
38 |
"Created: / 17-02-2008 / 20:47:13 / janfrog"
|
|
39 |
! !
|
|
40 |
|
|
41 |
!CDerivedTypeNode methodsFor:'printing'!
|
|
42 |
|
|
43 |
printOn: stream indent: level
|
|
44 |
|
|
45 |
self smalltalkNamespace ifNotNil:
|
|
46 |
[stream nextPutAll:';; Namespace: '; nextPutAll: self smalltalkNamespace; cr; next: level put: Character tab].
|
|
47 |
self smalltalkClass ifNotNil:
|
|
48 |
[stream nextPutAll:';; Class: '; nextPutAll: self smalltalkClass; cr; next: level put: Character tab].
|
|
49 |
|
|
50 |
"Created: / 18-02-2008 / 14:33:01 / janfrog"
|
|
51 |
! !
|
|
52 |
|
|
53 |
!CDerivedTypeNode methodsFor:'testing'!
|
|
54 |
|
|
55 |
isAnonymous
|
|
56 |
|
|
57 |
^cName isNil
|
|
58 |
|
|
59 |
"Created: / 17-02-2008 / 22:23:25 / janfrog"
|
|
60 |
! !
|
|
61 |
|
|
62 |
!CDerivedTypeNode class methodsFor:'documentation'!
|
|
63 |
|
|
64 |
version
|
|
65 |
^ '$Header: /opt/data/cvs/cvut-fel/cface/Cface__CDerivedTypeNode.st,v 1.1 2008/02/26 15:59:26 vranyj1 Exp $'
|
|
66 |
! !
|