ClassPrimitiveFunctionsChange.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Tue, 12 Mar 2013 10:31:15 +0000
branchjv
changeset 3125 08d6603c4fe9
parent 3042 48e76977cdc3
child 3128 87750af738dc
permissions -rw-r--r--
New check in ProjectChecker. Check for extensiom method to a private class. This is forbidden and won't compile using stc.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
101
9a1c22e807e0 more changeSet stuff
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     1
"
9a1c22e807e0 more changeSet stuff
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     2
 COPYRIGHT (c) 1995 by Claus Gittinger
9a1c22e807e0 more changeSet stuff
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     3
	      All Rights Reserved
9a1c22e807e0 more changeSet stuff
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
9a1c22e807e0 more changeSet stuff
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     5
 This software is furnished under a license and may be used
9a1c22e807e0 more changeSet stuff
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     6
 only in accordance with the terms of that license and with the
9a1c22e807e0 more changeSet stuff
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
9a1c22e807e0 more changeSet stuff
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     8
 be provided or otherwise made available to, or used by, any
9a1c22e807e0 more changeSet stuff
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     9
 other person.  No title to or ownership of the software is
9a1c22e807e0 more changeSet stuff
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    10
 hereby transferred.
9a1c22e807e0 more changeSet stuff
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    11
"
957
54dade11e57f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 801
diff changeset
    12
"{ Package: 'stx:libbasic3' }"
54dade11e57f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 801
diff changeset
    13
783
90ffa6f0a86b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 235
diff changeset
    14
ClassPrimitiveChange subclass:#ClassPrimitiveFunctionsChange
235
3ebfdc6edab9 documentation
Claus Gittinger <cg@exept.de>
parents: 103
diff changeset
    15
	instanceVariableNames:''
3ebfdc6edab9 documentation
Claus Gittinger <cg@exept.de>
parents: 103
diff changeset
    16
	classVariableNames:''
3ebfdc6edab9 documentation
Claus Gittinger <cg@exept.de>
parents: 103
diff changeset
    17
	poolDictionaries:''
3ebfdc6edab9 documentation
Claus Gittinger <cg@exept.de>
parents: 103
diff changeset
    18
	category:'System-Changes'
101
9a1c22e807e0 more changeSet stuff
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
!
9a1c22e807e0 more changeSet stuff
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
9a1c22e807e0 more changeSet stuff
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
!ClassPrimitiveFunctionsChange class methodsFor:'documentation'!
9a1c22e807e0 more changeSet stuff
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
9a1c22e807e0 more changeSet stuff
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
copyright
9a1c22e807e0 more changeSet stuff
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
"
9a1c22e807e0 more changeSet stuff
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
 COPYRIGHT (c) 1995 by Claus Gittinger
9a1c22e807e0 more changeSet stuff
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
	      All Rights Reserved
9a1c22e807e0 more changeSet stuff
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
9a1c22e807e0 more changeSet stuff
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
 This software is furnished under a license and may be used
9a1c22e807e0 more changeSet stuff
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
 only in accordance with the terms of that license and with the
9a1c22e807e0 more changeSet stuff
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    30
 inclusion of the above copyright notice.   This software may not
9a1c22e807e0 more changeSet stuff
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    31
 be provided or otherwise made available to, or used by, any
9a1c22e807e0 more changeSet stuff
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    32
 other person.  No title to or ownership of the software is
9a1c22e807e0 more changeSet stuff
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    33
 hereby transferred.
9a1c22e807e0 more changeSet stuff
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    34
"
9a1c22e807e0 more changeSet stuff
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    35
!
9a1c22e807e0 more changeSet stuff
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    36
9a1c22e807e0 more changeSet stuff
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    37
documentation
9a1c22e807e0 more changeSet stuff
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    38
"
9a1c22e807e0 more changeSet stuff
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    39
    instances represent a classes primitive function-changes. 
9a1c22e807e0 more changeSet stuff
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
    They are typically held in a ChangeSet.
235
3ebfdc6edab9 documentation
Claus Gittinger <cg@exept.de>
parents: 103
diff changeset
    41
3ebfdc6edab9 documentation
Claus Gittinger <cg@exept.de>
parents: 103
diff changeset
    42
    [author:]
3ebfdc6edab9 documentation
Claus Gittinger <cg@exept.de>
parents: 103
diff changeset
    43
        Claus Gittinger
101
9a1c22e807e0 more changeSet stuff
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    44
"
9a1c22e807e0 more changeSet stuff
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    45
! !
9a1c22e807e0 more changeSet stuff
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    46
2357
ed8f9d6dd274 added: #apply
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
    47
!ClassPrimitiveFunctionsChange methodsFor:'applying'!
ed8f9d6dd274 added: #apply
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
    48
2371
c16f6906f4eb refactored common code
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
    49
privateApply
2357
ed8f9d6dd274 added: #apply
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
    50
    "apply the change"
ed8f9d6dd274 added: #apply
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
    51
2371
c16f6906f4eb refactored common code
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
    52
    self changeClass primitiveFunctions:(self source)
2357
ed8f9d6dd274 added: #apply
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
    53
2371
c16f6906f4eb refactored common code
Claus Gittinger <cg@exept.de>
parents: 2357
diff changeset
    54
    "Created: / 28-06-2011 / 22:59:30 / cg"
2357
ed8f9d6dd274 added: #apply
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
    55
