author | Claus Gittinger <cg@exept.de> |
Sat, 11 Nov 1995 16:20:50 +0100 | |
changeset 68 | 5f7ac0b5c903 |
parent 39 | e36b38a77856 |
child 88 | 070ba8eb911e |
permissions | -rw-r--r-- |
24 | 1 |
" |
2 |
COPYRIGHT (c) 1995 by Claus Gittinger |
|
3 |
All Rights Reserved |
|
4 |
||
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
12 |
||
22 | 13 |
'From Smalltalk/X, Version:2.10.4 on 8-mar-1995 at 15:00:52'! |
14 |
||
15 |
Object subclass:#CallChain |
|
16 |
instanceVariableNames:'receiver selector class isBlock rest' |
|
17 |
classVariableNames:'' |
|
18 |
poolDictionaries:'' |
|
24 | 19 |
category:'System-Debugging-Support' |
22 | 20 |
! |
21 |
||
23 | 22 |
!CallChain class methodsFor:'documentation'! |
23 |
||
24 | 24 |
version |
68
5f7ac0b5c903
uff - version methods changed to return stings
Claus Gittinger <cg@exept.de>
parents:
39
diff
changeset
|
25 |
^ '$Header: /cvs/stx/stx/libbasic3/CallChain.st,v 1.6 1995-11-11 15:20:25 cg Exp $' |
24 | 26 |
! |
27 |
||
23 | 28 |
documentation |
29 |
" |
|
30 |
This is is used as a companion to MessageTally. |
|
31 |
Instances of it are used to represent a calling chain. |
|
32 |
(MessageTally could have used the contexts themself, but these |
|
33 |
may create more overhead) |
|
34 |
" |
|
24 | 35 |
! |
36 |
||
37 |
copyright |
|
38 |
" |
|
39 |
COPYRIGHT (c) 1995 by Claus Gittinger |
|
40 |
All Rights Reserved |
|
41 |
||
42 |
This software is furnished under a license and may be used |
|
43 |
only in accordance with the terms of that license and with the |
|
44 |
inclusion of the above copyright notice. This software may not |
|
45 |
be provided or otherwise made available to, or used by, any |
|
46 |
other person. No title to or ownership of the software is |
|
47 |
hereby transferred. |
|
48 |
" |
|
23 | 49 |
! ! |
50 |
||
22 | 51 |
!CallChain methodsFor:'accessing'! |
52 |
||
53 |
rest:r |
|
54 |
rest := r. |
|
55 |
! |
|
56 |
||
57 |
rest |
|
58 |
^ rest |
|
59 |
! |
|
60 |
||
61 |
selector |
|
62 |
^ selector |
|
63 |
! |
|
64 |
||
65 |
methodClass |
|
66 |
^ class |
|
67 |
! |
|
68 |
||
69 |
receiver:r selector:s class:cls |
|
70 |
receiver := r. |
|
71 |
selector := s. |
|
72 |
class := cls. |
|
73 |
isBlock := false. |
|
74 |
! |
|
75 |
||
76 |
isBlock |
|
77 |
^ isBlock |
|
78 |
! |
|
79 |
||
80 |
isBlock:aBoolean |
|
81 |
isBlock := aBoolean. |
|
82 |
! |
|
83 |
||
84 |
receiver |
|
85 |
^ receiver |
|
86 |
! ! |
|
87 |
||
88 |
!CallChain methodsFor:'comparing'! |
|
89 |
||
90 |
= someInfo |
|
91 |
receiver == someInfo receiver ifFalse:[^ false]. |
|
92 |
selector == someInfo selector ifFalse:[^ false]. |
|
93 |
^ class == someInfo methodClass |
|
94 |
! ! |