11912
|
1 |
"
|
|
2 |
COPYRIGHT (c) 2009 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 |
"
|
11444
|
12 |
"{ Package: 'stx:libbasic' }"
|
|
13 |
|
|
14 |
Object subclass:#InlineObject
|
|
15 |
instanceVariableNames:''
|
|
16 |
classVariableNames:''
|
|
17 |
poolDictionaries:''
|
|
18 |
category:'Programming-Support'
|
|
19 |
!
|
|
20 |
|
11912
|
21 |
!InlineObject class methodsFor:'documentation'!
|
|
22 |
|
|
23 |
copyright
|
|
24 |
"
|
|
25 |
COPYRIGHT (c) 2009 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 |
|
|
37 |
documentation
|
|
38 |
"
|
11913
|
39 |
WARNING: InlineObjects are an experimental feature.
|
|
40 |
|
11912
|
41 |
All inlineObjects will be instances of an anonymous subclass of me.
|
11913
|
42 |
InlineObjects are written as literals of the form:
|
11912
|
43 |
|
|
44 |
#{
|
|
45 |
filedName1: value1.
|
|
46 |
filedName2: value2.
|
|
47 |
...
|
|
48 |
filedNameN: valueN.
|
|
49 |
}
|
|
50 |
|
|
51 |
For example:
|
|
52 |
|
|
53 |
#{
|
|
54 |
firstName: 'Peter'.
|
|
55 |
lastName: 'Miller'.
|
|
56 |
age: 25.
|
|
57 |
}
|
|
58 |
|
|
59 |
"
|
|
60 |
! !
|
|
61 |
|
|
62 |
!InlineObject methodsFor:'printing & storing'!
|
|
63 |
|
|
64 |
storeOn:aStream
|
|
65 |
aStream nextPutAll:'#{'.
|
|
66 |
self class allInstVarNames keysAndValuesDo:[:i :nm |
|
|
67 |
aStream nextPutAll:nm; nextPutAll:':'.
|
|
68 |
(self instVarAt:i) storeOn:aStream.
|
|
69 |
aStream nextPutAll:'. '.
|
|
70 |
].
|
|
71 |
aStream nextPutAll:'}'.
|
|
72 |
! !
|
11444
|
73 |
|
|
74 |
!InlineObject class methodsFor:'documentation'!
|
|
75 |
|
|
76 |
version
|
11913
|
77 |
^ '$Header: /cvs/stx/stx/libbasic/InlineObject.st,v 1.3 2009-09-11 13:05:01 cg Exp $'
|
11444
|
78 |
! !
|