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