ClassCategoryChange.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Tue, 29 Jan 2013 14:40:26 +0000
branchjv
changeset 3121 19723298dd2c
parent 3042 48e76977cdc3
child 3128 87750af738dc
permissions -rw-r--r--
Bugfix: reading of Java class extensions methods.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1984
e24fdc626215 copyright
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
     1
"
e24fdc626215 copyright
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
     2
 COPYRIGHT (c) 2002 by eXept Software AG
e24fdc626215 copyright
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
     3
              All Rights Reserved
e24fdc626215 copyright
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
     4
e24fdc626215 copyright
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
     5
 This software is furnished under a license and may be used
e24fdc626215 copyright
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
     6
 only in accordance with the terms of that license and with the
e24fdc626215 copyright
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
e24fdc626215 copyright
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
     8
 be provided or otherwise made available to, or used by, any
e24fdc626215 copyright
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
     9
 other person.  No title to or ownership of the software is
e24fdc626215 copyright
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
    10
 hereby transferred.
e24fdc626215 copyright
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
    11
"
1177
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
"{ Package: 'stx:libbasic3' }"
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
ClassChange subclass:#ClassCategoryChange
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
	instanceVariableNames:'category'
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
	classVariableNames:''
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
	poolDictionaries:''
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
	category:'System-Changes'
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
!
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
1984
e24fdc626215 copyright
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
    21
!ClassCategoryChange class methodsFor:'documentation'!
e24fdc626215 copyright
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
    22
e24fdc626215 copyright
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
    23
copyright
e24fdc626215 copyright
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
    24
"
e24fdc626215 copyright
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
    25
 COPYRIGHT (c) 2002 by eXept Software AG
e24fdc626215 copyright
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
    26
              All Rights Reserved
e24fdc626215 copyright
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
    27
e24fdc626215 copyright
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
    28
 This software is furnished under a license and may be used
e24fdc626215 copyright
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
    29
 only in accordance with the terms of that license and with the
e24fdc626215 copyright
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
    30
 inclusion of the above copyright notice.   This software may not
e24fdc626215 copyright
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
    31
 be provided or otherwise made available to, or used by, any
e24fdc626215 copyright
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
    32
 other person.  No title to or ownership of the software is
e24fdc626215 copyright
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
    33
 hereby transferred.
e24fdc626215 copyright
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
    34
"
2166
c133e744f529 comment/format in:6 methods
Claus Gittinger <cg@exept.de>
parents: 1984
diff changeset
    35
!
c133e744f529 comment/format in:6 methods
Claus Gittinger <cg@exept.de>
parents: 1984
diff changeset
    36
c133e744f529 comment/format in:6 methods
Claus Gittinger <cg@exept.de>
parents: 1984
diff changeset
    37
documentation
c133e744f529 comment/format in:6 methods
Claus Gittinger <cg@exept.de>
parents: 1984
diff changeset
    38
"
c133e744f529 comment/format in:6 methods
Claus Gittinger <cg@exept.de>
parents: 1984
diff changeset
    39
    A changed class category
c133e744f529 comment/format in:6 methods
Claus Gittinger <cg@exept.de>
parents: 1984
diff changeset
    40
"
1984
e24fdc626215 copyright
Claus Gittinger <cg@exept.de>
parents: 1177
diff changeset
    41
! !
1177
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    42
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    43
!ClassCategoryChange methodsFor:'accessing'!
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    44
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    45
category
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    46
    ^ category
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    47
!
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    48
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    49
category:aCategory
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    50
    ^ category := aCategory
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    51
!
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    52
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    53
className:clsName category:aCategoryString
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    54
    className := clsName.
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    55
    category := aCategoryString
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    56
! !
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    57
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    58
!ClassCategoryChange methodsFor:'comparing'!
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    59
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    60
isForSameAs:changeB
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    61
    "return true, if the given change represents a change for the same
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    62
     thingy as the receiver (i.e. same method, same definition etc.)."
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    63
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    64
    changeB isClassCategoryChange ifFalse:[^ false].   
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    65
    ^ className = changeB className
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    66
!
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    67
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    68
sameAs:changeB
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    69
    "return true, if the given change represents the same change as the receiver."
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    70
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    71
    changeB isClassCategoryChange ifFalse:[^ false].
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    72
    className = changeB className ifFalse:[^ false].
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    73
    ^ category = changeB category 
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    74
!
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    75
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    76
source
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    77
    "synthesize the changes source"
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    78
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    79
    ^ className , ' category: ' , category storeString
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    80
! !
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    81
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    82
!ClassCategoryChange methodsFor:'printing & storing'!
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    83
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    84
printOn:aStream
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    85
    "append a user printed representation of the receiver to aStream.
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    86
     The format is suitable for a human - not meant to be read back."
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    87
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    88
    aStream nextPutAll:className; nextPutAll:' category:'
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    89
!
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    90
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    91
printWithoutClassNameOn:aStream
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    92
    (className endsWith:' class') ifTrue:[
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    93
        aStream nextPutAll:'class '
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    94
    ].
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    95
    aStream nextPutAll:'category:'
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    96
! !
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    97
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    98
!ClassCategoryChange methodsFor:'queries'!
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    99
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   100
isClassCategoryChange
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   101
    ^ true
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   102
! !
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   103
2619
e95fac1416fb visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents: 2166
diff changeset
   104
!ClassCategoryChange methodsFor:'visiting'!
e95fac1416fb visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents: 2166
diff changeset
   105
e95fac1416fb visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents: 2166
diff changeset
   106
acceptChangeVisitor:aVisitor
e95fac1416fb visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents: 2166
diff changeset
   107
    ^ aVisitor visitClassCategoryChange:self.
e95fac1416fb visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents: 2166
diff changeset
   108
e95fac1416fb visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents: 2166
diff changeset
   109
    "Created: / 25-11-2011 / 17:12:41 / cg"
e95fac1416fb visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents: 2166
diff changeset
   110
! !
e95fac1416fb visitor support (for monticello);
Claus Gittinger <cg@exept.de>
parents: 2166
diff changeset
   111
1177
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   112
!ClassCategoryChange class methodsFor:'documentation'!
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   113
91756124439b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   114
version
3121
19723298dd2c Bugfix: reading of Java class extensions methods.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3042
diff changeset
   115
    ^ '$Header: ClassCategoryChange.st 1909 2012-03-31 00:14:49Z vranyj1 $'
19723298dd2c Bugfix: reading of Java class extensions methods.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3042
diff changeset
   116
!
19723298dd2c Bugfix: reading of Java class extensions methods.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3042
diff changeset
   117
19723298dd2c Bugfix: reading of Java class extensions methods.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3042
diff changeset
   118
version_HG
19723298dd2c Bugfix: reading of Java class extensions methods.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3042
diff changeset
   119
19723298dd2c Bugfix: reading of Java class extensions methods.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3042
diff changeset
   120
    ^ '$Changeset: <not expanded> $'
3012
4f40b8304d54 Added InvalidChange
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3011
diff changeset
   121
!
4f40b8304d54 Added InvalidChange
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3011
diff changeset
   122
4f40b8304d54 Added InvalidChange
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3011
diff changeset
   123
version_SVN
3121
19723298dd2c Bugfix: reading of Java class extensions methods.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3042
diff changeset
   124
    ^ '§Id: ClassCategoryChange.st 1909 2012-03-31 00:14:49Z vranyj1 §'
3012
4f40b8304d54 Added InvalidChange
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3011
diff changeset
   125
! !
3121
19723298dd2c Bugfix: reading of Java class extensions methods.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3042
diff changeset
   126