|
Class: Change
Object
|
+--Change
|
+--ClassChange
|
+--CompositeChange
|
+--DoItChange
|
+--FileInChange
|
+--InvalidChange
|
+--NameSpaceCreationChange
|
+--OtherChange
- Package:
- stx:libbasic3
- Category:
- System-Changes
- Version:
- rev:
1.80
date: 2023/03/04 23:09:18
- user: cg
- file: Change.st directory: libbasic3
- module: stx stc-classLibrary: libbasic3
abstract superclass for all kind of changes - managed in changeSets.
[instance variables:]
mcDefinition .... prep for monticello
copyrightCOPYRIGHT (c) 1993 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.
queries
-
isAbstract
-
Return if this class is an abstract class.
True is returned here for myself only; false for subclasses.
Abstract subclasses must redefine this again.
support
-
isSource: source1Arg sameSourceAs: source2Arg
-
return true, if the given sources are the same, ignoring tabs and whitespace differences.
accessing
-
changeClass
-
the class of the change (nil if not present)
-
changeLanguage
-
Answer the programming language of the receiver.
Since changesets are currently only supported for Smalltalk,
return SmalltalkLanguage unconditionally
-
changeSelector
-
the selector, if it is a method change. Nil oherwise
-
changeSource
-
Return the source of the change
-
className
-
the className of the change
-
delta
-
Returns a delta to current state as symbol:
#+ .....the subject is to be added to the image (new)
#- .....the subject is to be removed from the image (old)
#= .....the image is up to date
#~ .....change version and image version differ
#? .....delta is unknown or N/A for this kind of change
Usage example(s):
We don't know how to compute delta for generic change
|
-
deltaDetail
-
Returns a delta to the current state as a ChangeDelta object
-
file
-
to be added as instvar
-
file: aFile position: anInteger
-
to be added
-
fullClassName
-
-
imageSource
-
Return the source of the in-image version
or nil if there is no source for this change
-
nameSpaceOverride: ns
-
-
nonMetaClassName
-
-
objectType: aSymbol
-
to be added as instvar
-
package
-
-
prettyPrintedSource
-
return the prettyPrinted or normal source of the change
-
removed
( an extension from the stx:libtool package )
-
-
removed: aBoolean
( an extension from the stx:libtool package )
-
-
selector
-
-
source
-
return the source of the change
-
source: someString
-
set the source of the change
-
timeOfChangeIfKnown
-
-
timeStamp: aTimestamp
-
applying
-
apply
-
apply the change
** This method must be redefined in concrete classes (subclassResponsibility) **
-
applyWithInfoOn: aDebugStream
-
apply the change, sending diagnostics to aDebugStream
-
applyWithNameSpaceOverride: nameSpaceOrNameSpaceName
-
Apply the change, overriding a namespace to given one
-
undo
-
change notification
-
sendChangeNotificationThroughSmalltalk
-
intentionally left blank
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.).
-
sameAs: changeB
-
return true, if the given change represents the same change as the receiver.
-
sameSourceAs: changeB
-
return true, if the given change has the same source as the receiver.
converting
-
asAntiChange
-
Returns my anti-change, i.e. change that does the
opposite. For class definition change it returns
class remove change, for method definition change
it returns method remove change. If there is no way
how to revert the change, an error is triggered.
JV: personal note: we should switch to deltastreams
(http://wiki.squeak.org/squeak/6001)
CG: is the above really true - what about a classDefChange for
an existing class????
enumerating
-
do: aBlock
-
ATTN: returns the value from aBlock!
is this required or just sloppy programming?
fileout
-
basicFileOutOn: aStream
-
-
fileOutOn: aStream
-
inspecting
-
inspectorExtraAttributes
( an extension from the stx:libtool package )
-
extra (pseudo instvar) entries to be shown in an inspector.
-
inspectorValueStringInListFor: anInspector
( an extension from the stx:libtool package )
-
^ self className,'(',self displayString,')'
printing & storing
-
printStringWithoutClassName
-
-
printWithoutClassNameOn: aStream
-
private
-
flattenOnto: aCollection
( an extension from the stx:libtool package )
-
-
flattenedChanges
( an extension from the stx:libtool package )
-
queries
-
isForGeneratedSubject
-
Answers true iff subject of this method is somewhat
auto-generated by some tool - just like version methods
are.
testing
-
isClassCategoryChange
-
return true, if this is a class-category change
-
isClassChange
-
return true, if this is a class-related change
-
isClassCommentChange
-
return true, if this is a class-comment change
-
isClassDefinitionChange
-
return true, if this is a class-definition change
-
isClassInitializeChange
-
-
isClassInstVarDefinitionChange
-
-
isClassRemoveChange
-
-
isClassRemoveChangeOrMethodRemoveChange
-
-
isClassRenameChange
-
-
isCompositeChange
-
-
isConflict
-
true if this change is different than what is already in the image
(i.e. it overwrites some existing code)
-
isDoIt
-
-
isMethodCategoryChange
-
-
isMethodCategoryRenameChange
-
-
isMethodChange
-
true if this is a method related change
-
isMethodChangeForCopyrightMethod
-
Return true if this is a change of #copyright method
-
isMethodChangeForExtensionsVersionMethod
-
true if this is a change for an extensionsVersion method
-
isMethodChangeForVersionMethod
-
true if this is a change for a version method
-
isMethodCodeChange
-
true if this is a method's code change (not package, category etc.)
-
isMethodDefinitionChange
-
-
isMethodPackageChange
-
-
isMethodRemoveChange
-
-
isNameSpaceCreationChange
-
-
isOrContainsClassDefinitionChange
-
-
isOtherChange
-
-
isPrimitiveChange
-
-
isPrimitiveDefinitionsChange
-
-
isPrimitiveFunctionsChange
-
-
isPrimitiveVariablesChange
-
-
isPrivateClassDefinitionChange
-
visiting
-
acceptChangeVisitor: aVisitor
-
|