author | Claus Gittinger <cg@exept.de> |
Wed, 16 Aug 2017 20:22:54 +0200 | |
branch | cvs_MAIN |
changeset 3740 | eb2b40dd162d |
parent 3412 | df11bb428463 |
child 3940 | 0384371831e4 |
permissions | -rw-r--r-- |
749 | 1 |
" |
3324
a58245c0e83a
Updated copyright notices.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3194
diff
changeset
|
2 |
COPYRIGHT (c) 1996-2015 by Claus Gittinger |
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2250
diff
changeset
|
3 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2250
diff
changeset
|
4 |
New code and modifications done at SWING Research Group [1]: |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2250
diff
changeset
|
5 |
|
3324
a58245c0e83a
Updated copyright notices.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3194
diff
changeset
|
6 |
COPYRIGHT (c) 2010-2015 by Jan Vrany, Jan Kurs and Marcel Hlopko |
749 | 7 |
SWING Research Group, Czech Technical University in Prague |
8 |
||
9 |
This software is furnished under a license and may be used |
|
10 |
only in accordance with the terms of that license and with the |
|
11 |
inclusion of the above copyright notice. This software may not |
|
12 |
be provided or otherwise made available to, or used by, any |
|
13 |
other person. No title to or ownership of the software is |
|
14 |
hereby transferred. |
|
15 |
||
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2250
diff
changeset
|
16 |
[1] Code written at SWING Research Group contains a signature |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2250
diff
changeset
|
17 |
of one of the above copright owners. For exact set of such code, |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2250
diff
changeset
|
18 |
see the differences between this version and version stx:libjava |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2250
diff
changeset
|
19 |
as of 1.9.2010 |
749 | 20 |
" |
21 |
"{ Package: 'stx:libjava' }" |
|
22 |
||
23 |
AbstractSourceFileWriter subclass:#JavaSourceFileWriter |
|
24 |
instanceVariableNames:'' |
|
25 |
classVariableNames:'' |
|
26 |
poolDictionaries:'' |
|
27 |
category:'Languages-Java-Support' |
|
28 |
! |
|
29 |
||
30 |
!JavaSourceFileWriter class methodsFor:'documentation'! |
|
31 |
||
32 |
copyright |
|
33 |
" |
|
3324
a58245c0e83a
Updated copyright notices.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3194
diff
changeset
|
34 |
COPYRIGHT (c) 1996-2015 by Claus Gittinger |
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2250
diff
changeset
|
35 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2250
diff
changeset
|
36 |
New code and modifications done at SWING Research Group [1]: |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2250
diff
changeset
|
37 |
|
3324
a58245c0e83a
Updated copyright notices.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3194
diff
changeset
|
38 |
COPYRIGHT (c) 2010-2015 by Jan Vrany, Jan Kurs and Marcel Hlopko |
749 | 39 |
SWING Research Group, Czech Technical University in Prague |
40 |
||
41 |
This software is furnished under a license and may be used |
|
42 |
only in accordance with the terms of that license and with the |
|
43 |
inclusion of the above copyright notice. This software may not |
|
44 |
be provided or otherwise made available to, or used by, any |
|
45 |
other person. No title to or ownership of the software is |
|
46 |
hereby transferred. |
|
47 |
||
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2250
diff
changeset
|
48 |
[1] Code written at SWING Research Group contains a signature |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2250
diff
changeset
|
49 |
of one of the above copright owners. For exact set of such code, |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2250
diff
changeset
|
50 |
see the differences between this version and version stx:libjava |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2250
diff
changeset
|
51 |
as of 1.9.2010 |
749 | 52 |
|
53 |
" |
|
54 |
! ! |
|
55 |
||
56 |
!JavaSourceFileWriter methodsFor:'source writing'! |
|
57 |
||
58 |
fileOut:class on:stream withTimeStamp:stampIt withInitialize:initIt withDefinition:withDefinition methodFilter:methodFilter encoder:encoderOrNil |
|
59 |
"raise an error: must be redefined in concrete subclass(es)" |
|
60 |
||
3194
9aade8151557
Added JavaSourceFileWriter>>fileOut:on:withTimestamp:...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
61 |
stream nextPutAll: class source. |
9aade8151557
Added JavaSourceFileWriter>>fileOut:on:withTimestamp:...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
62 |
|
9aade8151557
Added JavaSourceFileWriter>>fileOut:on:withTimestamp:...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
63 |
"Modified: / 04-08-2014 / 00:23:08 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
749 | 64 |
! |
65 |
||
66 |
fileOutMethods:methods on:stream |
|
67 |
"superclass AbstractSourceFileWriter says that I am responsible to implement this method" |
|
68 |
||
3194
9aade8151557
Added JavaSourceFileWriter>>fileOut:on:withTimestamp:...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
69 |
^ self shouldNotImplement |
9aade8151557
Added JavaSourceFileWriter>>fileOut:on:withTimestamp:...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
70 |
|
9aade8151557
Added JavaSourceFileWriter>>fileOut:on:withTimestamp:...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
71 |
"Modified: / 04-08-2014 / 00:36:47 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
749 | 72 |
! |
73 |
||
74 |
fileOutPackageDefinition:packageId on:stream |
|
75 |
"Files out a package definition on the stream, so all subsequent |
|
76 |
code entities will be placed in that package" |
|
77 |
||
3194
9aade8151557
Added JavaSourceFileWriter>>fileOut:on:withTimestamp:...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
78 |
^ self shouldNotImplement |
9aade8151557
Added JavaSourceFileWriter>>fileOut:on:withTimestamp:...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
79 |
|
9aade8151557
Added JavaSourceFileWriter>>fileOut:on:withTimestamp:...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2731
diff
changeset
|
80 |
"Modified: / 04-08-2014 / 00:36:53 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
749 | 81 |
! ! |
82 |
||
83 |
!JavaSourceFileWriter methodsFor:'source writing - comments'! |
|
84 |
||
85 |
fileOutCommentEndOn:aStream |
|
86 |
" |
|
87 |
Writes a comment end mark on aStream." |
|
88 |
||
89 |
^ aStream nextPutAll: ' */' |
|
90 |
||
91 |
"Modified: / 27-10-2010 / 18:39:49 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
92 |
! |
|
93 |
||
94 |
fileOutCommentLine:aString on:aStream |
|
95 |
"superclass AbstractSourceFileWriter says that I am responsible to implement this method" |
|
96 |
||
97 |
^ aStream nextPutAll: '// '; nextPutAll: aString |
|
98 |
||
99 |
"Modified: / 27-10-2010 / 18:40:48 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
100 |
! |
|
101 |
||
102 |
fileOutCommentStartOn:aStream |
|
103 |
" |
|
104 |
Writes a comment end mark on aStream." |
|
105 |
||
106 |
^ aStream nextPutAll: '/* ' |
|
107 |
||
108 |
"Modified: / 27-10-2010 / 18:39:59 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
109 |
! ! |
|
110 |
||
111 |
!JavaSourceFileWriter class methodsFor:'documentation'! |
|
112 |
||
2250 | 113 |
version_CVS |
3412
df11bb428463
Merged with mercurial revision 4f3cc813be4 (8 changesets total)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
3360
diff
changeset
|
114 |
^ '$Header: /cvs/stx/stx/libjava/JavaSourceFileWriter.st,v 1.7 2015-03-20 12:08:00 vrany Exp $' |
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2250
diff
changeset
|
115 |
! |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2250
diff
changeset
|
116 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2250
diff
changeset
|
117 |
version_HG |
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2250
diff
changeset
|
118 |
|
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2250
diff
changeset
|
119 |
^ '$Changeset: <not expanded> $' |
2250 | 120 |
! |
121 |
||
749 | 122 |
version_SVN |
2731
13f5be2bf83b
Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
123 |
^ 'Id' |
2152 | 124 |
! ! |
2353
fa7400d022a0
Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
2250
diff
changeset
|
125 |