src/GroovySourceFileWriter.st
branchjk_new_structure
changeset 1368 5f502e712403
equal deleted inserted replaced
1367:eff7589fbdad 1368:5f502e712403
       
     1 "
       
     2  COPYRIGHT (c) 1996-2011 by Claus Gittinger
       
     3 
       
     4  New code and modifications done at SWING Research Group [1]:
       
     5 
       
     6  COPYRIGHT (c) 2010-2011 by Jan Vrany, Jan Kurs and Marcel Hlopko
       
     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 
       
    16  [1] Code written at SWING Research Group contains a signature
       
    17      of one of the above copright owners. For exact set of such code,
       
    18      see the differences between this version and version stx:libjava
       
    19      as of 1.9.2010
       
    20 "
       
    21 "{ Package: 'stx:libjava' }"
       
    22 
       
    23 AbstractSourceFileWriter subclass:#GroovySourceFileWriter
       
    24 	instanceVariableNames:''
       
    25 	classVariableNames:''
       
    26 	poolDictionaries:''
       
    27 	category:'Languages-Groovy-Support'
       
    28 !
       
    29 
       
    30 !GroovySourceFileWriter class methodsFor:'documentation'!
       
    31 
       
    32 copyright
       
    33 "
       
    34  COPYRIGHT (c) 1996-2011 by Claus Gittinger
       
    35 
       
    36  New code and modifications done at SWING Research Group [1]:
       
    37 
       
    38  COPYRIGHT (c) 2010-2011 by Jan Vrany, Jan Kurs and Marcel Hlopko
       
    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 
       
    48  [1] Code written at SWING Research Group contains a signature
       
    49      of one of the above copright owners. For exact set of such code,
       
    50      see the differences between this version and version stx:libjava
       
    51      as of 1.9.2010
       
    52 
       
    53 "
       
    54 ! !
       
    55 
       
    56 !GroovySourceFileWriter 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 
       
    61     ^ self shouldImplement
       
    62 !
       
    63 
       
    64 fileOutMethods:methods on:stream
       
    65     "superclass AbstractSourceFileWriter says that I am responsible to implement this method"
       
    66 
       
    67     ^ self shouldImplement
       
    68 !
       
    69 
       
    70 fileOutPackageDefinition:packageId on:stream
       
    71     "Files out a package definition on the stream, so all subsequent
       
    72      code entities will be placed in that package"
       
    73 
       
    74     ^ self shouldImplement
       
    75 ! !
       
    76 
       
    77 !GroovySourceFileWriter methodsFor:'source writing - comments'!
       
    78 
       
    79 fileOutCommentEndOn:aStream
       
    80     "Writes a comment end mark on aStream."
       
    81 
       
    82     "Modified: / 18-02-2012 / 18:35:02 / Jan Vrany <jan.vrany@fit.cvut.cz>"
       
    83 !
       
    84 
       
    85 fileOutCommentLine:aString on:aStream
       
    86     "superclass AbstractSourceFileWriter says that I am responsible to implement this method"
       
    87 
       
    88     ^ aStream nextPutAll:'// '; nextPutAll: aString
       
    89 
       
    90     "Modified: / 18-02-2012 / 18:35:37 / Jan Vrany <jan.vrany@fit.cvut.cz>"
       
    91 !
       
    92 
       
    93 fileOutCommentStartOn:aStream
       
    94     "Writes a comment start mark on aStream."
       
    95 
       
    96     "Modified: / 18-02-2012 / 18:35:09 / Jan Vrany <jan.vrany@fit.cvut.cz>"
       
    97 ! !
       
    98 
       
    99 !GroovySourceFileWriter class methodsFor:'documentation'!
       
   100 
       
   101 version_SVN
       
   102     ^ '$Id$'
       
   103 ! !