author | Claus Gittinger <cg@exept.de> |
Fri, 28 Jun 2019 08:49:56 +0200 | |
changeset 24385 | dd84e4dfb5cc |
parent 23521 | 74d847ad5d1e |
permissions | -rw-r--r-- |
23521 | 1 |
"{ Encoding: utf8 }" |
2 |
||
21454 | 3 |
" |
4 |
COPYRIGHT (c) 2009 by Claus Gittinger / eXept Software AG |
|
5 |
All Rights Reserved |
|
6 |
||
7 |
This software is furnished under a license and may be used |
|
8 |
only in accordance with the terms of that license and with the |
|
9 |
inclusion of the above copyright notice. This software may not |
|
10 |
be provided or otherwise made available to, or used by, any |
|
11 |
other person. No title to or ownership of the software is |
|
12 |
hereby transferred. |
|
13 |
" |
|
11960 | 14 |
"{ Package: 'stx:libbasic' }" |
15 |
||
18912 | 16 |
"{ NameSpace: Smalltalk }" |
17 |
||
11960 | 18 |
Object subclass:#AbstractSourceFileReader |
19 |
instanceVariableNames:'' |
|
20 |
classVariableNames:'' |
|
21 |
poolDictionaries:'' |
|
15418
1192811fb0dc
class: AbstractSourceFileReader
Claus Gittinger <cg@exept.de>
parents:
14406
diff
changeset
|
22 |
category:'Kernel-Classes-Support' |
11960 | 23 |
! |
24 |
||
14406 | 25 |
!AbstractSourceFileReader class methodsFor:'documentation'! |
26 |
||
21454 | 27 |
copyright |
28 |
" |
|
29 |
COPYRIGHT (c) 2009 by Claus Gittinger / eXept Software AG |
|
30 |
All Rights Reserved |
|
31 |
||
32 |
This software is furnished under a license and may be used |
|
33 |
only in accordance with the terms of that license and with the |
|
34 |
inclusion of the above copyright notice. This software may not |
|
35 |
be provided or otherwise made available to, or used by, any |
|
36 |
other person. No title to or ownership of the software is |
|
37 |
hereby transferred. |
|
38 |
" |
|
39 |
! |
|
40 |
||
14406 | 41 |
documentation |
42 |
" |
|
43 |
Abstract common superclass for source file readers |
|
44 |
" |
|
45 |
! ! |
|
11960 | 46 |
|
47 |
!AbstractSourceFileReader class methodsFor:'fileIn'! |
|
48 |
||
49 |
fileIn: aFilename |
|
50 |
||
51 |
^self new fileIn: aFilename |
|
52 |
||
53 |
"Created: / 16-08-2009 / 10:14:51 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
54 |
! |
|
55 |
||
56 |
fileInStream: aStream |
|
57 |
||
58 |
^self new fileInStream: aStream |
|
59 |
||
60 |
"Created: / 16-08-2009 / 10:15:05 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
61 |
! ! |
|
62 |
||
18912 | 63 |
!AbstractSourceFileReader class methodsFor:'queries'! |
64 |
||
65 |
isAbstract |
|
66 |
^ self == AbstractSourceFileReader |
|
67 |
! ! |
|
68 |
||
11960 | 69 |
!AbstractSourceFileReader methodsFor:'fileIn'! |
70 |
||
71 |
fileIn:aFilename |
|
23521 | 72 |
aFilename asFilename readingFileDo:[:stream | |
73 |
self fileInStream: stream |
|
74 |
] |
|
11960 | 75 |
|
76 |
"Modified: / 15-08-2009 / 14:47:29 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
13004 | 77 |
"Modified: / 08-08-2010 / 14:38:35 / cg" |
23521 | 78 |
"Modified: / 07-11-2018 / 22:22:35 / Claus Gittinger" |
11960 | 79 |
! |
80 |
||
81 |
fileInStream:arg |
|
82 |
"raise an error: must be redefined in concrete subclass(es)" |
|
83 |
||
84 |
^ self subclassResponsibility |
|
85 |
! ! |
|
86 |
||
87 |
!AbstractSourceFileReader class methodsFor:'documentation'! |
|
88 |
||
89 |
version |
|
18912 | 90 |
^ '$Header$' |
12055 | 91 |
! |
92 |
||
93 |
version_CVS |
|
18912 | 94 |
^ '$Header$' |
12055 | 95 |
! |
96 |
||
97 |
version_SVN |
|
18912 | 98 |
^'$Id$' |
11960 | 99 |
! ! |
15418
1192811fb0dc
class: AbstractSourceFileReader
Claus Gittinger <cg@exept.de>
parents:
14406
diff
changeset
|
100 |