ClassPrimitiveDefinitionsChange.st
author Claus Gittinger <cg@exept.de>
Tue, 06 Jul 1999 12:37:02 +0200
changeset 784 1e50cc7fd07d
parent 783 90ffa6f0a86b
child 798 999fff0aa0d0
permissions -rw-r--r--
added compare methods #sameAs: and #isForSameAs:

"
 COPYRIGHT (c) 1995 by Claus Gittinger
	      All Rights Reserved

 This software is furnished under a license and may be used
 only in accordance with the terms of that license and with the
 inclusion of the above copyright notice.   This software may not
 be provided or otherwise made available to, or used by, any
 other person.  No title to or ownership of the software is
 hereby transferred.
"

ClassPrimitiveChange subclass:#ClassPrimitiveDefinitionsChange
	instanceVariableNames:''
	classVariableNames:''
	poolDictionaries:''
	category:'System-Changes'
!

!ClassPrimitiveDefinitionsChange class methodsFor:'documentation'!

copyright
"
 COPYRIGHT (c) 1995 by Claus Gittinger
	      All Rights Reserved

 This software is furnished under a license and may be used
 only in accordance with the terms of that license and with the
 inclusion of the above copyright notice.   This software may not
 be provided or otherwise made available to, or used by, any
 other person.  No title to or ownership of the software is
 hereby transferred.
"
!

documentation
"
    instances represent a classes primitive definition-changes. 
    They are typically held in a ChangeSet.

    [author:]
        Claus Gittinger
"
! !

!ClassPrimitiveDefinitionsChange methodsFor:'comparing'!

isForSameAs:changeB
    "return true, if the given change represents a change for the same
     thingy as the receiver (i.e. same method, same definition etc.)."

    changeB isPrimitiveDefinitionsChange ifFalse:[^ false].   

    ^ className = changeB className


!

sameAs:changeB
    "return true, if the given change represents the same change as the receiver."

    changeB isPrimitiveDefinitionsChange ifFalse:[^ false].   

    className ~= changeB className ifTrue:[^ false].
    ^ self sameSourceAs:changeB

! !

!ClassPrimitiveDefinitionsChange methodsFor:'printing'!

printOn:aStream
    aStream nextPutAll:className; nextPutAll:' primitiveDefinitions:'
! !

!ClassPrimitiveDefinitionsChange methodsFor:'queries'!

isPrimitiveDefinitionsChange
    ^ true


! !

!ClassPrimitiveDefinitionsChange class methodsFor:'documentation'!

version
    ^ '$Header: /cvs/stx/stx/libbasic3/ClassPrimitiveDefinitionsChange.st,v 1.5 1999-07-06 10:36:59 cg Exp $'
! !