! !
ed8f9d6dd274 added: #apply
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
    56
784
1e50cc7fd07d added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
    57
!ClassPrimitiveFunctionsChange methodsFor:'comparing'!
1e50cc7fd07d added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
    58
1e50cc7fd07d added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
    59
isForSameAs:changeB
1e50cc7fd07d added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
    60
    "return true, if the given change represents a change for the same
1e50cc7fd07d added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
    61
     thingy as the receiver (i.e. same method, same definition etc.)."
1e50cc7fd07d added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
    62
1e50cc7fd07d added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
    63
    changeB isPrimitiveFunctionsChange ifFalse:[^ false].   
1e50cc7fd07d added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
    64
1e50cc7fd07d added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
    65
    ^ className = changeB className
1e50cc7fd07d added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
    66
1e50cc7fd07d added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
    67
1e50cc7fd07d added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
    68
! !
1e50cc7fd07d added compare methods #sameAs: and #isForSameAs:
Claus Gittinger <cg@exept.de>
parents: 783
diff changeset
    69
962
3821ab69b939 category change
Claus Gittinger <cg@exept.de>
parents: 957
diff changeset
    70
!ClassPrimitiveFunctionsChange methodsFor:'printing & storing'!
103
487c1447b3d8 printing fixed (req'd for changeSetBrowser)
Claus Gittinger <cg@exept.de>
parents: 101
diff changeset
    71
487c1447b3d8 printing fixed (req'd for changeSetBrowser)
Claus Gittinger <cg@exept.de>
parents: 101
diff changeset
    72
printOn:aStream
801
b84b61eaa2f6 comment
Claus Gittinger <cg@exept.de>
parents: 798
diff changeset
    73
    "append a user printed representation of the receiver to aStream.
b84b61eaa2f6 comment
Claus Gittinger <cg@exept.de>
parents: 798
diff changeset
    74
     The format is suitable for a human - not meant to be read back."
b84b61eaa2f6 comment
Claus Gittinger <cg@exept.de>
parents: 798
diff changeset
    75
103
487c1447b3d8 printing fixed (req'd for changeSetBrowser)
Claus Gittinger <cg@exept.de>
parents: 101
diff changeset
    76
    aStream nextPutAll:className; nextPutAll:' primitiveFunctions:'
487c1447b3d8 printing fixed (req'd for changeSetBrowser)
Claus Gittinger <cg@exept.de>
parents: 101
diff changeset
    77
! !
487c1447b3d8 printing fixed (req'd for changeSetBrowser)
Claus Gittinger <cg@exept.de>
parents: 101
diff changeset
    78
783
90ffa6f0a86b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 235
diff changeset
    79
!ClassPrimitiveFunctionsChange methodsFor:'queries'!
90ffa6f0a86b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 235
diff changeset
    80
90ffa6f0a86b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 235
diff changeset
    81
isPrimitiveFunctionsChange
90ffa6f0a86b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 235
diff changeset
    82
    ^ true
90ffa6f0a86b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 235
diff changeset
    83
90ffa6f0a86b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 235
diff changeset
    84
90ffa6f0a86b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 235
diff changeset
    85
! !
90ffa6f0a86b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 235
diff changeset
    86
101
9a1c22e807e0 more changeSet stuff
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    87
!ClassPrimitiveFunctionsChange class methodsFor:'documentation'!
9a1c22e807e0 more changeSet stuff
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    88
9a1c22e807e0 more changeSet stuff
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    89
version
3042
48e76977cdc3 Added info-record processing support into changeset reader
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3012
diff changeset
    90
    ^ '$Id: ClassPrimitiveFunctionsChange.st 1909 2012-03-31 00:14:49Z vranyj1 $'
2357
ed8f9d6dd274 added: #apply
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
    91
!
ed8f9d6dd274 added: #apply
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
    92
ed8f9d6dd274 added: #apply
Claus Gittinger <cg@exept.de>
parents: 962
diff changeset
    93
version_CVS
3011
1997ff6e7e55 trunk branched into /branches/jv
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2371
diff changeset
    94
    ^ '§Header: /cvs/stx/stx/libbasic3/ClassPrimitiveFunctionsChange.st,v 1.11 2011/06/28 21:00:09 cg Exp §'
3012
4f40b8304d54 Added InvalidChange
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3011
diff changeset
    95
!
4f40b8304d54 Added InvalidChange
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3011
diff changeset
    96
3125
08d6603c4fe9 New check in ProjectChecker.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3042
diff changeset
    97
version_HG
08d6603c4fe9 New check in ProjectChecker.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3042
diff changeset
    98
08d6603c4fe9 New check in ProjectChecker.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3042
diff changeset
    99
    ^ '$Changeset: <not expanded> $'
08d6603c4fe9 New check in ProjectChecker.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3042
diff changeset
   100
!
08d6603c4fe9 New check in ProjectChecker.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3042
diff changeset
   101
3012
4f40b8304d54 Added InvalidChange
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3011
diff changeset
   102
version_SVN
3042
48e76977cdc3 Added info-record processing support into changeset reader
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3012
diff changeset
   103
    ^ '$Id: ClassPrimitiveFunctionsChange.st 1909 2012-03-31 00:14:49Z vranyj1 $'
3012
4f40b8304d54 Added InvalidChange
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3011
diff changeset
   104
! !
3125
08d6603c4fe9 New check in ProjectChecker.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3042
diff changeset
   105