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.

"
 COPYRIGHT (c) 2002 by eXept Software AG
              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.
"
"{ Package: 'stx:libbasic3' }"

ClassChange subclass:#ClassCategoryChange
	instanceVariableNames:'category'
	classVariableNames:''
	poolDictionaries:''
	category:'System-Changes'
!

!ClassCategoryChange class methodsFor:'documentation'!

copyright
"
 COPYRIGHT (c) 2002 by eXept Software AG
              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
"
    A changed class category
"
! !

!ClassCategoryChange methodsFor:'accessing'!

category
    ^ category
!

category:aCategory
    ^ category := aCategory
!

className:clsName category:aCategoryString
    className := clsName.
    category := aCategoryString
! !

!ClassCategoryChange 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 isClassCategoryChange ifFalse:[^ false].   
    ^ className = changeB className
!

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

    changeB isClassCategoryChange ifFalse:[^ false].
    className = changeB className ifFalse:[^ false].
    ^ category = changeB category 
!

source
    "synthesize the changes source"

    ^ className , ' category: ' , category storeString
! !

!ClassCategoryChange methodsFor:'printing & storing'!

printOn:aStream
    "append a user printed representation of the receiver to aStream.
     The format is suitable for a human - not meant to be read back."

    aStream nextPutAll:className; nextPutAll:' category:'
!

printWithoutClassNameOn:aStream
    (className endsWith:' class') ifTrue:[
        aStream nextPutAll:'class '
    ].
    aStream nextPutAll:'category:'
! !

!ClassCategoryChange methodsFor:'queries'!

isClassCategoryChange
    ^ true
! !

!ClassCategoryChange methodsFor:'visiting'!

acceptChangeVisitor:aVisitor
    ^ aVisitor visitClassCategoryChange:self.

    "Created: / 25-11-2011 / 17:12:41 / cg"
! !

!ClassCategoryChange class methodsFor:'documentation'!

version
    ^ '$Header: ClassCategoryChange.st 1909 2012-03-31 00:14:49Z vranyj1 $'
!

version_HG

    ^ '$Changeset: <not expanded> $'
!

version_SVN
    ^ '§Id: ClassCategoryChange.st 1909 2012-03-31 00:14:49Z vranyj1 §'
! !